# SSML Parser This crate handles parsing SSML (Speech Synthesis Markup Language). It's main aim is to facilitate the development of TTS (Text-To-Speech) and applications that utilise sythesised audio. Functionality for writing XML is limited and could do with improvements for ergonomics. Currently it contains a full implementation of the SSML 1.1 specification including custom tags. Text within custom tags is assumed to be synthesisable though it is possible to change this behaviour when extracting the text. Below is a simple example: ``` use ssml_parser::parse_ssml; let ssml = r#"

You have 4 new messages. The first is from Stephanie Williams and arrived at 3:45pm. The subject is ski trip

"#; let result = parse_ssml(ssml).unwrap(); // We can now see the text with tags removed: println!("{}", result.get_text()); // And can loop over all the SSML tags and get their character indexes: for tag in result.tags() { println!("{:?}", tag); } ```