Skip to main content

Module cloud_core

Module cloud_core 

Source
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§

CloudConfig
Configuration for a single cloud TTS provider.
SigV4Credentials
The credentials a SigV4 request carries.
SignedUrl
A parsed https://host/path?query split for canonicalization.

Enums§

GeminiAudioBlock
Outcome of scanning an Interactions API response for audio.

Functions§

authorization_header
Build the Authorization header 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-GEC token 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 None when the input does not parse; callers then fall back to plain-text stripping.