pub struct CloudConfig {Show 15 fields
pub synth_url: String,
pub auth_header: String,
pub auth_prefix: String,
pub voice_param: String,
pub model_param: Option<String>,
pub model_default: Option<String>,
pub default_voice: Option<String>,
pub text_field: String,
pub extra_body: HashMap<String, Value>,
pub body_is_ssml: bool,
pub content_type: Option<String>,
pub extra_headers: HashMap<String, String>,
pub voices_url: Option<String>,
pub provider_id: String,
pub response_is_pcm: bool,
}Expand description
Configuration for a single cloud TTS provider.
Fields§
§synth_url: String§auth_header: String§auth_prefix: String§voice_param: String§model_param: Option<String>§model_default: Option<String>§default_voice: Option<String>§text_field: String§extra_body: HashMap<String, Value>§body_is_ssml: boolWhether this engine requires SSML in the request body (Azure).
content_type: Option<String>Content-Type header override for the synthesis request.
extra_headers: HashMap<String, String>Additional headers to send with synthesis requests.
voices_url: Option<String>URL for the voice listing endpoint, if available.
provider_id: StringProvider ID string for voice mapping.
response_is_pcm: boolWhether this engine’s synthesis response body is already raw PCM16
(delivered verbatim) rather than MP3 (decoded to PCM before delivery).
Azure returns PCM because we request raw-24khz-16bit-mono-pcm;
Cartesia returns raw PCM by design. Everything else returns MP3.
Trait Implementations§
Source§impl Clone for CloudConfig
impl Clone for CloudConfig
Source§impl Debug for CloudConfig
impl Debug for CloudConfig
Auto Trait Implementations§
impl Freeze for CloudConfig
impl RefUnwindSafe for CloudConfig
impl Send for CloudConfig
impl Sync for CloudConfig
impl Unpin for CloudConfig
impl UnsafeUnpin for CloudConfig
impl UnwindSafe for CloudConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more