Expand description
The pure cloud provider shapes shared by the native engine and the
wasm/js crate: sigv4 signing, request builders, response parsers,
provider configs. Enabled by cloud-core (implied by cloud).
Structs§
- Cloud
Config - Configuration for a single cloud TTS provider.
- SigV4
Credentials - The credentials a SigV4 request carries.
- Signed
Url - A parsed
https://host/path?querysplit for canonicalization.
Enums§
- Gemini
Audio Block - Outcome of scanning an Interactions API response for audio.
Functions§
- authorization_
header - Build the
Authorizationheader value for a request. - build_
gemini_ request - Build the Interactions API request body for Gemini TTS.
- build_
google_ request - Build JSON body for Google TTS REST API.
- edge_
sec_ ms_ gec_ at - Generate the
Sec-MS-GECtoken Microsoft Edge “Read Aloud” requires. - elevenlabs_
smd_ platform - Pick the SpeechMarkdown platform selector for a provider/model pair.
- parse_
elevenlabs_ alignment - Parse ElevenLabs alignment payload into
(word, start_sec, end_sec)tuples. - parse_
gemini_ interaction_ audio - Extract the last audio block (decoded from base64) from an Interactions API response.
- sha256_
hex - Lowercase hex of a SHA-256 digest.
- ssml_
to_ dialect - Translate W3C (or Alexa/Azure-flavoured) SSML into an ElevenLabs
dialect prompt: SSML → SpeechMarkdown → the model-matched dialect.
Returns
Nonewhen the input does not parse; callers then fall back to plain-text stripping.