Comments (4)
It sounds like that's exactly by design. It does the same thing on other platforms--speaks the last line but doesn't exit. The speech calls usually don't block for very long, so without an artificial hang then you'd have a program that spoke for a couple MS and then exited.
Is that basically what you're saying happens? Or am I misunderstanding? Have you run this example on another platform, and is the behavior different? I guess you probably can't press enter on the mac version since I structured the artificial hang a bit differently, but Ctrl-c should work too.
And as an aside, I'm thrilled that this works on your M1. I have folks telling me it doesn't speak at all on their M1s. I'd be interested in getting you talking if you're willing to help out with that. Maybe it was due to a bug fixed in a newer macOS version. But I'm glad that it at least says something on an M1. :)
from tts-rs.
It sounds like that's exactly by design. It does the same thing on other platforms--speaks the last line but doesn't exit. [...] Is that basically what you're saying happens? Or am I misunderstanding?
Yep, that's it. I didn't realize it was by design!
And as an aside, I'm thrilled that this works on your M1. I have folks telling me it doesn't speak at all on their M1s. I'd be interested in getting you talking if you're willing to help out with that.
Sure, happy to help! Want to send me a DM on Twitter and we can set something up?
from tts-rs.
Do you think that blocking intentionally is the right behavior? I remember when I used this crate a few months back, no blocking occurred, rather, it did exactly as you mentioned; speaking for a couple ms and then exiting. I worked around this by either introducing a manual sleep timeout, or by implementing future for Tts
, using the on_utterance_end
callback, which worked really nicely.
from tts-rs.
from tts-rs.
Related Issues (20)
- fix docs build HOT 1
- Crash on initiailizing with AVFoundation backend HOT 6
- Help: why does the hello_world.rs example work HOT 4
- Strange behavior setting voices with WinRT HOT 8
- AVFoundation backend crash when getting voices in macOS desktop application HOT 2
- AppKit backend crash when stopping/interrupting speaking
- Failed to build on Linux due to dependency speech dispatcher rs HOT 1
- Unable to detect NVDA on windows. HOT 4
- Crash on macOS- InvalidSubtag for voice language HOT 3
- MacOS: Only first phrase is being pronounced HOT 8
- Docs are failing and so is my build for Linux HOT 3
- add `pause` and `resume` support for web backend
- respecting default speach preferences on mac OS HOT 3
- Can't compile on Ubuntu HOT 1
- Can't compile on Ubuntu (still) HOT 1
- Provide function to wait until the voice finished speaking
- [Feature] add support for the new NVDA Controller Client
- WinRT doesn't correctly drop resources HOT 1
- Unable to successfully run the Android example for tts-rs. HOT 2
- Feature request: Ability to select audio output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tts-rs.