Coder Social home page Coder Social logo

Comments (4)

ndarilek avatar ndarilek commented on August 12, 2024

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.

rtfeldman avatar rtfeldman commented on August 12, 2024

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.

jquesada2016 avatar jquesada2016 commented on August 12, 2024

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.

ndarilek avatar ndarilek commented on August 12, 2024

from tts-rs.

Related Issues (20)

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.