Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
A Python module for easy text-to-speech conversion using an open API.
pip install open-tts
from open_tts import TextToSpeech
# Initialize TextToSpeech with your API URL
tts = TextToSpeech("http://your-api-url:port")
# List available voices
print(tts.list_voices())
# Get available languages
print(tts.get_languages())
# Convert text to speech
output_file = tts.convert("Hello, world!", "emma", speed="normal", output_file="hello.wav")
# Play the generated audio
if output_file:
tts.play_audio(output_file)
# Display languages and models
tts.display_languages_and_models("terminal") # Display in terminal
tts.display_languages_and_models("web") # Display in web browser
When initializing the TextToSpeech class, provide your API URL:
tts = TextToSpeech("http://your-api-url:port")
For more information, please refer to the GitHub repository.
FAQs
A Python module for text-to-speech conversion using an open API
We found that open-tts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.