Migushthe2nd / MsEdgeTTS

A simple Azure Speech Service module that uses the Microsoft Edge Read Aloud API
https://migushthe2nd.github.io/MsEdgeTTS/
MIT License
289 stars 41 forks source link

On this way(Write to Stream), how to set correct order of waves? #1

Closed cshijiel closed 2 years ago

Migushthe2nd commented 3 years ago

By "waves", do you mean frequency as in KHz?

Migushthe2nd commented 3 years ago

If you want to change the output format, you have to call setMetadata() on the MsEdgeTTS instance. https://github.com/Migushthe2nd/MsEdgeTTS/blob/919a00ff2aa5048a907931c38ad5756a56fba228/src/index.ts#L127-L137