Git Product home page Git Product logo

ssml's Introduction

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>"#
);

ssml's People

Contributors

decahedron1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ssml's Issues

User `serde` for Serialization (at least optionally)

I'm all for squeezing the last bit of performance out of a module, but I'm curious if you'd be open to adding serde support for (de)serializing SSML? This will make the crate much more interoperable with other crates/ecosystems, and would have the added benefit of not requiring manual implementations.

I believe serde has the required flexibility to create SSML output with few issues.

As with #1, I'd be happy to contribute this, as long as you are open to the idea.

Additional support for the SSML Standard

I'm writing a crate for Spiel, a new speech-synthesis API for Linux. As part of this, it specifies various features that may (or may not be) supported by each given voice, including very detailed SSML features as a bitflag.

I'd like to be able to use this ssml crate for the project such that it can embed SSML content within the request to speak text. For this though, I will need some additional types in the ssml crate.

For example, at first glance it's missing:

I'd be happy to contribute, as long as you are open to additional types being supported in the crate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.