
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
п»ї# ChatGPT-TTS Integration Library! The ChatGPT-TTS Integration Library is a powerful open-source tool that seamlessly combines the capabilities of ChatGPT and Text-to-Speech (TTS) technology. With this library, developers can effortlessly create conversational AI applications that not only understand text input but also generate natural-sounding spoken responses. This integration allows for a more immersive and interactive user experience, making it ideal for chatbots, virtual assistants, and other AI-driven applications.
pip install chatgpt-tts
or
git clone https://github.com/soyll/chatgpt-tts.git
cd chatgpt-tts
python3 -m venv venv
.\venv\Scripts\activate
source venv/bin/activate
requirements.txt
:
pip install -r requirments.txt
import chatgpt-tts
# init ChatGPT-TTS
chat_tts = ChatGpt_TTS(speaker, model_id, language, folder_to_save)
# use ChatGPT-TTS
chat_tts.create_tts(text, prompt, user_id)
# code by bruhmnm
import telebot
from chatgptTTS import chat
TOKEN = "TELEGRAM_TOKEN"
# init ChatGPT-TTS
chat_tts = chat.ChatGpt_TTS("en_0", "v3_en", "en", folder="usr/audio/")
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(content_types=['text'])
def integrate(message):
audio = chat_tts.create_tts(text=message.text, prompt="prompt", id=message.from_user.id)
# read wav
with open(audio[1], 'rb') as fd:
audio = fd.read()
# send voice
bot.send_voice(message.from_user.id, audio)
bot.polling(none_stop=True)
name | description | example |
---|---|---|
speaker | A trained vocal pattern with gender, accent, and tone | en_0, en_1 |
model_id | Unique id of the language, indicating its version | en_v3, v3_ru |
lang | Language indicating available model_id and speaker | ru, en |
folder | Absolute path to the folder where Chat-GPT responses will be saved | C:/Example/Path/ |
prompt | A set of words denoting a task or dialog scenario | Act as an editor and correct the mistakes in this text |
text | Text indicating a request to Chat-Gpt to which it will later respond | AI help for your creativty, no mstakes, great wrting! |
id | A unique number that, when integrated with social media, can be linked to an individual user for logs | self.chat_id, self.user_id, id355367865, 34567653479 |
FAQs
This is the simplest module for AI Conversations with TTS.
We found that chatgptTTS 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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.