ssml

Crates.iossml
lib.rsssml
version0.1.0
sourcesrc
created_at2023-10-16 17:36:41.090581
updated_at2023-11-23 01:38:55.957953
descriptionUtilities for working with Speech Synthesis Markup Language documents
homepage
repositoryhttps://github.com/pykeio/ssml
max_upload_size
id1004947
size79,860
Carson M. (decahedron1)

documentation

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, 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>"#
);
Commit count: 12

cargo fmt