https://github.com/pykeio/ssml
A Rust library for writing SSML.
https://github.com/pykeio/ssml
rust speech-synthesis ssml ssml-builder
Last synced: about 1 year ago
JSON representation
A Rust library for writing SSML.
- Host: GitHub
- URL: https://github.com/pykeio/ssml
- Owner: pykeio
- License: apache-2.0
- Created: 2023-10-16T02:14:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T19:57:03.000Z (over 1 year ago)
- Last Synced: 2025-05-11T07:09:42.514Z (about 1 year ago)
- Topics: rust, speech-synthesis, ssml, ssml-builder
- Language: Rust
- Homepage: https://docs.rs/ssml
- Size: 154 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `ssml-rs`
A 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](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-synthesis-markup-structure), [Google Cloud Text-to-Speech](https://cloud.google.com/text-to-speech/docs/ssml), & [Amazon Polly](https://docs.aws.amazon.com/polly/latest/dg/supportedtags.html)) & pyke Songbird.
```rs
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#"Hello, world!"#
);
```