Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: Speech as Vec<u8> or &[u8] #12

Open
TobiasDeBruijn opened this issue Sep 15, 2021 · 3 comments
Open

Q: Speech as Vec<u8> or &[u8] #12

TobiasDeBruijn opened this issue Sep 15, 2021 · 3 comments

Comments

@TobiasDeBruijn
Copy link

Hi there,

Silly question, maybe, but is it possible to get the produced speech as a Vec or a &[u8]? I have not been able to find a way to get it.

Thanks!

@ndarilek
Copy link
Owner

ndarilek commented Oct 8, 2021 via email

@leecbaker
Copy link

leecbaker commented Jun 19, 2022

I'm quite interested in having the ability to get the generated raw audio samples, specifically for the WinRT and AVFoundation backends.

I think for some backends, its a little bit nontrivial- some will want to progressively stream out samples as they are generated, and the generated audio formats (and sample rates) may vary between backends.

I don't know if this would help it get done more quickly, but I'd be happy to offer a bounty to anybody who implements this feature in a manner acceptable to @ndarilek, creates a PR, and gets it merged to this repository. $40 PayPal each for the WinRT and AVFoundation backends, or $80 together.

@usagi
Copy link

usagi commented Oct 7, 2023

I am currently to use tts crate in combination with rodio crate and other speech synthesis systems in the asynchronous processing using tokio. I am waiting to the day when Issue-#12 is completed and PR-#30 are merged into the tts mainstream.

Because on Windows, opening a rodio OutputStream will cause tts is_speaking() to always return true from then on, making it extremely difficult to use them together. I hope that synthesize() will be merged into tts to improve its usability with other systems, cheers.


note: For those who have encountered the same problem as I did and arrived at this Issue. While it is not always advisable to use a branch in development for a product, a product in demand must be released.

[dependencies]
# tts = "0.25.6"
[target.'cfg(windows)'.dependencies]
# tts Issue-#12, PR-#30 synthesize branch
tts = { git = "https://github.com/Bear-03/tts-rs", branch = "synthesize" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants