Giter Club home page Giter Club logo

Comments (11)

KoljaB avatar KoljaB commented on August 25, 2024

Bug, thanks for reporting. I'm currently not updating the lib.
Please exchange

                    self.mpv_process.stdin.write(chunk)
                    self.mpv_process.stdin.flush()

with

                    if not self.muted:
                        self.mpv_process.stdin.write(chunk)
                        self.mpv_process.stdin.flush()

in the elevenlabs_engine.py and it should work.

from realtimetts.

GayaaniD avatar GayaaniD commented on August 25, 2024

Thankyou for your response. I have created a branch : gayaani/realtimetts-refactor and added the changes, can you merge it

from realtimetts.

GayaaniD avatar GayaaniD commented on August 25, 2024

i think, this change didn't work well, after you merge the change , still it plays the audio file

from realtimetts.

KoljaB avatar KoljaB commented on August 25, 2024

Sorry missed set_muted method in the engine, should work with version 0.3.45 now.

from realtimetts.

GayaaniD avatar GayaaniD commented on August 25, 2024

sorry, after i installed the version 0.3.45, it is automatically plays the audio, do I need to set any parameters outside

from realtimetts.

KoljaB avatar KoljaB commented on August 25, 2024

Just testet it with 0.3.45.

engine = ElevenlabsEngine(os.environ.get("ELEVENLABS_API_KEY"))
TextToAudioStream(engine).feed(dummy_generator()).play()

Normal audio playout.

engine = ElevenlabsEngine(os.environ.get("ELEVENLABS_API_KEY"))
TextToAudioStream(engine).feed(dummy_generator()).play(muted=True, output_wavfile="test.wav")

With muted=True silent playout into test.wav here, nothing to hear.

So you did "pip install RealtimeTTS==0.3.45" and it still plays the audio over the stereo device?

from realtimetts.

GayaaniD avatar GayaaniD commented on August 25, 2024

Sorry, now it's working. But Why does the conversion process take so long when run it locally? Are there specific system specifications that could expedite it?

from realtimetts.

KoljaB avatar KoljaB commented on August 25, 2024

It's a realtime lib. It uses the same playout logic, so this is basically 1:1 realtime too. Outputwavefile is a special use case, I won't optimize for this (makes the code complicated and unclean). You could use every engines python libs directly to do this as fast as the engine can synthesize.

from realtimetts.

GayaaniD avatar GayaaniD commented on August 25, 2024

So you mean that, it is better to use elevenlabs or openai library straightly for this requirement right?

from realtimetts.

KoljaB avatar KoljaB commented on August 25, 2024

Yes. For only synthesizing into a file I'd use the APIs directly, because it's faster. output_wavfile parameter was only integrated to verify synthesis.

from realtimetts.

GayaaniD avatar GayaaniD commented on August 25, 2024

Thankyou

from realtimetts.

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.