# Python-Bing-TTS **Repository Path**: mirrors_areski/Python-Bing-TTS ## Basic Information - **Project Name**: Python-Bing-TTS - **Description**: Microsoft Bing Text to Speech library for Python - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python-Bing-TTS Microsoft Bing Text to Speech library for Python # Installation To install using pip, run the following command: pip install git+https://github.com/westparkcom/Python-Bing-TTS.git # Usage The following is the usage of the library translator.speak(text, language, gender, fileformat) Variable | Description | Note --- | --- | --- text | The text that you wish to convert to speech | language | The language/country you wish to hear the speech in | Case sensitive. See [Bing TTS API Refernce](https://www.microsoft.com/cognitive-services/en-us/speech-api/documentation/api-reference-rest/bingvoiceoutput#4-supported-locales-and-voice-fonts) for list gender | Male or Female | Case sensitive fileformat | File format to encode the speech to | See [Bing TTS API Reference](https://www.microsoft.com/cognitive-services/en-us/speech-api/documentation/api-reference-rest/bingvoiceoutput#http-headers) for list of formats # Example from bingtts import Translator translator = Translator('YOUR-API-KEY-HERE') output = translator.speak("This is a text to speech translation", "en-US", "Female", "riff-16khz-16bit-mono-pcm") with open("file.wav", "w") as f: f.write(output)