oscie57 / tiktok-voice

Simple Python script to interact with the TikTok TTS API
515 stars 74 forks source link

How can I put tik tok voices as text to speech in a point reward? #37

Open compakevon opened 1 year ago

compakevon commented 1 year ago

Everything is fine from the configuration from python to write my text with the voice language commands (language) and the file exported in .mp3, I just don't know how I can allow a twitch user to put any text in the points reward and not accumulate several .mp3 files created by users.

First doubt: How can I use this python code to link to Streamer.bot?

Second question: How can I use this python code without generating an .mp3 file and only listening to the text typed by a twitch user?

Plus: the "censored" white boxes are the codes of the tik tok voices

Success mp3 file tik tok voice

MaliMiau commented 1 year ago

Hola, veo que hablas español, así que responderé en este idioma para que me sea mas facil explicarme.

Creas una Acción y la conectas a la recompensa que quieras, con las siguientes sub-acciones:

Sub-Accion 1: Write To File

Sub-Accion 2: Perform Command

Sub-Accion 3: Delay

Sub-Accion 4: Play Sound

Y listo :P Quiero aclarar que en mi caso yo lo usaba para cualquier mensaje y no para una recompensa, así que quizá haya algun error por ese lado.