text_to_polly_ssml/lib.rs
1pub mod parser;
2pub mod ssml_constants;
3pub mod xml_writer;
4
5use color_eyre::Result;
6
7/// Parses a String into the Unique Text to SSML Format. Useful for taking a string
8/// and making some sweet, sweet SSML.
9pub fn parse_string(to_parse: String) -> Result<String> {
10    parser::parse_as_ssml(&to_parse)
11}
12
13/// Parses a String into the Unique Text to SSML Format. Useful for taking a string
14/// and making some sweet, sweet SSML.
15pub fn parse_str(to_parse: &str) -> Result<String> {
16    parser::parse_as_ssml(to_parse)
17}