Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

open-tts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-tts

A Python module for text-to-speech conversion using an open API

  • 2.0.0
  • PyPI
  • Socket score

Maintainers
1

Open TTS

A Python module for easy text-to-speech conversion using an open API.

Installation

pip install open-tts

Usage

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

Features

  • Easy-to-use Python interface for text-to-speech conversion
  • Support for multiple voices and languages
  • Adjustable speech speed
  • Audio playback functionality
  • Display of available languages and models in terminal or web browser

API Configuration

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


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc