lugia19 / echo-xi Goto Github PK
View Code? Open in Web Editor NEWSpeech to text to speech using Elevenlabs
Speech to text to speech using Elevenlabs
It might just be my setup but the helper.py file errored out for my (Windows10) I had to change lines:
#27 defaultConfig: dict[str, str | int| list|float] = {
#167 def get_provider_config(provider: SpeechRecProvider | TTSProvider) -> dict[str, str|float|bool|int|list]:
#185 def update_provider_config(provider: SpeechRecProvider | TTSProvider, providerConfig:dict):
To
defaultConfig: Dict[str, Union[str, int, list, float]] = {
def get_provider_config(provider: Union[SpeechRecProvider, TTSProvider]) -> Dict[str, Union[str, float, bool, int, list]]:
def update_provider_config(provider: Union[SpeechRecProvider, TTSProvider], providerConfig: dict):
respectively and also
from typing import Dict, Union, Mapping
Something about in Python, the | is used for bitwise OR operations, not for defining the type of a value in a dictionary
Now it works like a charm! Great Job!
I'd like to use https://github.com/152334H/tortoise-tts-fast for voice output, as it sounds a lot better pyttsx3 and can also be run locally. What would be involved in supporting that?
Traceback:
File "C:\Users\gcpins\Documents\Speech2Speech\speechToSpeech.py", line 117, in <module> main() File "C:\Users\gcpins\Documents\Speech2Speech\speechToSpeech.py", line 37, in main srProvider.recognize_loop() File "C:\Users\gcpins\Documents\Speech2Speech\speechRecognition\VoskProvider.py", line 93, in recognize_loop process_text(recognizedText, self.chosenLanguage) File "C:\Users\gcpins\Documents\Speech2Speech\speechToSpeech.py", line 49, in process_text helper.ttsProvider.synthesizeAndPlayAudio(translatedText, helper.chosenOutput) File "C:\Users\gcpins\Documents\Speech2Speech\ttsProviders\ElevenlabsProvider.py", line 56, in synthesizeAndPlayAudio self.ttsVoice.generate_and_stream_audio(prompt, outputDeviceIndex, AttributeError: 'ElevenLabsVoice' object has no attribute 'generate_and_stream_audio'
Windows 11
Using Python 3.10.0
Crashes after transcribing speech (presumably when sending transcribed text to 11Labs API).
best TTS + STT pair?
is there one that has medium-high quality and a short time to wait between responses?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.