mod speech;
mod transcriptions;
mod translations;
mod voice_consents;
mod voices;
pub use speech::*;
pub use transcriptions::*;
pub use translations::*;
pub use voice_consents::*;
pub use voices::*;
use crate::config::Config;
use crate::{Client, RequestOptions};
pub struct Audio<'c, C: Config> {
client: &'c Client<C>,
pub(crate) request_options: RequestOptions,
}
impl<'c, C: Config> Audio<'c, C> {
pub fn new(client: &'c Client<C>) -> Self {
Self {
client,
request_options: RequestOptions::new(),
}
}
pub fn speech(&self) -> Speech<'_, C> {
Speech::new(self.client)
}
pub fn transcription(&self) -> Transcriptions<'_, C> {
Transcriptions::new(self.client)
}
pub fn translation(&self) -> Translations<'_, C> {
Translations::new(self.client)
}
pub fn voice_consents(&self) -> VoiceConsents<'_, C> {
VoiceConsents::new(self.client)
}
pub fn voices(&self) -> Voices<'_, C> {
Voices::new(self.client)
}
}