| Crates.io | ssml |
| lib.rs | ssml |
| version | 0.2.0 |
| created_at | 2023-10-16 17:36:41.090581+00 |
| updated_at | 2024-12-16 19:58:17.013538+00 |
| description | Utilities for working with Speech Synthesis Markup Language documents |
| homepage | |
| repository | https://github.com/pykeio/ssml |
| max_upload_size | |
| id | 1004947 |
| size | 114,586 |
ssml-rsA Rust library for writing SSML.
Currently, ssml-rs focuses on supporting the subsets of SSML supported by major cloud text-to-speech services (Microsoft Azure Cognitive Speech Services, Google Cloud Text-to-Speech, & Amazon Polly) & pyke Songbird.
let doc = ssml::speak(Some("en-US"), ["Hello, world!"]);
use ssml::Serialize;
let str = doc.serialize_to_string(&ssml::SerializeOptions::default().flavor(Flavor::AmazonPolly))?;
assert_eq!(
str,
r#"<speak xml:lang="en-US">Hello, world!</speak>"#
);