Comments (11)
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.
Thankyou for your response. I have created a branch : gayaani/realtimetts-refactor and added the changes, can you merge it
from realtimetts.
i think, this change didn't work well, after you merge the change , still it plays the audio file
from realtimetts.
Sorry missed set_muted method in the engine, should work with version 0.3.45 now.
from realtimetts.
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.
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.
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.
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.
So you mean that, it is better to use elevenlabs or openai library straightly for this requirement right?
from realtimetts.
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.
Thankyou
from realtimetts.
Related Issues (20)
- Adding Google Cloud Text To Speech Engine HOT 3
- iOS browsers report the error: AbortError: The operation was aborted. HOT 1
- Class TextToAudioStream's param level is not used, so you can not config the log level HOT 1
- Please add audio manipulation HOT 2
- Can it support Edge_tts? HOT 1
- Get chunks for streaming HOT 3
- pvorcupine use may be outdated HOT 6
- Get a wav file HOT 2
- Question about tokenizer HOT 11
- Is there any way to convert the input text received by the realtimetts server into a text stream? HOT 5
- Is it possible to have the next code proceed after the play_async() has completed its task? HOT 2
- Can it support CosyVoice? HOT 1
- Support multiple langaues per engine HOT 21
- Is it possible to use Cuda with this. HOT 16
- Unable to install on Arch Linux HOT 1
- Audio inflections. HOT 3
- Don't play out loud and just output to wav file? HOT 2
- I couldn't find an implementation for RealtimeRVC HOT 2
- Can we stream output to websockets directly?
- Does ElevenLabs support real-time voice cloning? HOT 1
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 realtimetts.