Saravanan666/pypi-org huggingface dataset:
Package: voiceflow
Voiceflow Python PackageThis is an unofficial Python package for an easy use of theVoiceflow API.Basic usageIn your virtual environment:pip install voiceflowThen in your Python code:importosfromvoiceflowimportVoiceflowvf=Voiceflow(api_key=os.getenv('VOICEFLOW_API_KEY'),user_id='abc123')# Launch the agentvf_response=vf.interact.launch()# Send a simple text inputvf_response=vf.interact.text(user_input='hello')Pass the version of your Voiceflow project to contact.
It can bedevelopment(default) orproduction.vf=Voiceflow(api_key=os.getenv('VOICEFLOW_API_KEY'),user_id='abc123',version_id='production')You can also calllaunch()ortext()with your customconfig:vf_response=vf.interact.launch(config={'stripSSML':False})Defaultconfigvalues:{'tts':False,'stripSSML':True,'stopAll':True,'stopTypes':[],'excludeTypes':['block','debug','flow',]}User State:# Fetch the user's current statevf_response=vf.user_state.fetch()# Delete all state and session data for user.vf_response=vf.user_state.delete()# NotImplemented:# Update the user's current state.Variables:variables={'test1':'one','test2':2,}vf_response=vf.variables.update(variables=variables)About this projectThis project is created and maintained by:Daian GanGithub:daianganE-mail:daian@ganmedia.comWebsite:https://daiangan.com
Package: voicegain-speech
Voicegain Speech-to-Text Python SDKPython SDK for theVoicegainSpeech-to-Text API.This API allows for large vocabulary speech-to-text transcription as well as grammar-based speech recognition. Both real-time and offline use cases are supported.You can see the core Voicegain API documentationhere.The complete documentation for the API covered by this SDK is availablehere- this link requires an account on the Voicegain portal - see below for how to sign up.RequirementsIn order to use this API you need account with Voicegain. You can create an account by signing up onVoicegain Portal. No credit card required to sign up.You can see pricinghere- basically, it is 1 cent a minute for off-line and 1.25 cents a minute for real-time. There is a Free Tier of 600 minutes that renews each month.InstallationFromPyPIdirectly:pip install voicegain-speechExamplessync_transcribe example:configuration:fromvoicegain_speechimportApiClientfromvoicegain_speechimportConfigurationfromvoicegain_speechimportTranscribeApiimportbase64# configure your JWT tokenJWT="Your <JWT>"configuration=Configuration()configuration.access_token=JWTapi_client=ApiClient(configuration=configuration)transcribe local file:transcribe_api=TranscribeApi(api_client)file_path="Your local file path"withopen(file_path,"rb")asf:audio_base64=base64.b64encode(f.read()).decode()response=transcribe_api.asr_transcribe_post(sync_transcription_request={"audio":{"source":{"inline":{"data":audio_base64}}}})alternatives=response.result.alternativesifalternatives:local_result=alternatives[0].utteranceprint("result from file: ",local_result)else:local_result=Noneprint("no transcription")More examples can be found inexamplesfolder on ourGitHubLearn more about the Voicegain Voice AI Platform atwww.voicegain.ai
Package: voicehelper.py
voicehelper.pyРћРїРёСЃР°РЅРёРµР­С‚Рѕ РјРѕРґСѓР»СЊ СЃРѕРµРґРёРЅРёРІС€РёР№ РІ СЃРµР±Рµ РґРІРµ РЅРµР№СЂРѕРЅРЅС‹Рµ СЃРµС‚Рё. Р”Р»СЏ СѓРїСЂРѕС‰РµРЅРёСЏ СЃРѕР·РґР°РЅРёСЏ РіРѕР»РѕСЃРѕРІРѕРіРѕ РїРѕРјРѕС€РЅРёРєР°.РЈСЃС‚Р°РЅРѕРІРєР°pip install --upgrade voicehelper.py!!! Р’РќРРњР•РќРР• !!!РЈСЃС‚Р°РЅРѕРІРєР°torchРґРѕР»Р¶РЅР° РїСЂРѕРёСЃС…РѕРґРёС‚СЊ РѕС‚РґРµР»СЊРЅРѕ.РЎР°Р№С‚ PyTorch InstallationРќР°Р·РІР°РЅРёРµ РјРѕРґРµР»РµР№ РґР»СЏ Р·Р°РіСЂСѓР·РєРёР”Р»СЏSpeechSynthesizerР”Р»СЏSpeechRecognitionРџСЂРёРјРµСЂРџСЂРёРјРµСЂ СЃРѕР·РґР°РЅРёСЏ Р“РѕР»РѕСЃРѕРІРѕРіРѕ РђСЃСЃРёСЃС‚РµРЅС‚Р°importVoiceHelperfromrich.consoleimportConsole# РљРѕРЅСЃРѕР»СЊc=Console()# РљР»Р°СЃСЃ РЅРµР№СЂРѕСЃРµС‚Рёc.clear()c.rule("Р—Р°РїСѓСЃРє")# РџСЂРѕС†РµСЃСЃ РёРЅРёС†Р°Р»РёР·Р°С†РёРёtry:ssynth=VoiceHelper.SpeechSynthesizer(device_type="cuda")except:ssynth=VoiceHelper.SpeechSynthesizer(device_type="cpu")vh=VoiceHelper.VoiceHelper(ssynth,VoiceHelper.SpeechRecognition())# РљРѕРјР°РЅРґС‹@vh.add_command("РїСЂРёРІРµС‚")defHello(event:VoiceHelper.Event):vh.say("РђРіР°, СЏ Р·РґРµСЃСЊ!")@vh.add_command(["СЃРєР°Р¶Рё <text>"])defcSay(event:VoiceHelper.Event,text:str):vh.say(text)@vh.add_command("РїРѕРєР°")defcGoodBye(event:VoiceHelper.Event):vh.say("Р”Рѕ СЃРІРёРґР°РЅРёСЏ!")vh.stop()@vh.add_command("<text>")defcLogger(event:VoiceHelper.Event,text:str)->None:c.print(f"[red]You[/] [green]->[/] [yellow]{text}[/]")# Р—Р°РїСѓСЃРєif__name__=="__main__":c.rule("Р›РѕРіРё")vh.start()РџСЂРёРјРµСЂ РіРµРЅРµСЂР°С†РёРё РіРѕР»РѕСЃР°fromVoiceHelper.NueroNetworksimportSpeechSynthesizerss=SpeechSynthesizer(sample_rate=48000,thread_count=1)# РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ СЃС‚РѕРёС‚ СЂСѓСЃСЃРєР°СЏ СЂРµС‡СЊwithopen("test.wav","wb")asfile:file.write(ss.get_audio_bytes("РџСЂРёРІРµС‚!","WAV","PCM_32"))
Package: voiceinvoiceout
voiceinvoiceoutpip install voiceinvoiceoutDeveloped by Vedant Barhate (c) 2022This package is useful when you want to take audio input through mic from user, give audio output, give audio+text output and audio repeating feature (like talking tom).Examplefromvoiceinvoiceoutimport*vin=voiceIn("Say something...")# to take audio inputprint(vin)vout=voiceOut("Hello world")# to give audio outputsp=sprint("Welcome")# to give text+audio output (sprint=speak+print)speakOut()# to repeat your words (like talking tom)
Package: voiceio
VoiceIOVoice package for Pycord adding extra features.ExampleDown bellow is an example of what you can currently do.importvoiceioprocess=voiceio.Process()@process.download(url="https://www.youtube.com/watch?v=dP15zlyra3c")# Downloads the given link.# Full List of supported WebSites: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.mdasyncdefy():pass
Package: voicelabs
----------------------------------------# Install the packageyou can install the package locally in the current folder by using the following command:#from test PIP repopip install -t ./ -i https://testpypi.python.org/pypi VoiceInsights#from main public PIP repopip install -t ./ VoiceInsights----------------------------------------## SDK usage:from voicelabs import  VoiceInsightsappToken = '<YOUR APP TOKEN>'vi = VoiceInsights()def on_session_started(session_started_request, session):# Called when the session starts """vi.initialize(appToken, session)def on_intent(intent_request, session):intent = intent_request['intent']intent_name = intent_request['intent']['name']response = None#Logic to populate response goes here#invoke SDK track method like followsvi.track(intent_name, intent_request, response)return response----------------------------------------
Package: voicelabs-assistant
----------------------------------------# Install the packageyou can install the package locally in the current folder by using the following command:#from test PIP repopip install -t ./ -i https://testpypi.python.org/pypi voicelabs-assistant#from main public PIP repopip install -t ./ voicelabs-assistant----------------------------------------## SDK usage:#import sdkfrom voicelabs import  VoiceInsights#instantiate SDK object globally. You only need one object.appToken = '<YOUR APP TOKEN>'vi = VoiceInsights(appToken)#track your events. Example Flask implementation@app.route('/intent', methods = ['POST'])def api_intent_handler():req_json = request.get_json()data = req_json['originalRequest']['data']intentName = req_json['result']['metadata']['intentName']...#tts string could be plain text or a valid SSMLtts = "Here is my response to the user"...resp = vi.track( intentName, data, tts )----------------------------------------
Package: voicemaker
VoicemakerVoicemaker.in is an online text-to-speech service with a dead-simple API. This package is just a wrapper around their API.This is an unofficial package, and is in no way associated to Voicemaker.The official API documentation is here:https://developer.voicemaker.in/apidocsLatest API supported versionThe lastest API supported version is thev2.2.PrerequisitesThe only thing you will need is your API token, which you can obtain in the official API documentation page once you log in.UsageList all available voices for a languagefromvoicemakerimportVoicemakervm=Voicemaker()vm.list_voices(language="en-US")Which returns an array ofdictelements with the following structure:[{"Engine":"neural","VoiceId":"ai1-Joanna","VoiceGender":"Female","VoiceWebname":"Joanna","Country":"US","Language":"en-US"},...]Generate URL for textfromvoicemakerimportVoicemakervm=Voicemaker()vm.set_token('<TOKEN>')vm.generate_audio_url('I met a traveller from an antique land Who said: Two vast and trunkless legs of stone Stand in the desert.')Returns the URL of the generated voice in MP3 format.Also accepts the following optional arguments:text (str): Text to generate an audio from.
engine (str, optional): Choose between 'standard' and 'neutral'. Defaults to 'neural'.
voice_id (str, optional): Uses the selected voice id from the available one for the selected language. Defaults to 'ai3-Jony'.
language_code (str, optional): Language of the target voice. Defaults to 'en-US'.
output_format (str, optional): Choose from 'mp3' and 'wav'. Defaults to 'mp3'.
sample_rate (int, optional): Choose from 48000, 44100, 24000, 22050, 16000, 8000. Defaults to 48000.
effect (str, optional): Effect to give to the voice. Defaults to 'default'.
master_speed (int, optional): Speed from -100 to 100. Defaults to 0.
master_volume (int, optional): Volume of the voice from -100 to 100. Defaults to 0.
master_pitch (int, optional): Pitch of the voice, from -100 to 100. Defaults to 0.Save generated audio to diskThis is a convenience method. It just callesgenerate_audio_url, gets the URL, downloads the file and saves it to disk.fromvoicemakerimportVoicemakervm=Voicemaker()vm.set_token('<TOKEN>')vm.generate_audio_to_file('test.mp3','I met a traveller from an antique land Who said: Two vast and trunkless legs of stone Stand in the desert.')
Package: voicen
# Voicen Python SDK## DocumentationThis is Python SDK to use Speech-to-text service of Voicen. To see more about
API visit to [API Documentation](https://voicen.com/en/api/). You are free to
develop your own SDK for different languages using Voicen API documentation.## InstallationYou can install SDK direct from pip repository running this command:pip install –upgrade voicen-python-sdkYou can also install from source code:python setup.py install –user### RequirementsPython 2.7+ or Python 3.4+## UsageBefore using this SDK you must have an Access Token. To get Access Token visit
to [API Token](https://voicen.com/en/user/api/) page. There is an Access Token
generated for you. Use this Access Token to create your client:`python from voicen import vcnclient # create your client voicen_client =vcnclient.VoicenClient('ACCESS_TOKEN')`### Sending a fileOnce you have set up your client with your Access Token you can send a file to
transcribe. You also must specify language of speech.`python #send a file to transcribe job =voicen_client.create_job_with_local_file('PATH_TO_FILE','LANGUAGE') `### Sending media urlOnce you have set up your client with your Access Token you can send a media URL
to transcribe. For example you can use youtube URL as a media URL. You also must
specify language of speech.`python #send a media URL to transcribe job =voicen_client.create_job_with_media_url('MEDIA_URL','LANGUAGE') `### Checking status of jobYou can check status of job using itsid`python #get job details job_details = voicen_client.get_job(job.id) `### Getting list of jobsYou can get list of jobs.`python #get list of jobs jobs = voicen_client.get_jobs() ``python #limit number of jobs in the list jobs = voicen_client.get_jobs(limit=50) ``python #get jobs starting after the certain job id jobs = voicen_client.get_jobs(start_after=1203) `### Deleting jobYou can delete job using itsid`python #delete job voicen_client.delete_job(job.id) `### Getting your transcriptionYou can get your transcription in these formats:jsontextsrt(SubRip Text)Microsoft Word`python #get your transcription as a json #returns Transcription object transcription = voicen_client.get_transcription(job.id) ``python #get your transcription as a text #return string transcription_text = voicen_client.get_transcription_as_text(job.id) ``python #get your transcription as a srt #returns string transcription_srt = voicen_client.get_transcription_as_srt(job.id) ``python #get your transcription as ms word #returns byte array transcription_msword = voicen_client.get_transcription_as_msword(job.id) `### Getting account detailsYou can get you account email and balance in seconds.`python #get account account = voicen_client.get_account() `### Getting payment detailsYou can get your payment details.`python #get payment details payment = voicen_client.get_payments() `
Package: voices-client
voices-clientA library for accessing Voices for python.InstallationUse the package managerpipenvto install.pipenv install voices-clientUsageUse your own Voices credentials.user- Voices userpassword- Voices passwordfromvoicesimportVoicesclient=Voices(user='user',password='password',)TestTested withmamba, install pipenv dev packages and then run tests.pipenv install --dev
pipenv run make testContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: voice-stream
voice-stream: Creating voice bots from LLMs.Quick InstallVoiceStream is distributed onPyPI.  To install, run:pip install voice-streamThis will install the bare minimum requirements of VoiceStream.
A lot of the value of VoiceStream comes when integrating it with different audio sources, speech recognition and
text to speech systems.  By default, the dependencies needed to do that are NOT installed. You will need to install
the dependencies for specific integrations separately.🤔 What is VoiceStreamVoiceStream is a framework for building voicebots using language models.Integrates with LangChain so you can take any LLM application.Makes it easy to use different Text-To-Speech and Speech Recognition modelsUses asyncio and streaming throughout to provide a great user experience.Handles voice specific conversation flows, like interrupting the current speaker.VoiceStream is built to make it easy to build voice applications on top of LangChain, but
can work with any LLM framework.🧱 What can you build with VoiceStream?:robot:VoiceBots- Chatbots that you can talk and listen to instead of typing.:telephone_receiver:Automated Telephone Calls- Make automated phone calls powered by LLMs and rich-content:teacher:Voice Assistants- Build your own voice assistant that can do anything you want.🚀 How does VoiceStream help?The main value props of VoiceStream are:Components- Modular and easy-to-use components for audio input/output, speech recognition, and text to speech.Streaming- Audio programming can be tricky in Python.  VoiceStream provides simple streaming commands that make it easy to string together audio applications.📖 DocumentationPlease seeherefor full documentation, which includes:From here, explore the rest of the documentation to learn more about VoiceStream.Quickstart- Build a fully functional voicebot in 15 minutes.Concepts- A methodical intro to the concepts underlying VoiceStream.Cookbook- How to take advantage of the various capability of VoiceStream.GitHub Examples- To view and run the code for fully worked examples.API Reference- If you are into reading API docs directly.💁 ContributingVoiceStream is a volunteer maintained open source project, and we welcome contributions of all forms. Please take a look at ourContributing Guidefor more information.:classical_building: LicenseThis project is licensed under theMIT License.
Package: voicesynth
VoiceSynthVoice Synthesizing LibraryHow to use:First, install the packagepipinstallvoicesynthThen import it into your code and go ahead and use it:fromvoicesynthimportModel,Synthesizer,show_available_modelsshow_available_models()# Showcase of all tts models available# initializing the model# setting show_download to False does not show model downloading progressmodel=Model("v4_ru",model_path="model.pt",show_download=False)model.set_speaker("eugene")# creating a synthesizer instancesynthesizer=Synthesizer(model)synthesizer.say("Я представить себе не могу, что это действительно случилось!")Instead of using .say() method, you can synthesize an audio and then play it whenever you wantimporttimesynthesizer.synthesize("Всем привет!",path="audio.wav")time.sleep(3)synthesizer.play_playsound("audio.wav")There are multiple ways to play a synthesized audio:synthesizer.say("Как дела?",module="pygame")# Using pygame.mixer to play the audiosynthesizer.say("Хорошо, а твои как?",module="pydub")# Using pydub to play the audioThere are three ways to play the audio:synthesizer.audio.play_playsound("audio.wav")synthesizer.audio.play_pygame("audio.wav")synthesizer.audio.play_pydub("audio.wav")All models support simple ssml tags:synthesizer.say("В н+едрах т+ундры в+ыдры п+ели п+есни",prosody_rate=90)# I added prosody as a parameter, so that people who are not familiar with ssml tags# could change speaking speed without knowing how to manually do itBy default, logging is enabled. If it bothers you, you can disable itfromvoicesynthimportdisable_loggingdisable_logging()
Package: voicetools
voicetools语音识别和语音合成的基础包。简介以百度语音 API 为基础的语音识别和语音合成的基础包，同时集成了 wolfram API 和图灵机器人 API。附带树莓派语音助手示例代码。使用详情请参照：https://github.com/namco1992/voicetools/blob/master/README.md
Package: voicetotext
# Voice2TextVoice2Text is transcript media file to txt file to use Google Speach API &## InstallationVoice2Text need GOOGLE_APPLICATION_CREDENTIALS files.if you don't have this, please build google cloud projects and get from it.#### Gcloud Project build1. Google Cloud SDK Install```brew cask install google-cloud-sdk```2. Setting Gcloud Projects```gcloud auth logingcloud alpha projects create voicetotext-123456 --name voice2text```3. Go to Projects URL and enable Google Speech API.4. Please Enable (Billing)[https://support.google.com/cloud/answer/6293499?hl=en].5. Create Service Key and Downlaod (Ref:[Service Acount](https://cloud.google.com/storage/docs/authentication#generating-a-private-key).)5. set GOOGLE_APPLICATION_CREDENTIALS```export GOOGLE_APPLICATION_CREDENTIALS='/your/service/acount/key/xxx.json'```#### Install```pip install voicetotext```## UsageThis application has two commands.splitvoice is convert the voice diving.voicetotext is voice existing in the folder into a text through google api.(See help command)```splitvoice --helpvoicetotext --help```## Sample#### Split Audio FilesSample Japanese voices from [here](http://nergui.sakura.ne.jp/library.html)```$ splitvoice voices/hana_1.mp3 --relativespliting /57spliting Done!File was separete 57 filesOutput Separeted files? [Y/n]:ysepareted done! Have a nice Day!⏎```#### Transript Japanese audio files```$ voicetotext results/ -s 22050 -l "ja_JP"芥川龍之介花line朗読池田秀雄禅智内供の鼻といえば池で知らないものはない長澤語録すがって上唇の上から顎の下まで下がっている```## Error Handling#### "Sample rate in request does not match FLAC header."You need to examine the sample rate.I recommend ffprove to examine.```$ ffmprove results/000.flacInput #0, flac, from 'results/000.flac':Metadata:ENCODER         : Lavf57.56.101Duration: 00:00:01.87, start: 0.000000, bitrate: 184 kb/sStream #0:0: Audio: flac, 22050 Hz, mono, s16```You can get framerate. In this case, frame rate is 22050.So, your commands is this.```$ voicetotext results -s 22050```## Contributing1. Fork it!2. Create your feature branch: `git checkout -b my-new-feature`3. Commit your changes: `git commit -am 'Add some feature'`4. Push to the branch: `git push origin my-new-feature`5. Submit a pull request :D## Debugging```# virtualenvpython3 -m venv envsource ./env/bin/activate# python packages installpip install -r requirements.txt```## History# LicenseThis software is released under the MIT License, see LICENSE.txt.
Package: voice-transcriber-client
# Voice Transcriber
![CI](https://github.com/jamesridgway/voice-transcriber-client/workflows/CI/badge.svg?branch=master)A python client for [voice-transcriber](https://github.com/jamesridgway/voice-transcriber).## Installationpip install voice-transcriber-client## Usage### Setup credentialsvoice-transcriber config -d mydoma.in -a MyApiKey-l3tm31n### Transcribe an audio filevoice-transcriber transcribe meeting.m4a## Development
The following instructions will help you get started in developing changes for this project.### Python Environment
Run the following to setup a python virtual environment and install all dependencies:./setup.sh### Pylint
Pylint is used to check code quality and style, pylint can be run using:./run-pylint.sh### Tests
You can run the test as follows:./run-tests.shAn HTML code coverage report will be generated in thehtmlcovdirectory.
Package: voicetransformer
voicetransformerA wrapper overpyworldto make voice transformation easy.The wrapper is based on thevt_server_module_world,
also offering a command line interface.Licensevoicetransformer, a simple wrapper for pyworld
Copyright (C) 2022 Etienne GaudrainThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttps://www.gnu.org/licenses/.
Package: voicetranslator
Real Time Translation for Live StreamsSetup1. Install with pipAvailable for Python 3pip install voicetranslator2. Quick start - ExamplePlay any audio from your desktop and run this exampleimport voicetranslator
desktop_audio=voicetranslator.Translate('en-US','es-ES')
desktop_audio.start()3. LanguagesLanguagesCodeEnglishen-USSpanishes-ES
Package: voicevox-client
Unoffical API wrapper that you can use voicevox easy!RequirementsVoicevox engineonly!Well if you want install voicevox engine, please readthis.Installpipinstallvoicevox-clientAll that!ExamplefromvoicevoximportClientimportasyncioasyncdefmain():asyncwithClient()asclient:audio_query=awaitclient.create_audio_query("こんにちは！",speaker=1)withopen("voice.wav","wb")asf:f.write(awaitaudio_query.synthesis(speaker=1))if__name__=="__main__":## already in asyncio (in a Jupyter notebook, for example)# await main()## otherwiseasyncio.run(main())
Package: voicevox-python
voicevox-pythonexamplefromvoicevox_pythonimportClient,speaker2idspeaker_id=speaker2id("ずんだもん","ノーマル")client=Client()query=client.audio_query("こんにちは",speaker_id)audio=client.synthesis(query,speaker_id)withopen("out.wav",mode="wb")asf:f.write(audio)
Package: voicex
voiceX - A Python Library for Personalized TTSImport the necessary stuff:from voicex import TTS, VoicesSpecify the IP of the server where the TTS backend is running:server_ip = "xxx.xxx.xx.xx"Specify your voicex file, and the ip and port of the server where your voicex instance is running:tts = TTS(voice="voices/thomas.voicex", server=server_ip)Alternatively, you can use one of the predefined voices:tts = TTS(voice=Voices.GABBY, server=server_ip)Synthesize, speak or write stuff:text = "This is a test sentence. I hope you like my voice."
tts.speak(text)
wav_data, sample_rate = tts.synthesize(text)
tts.write(text, "output.wav")