playing around with this

This commit is contained in:
Moishe Lettvin
2024-02-27 09:55:40 -05:00
parent 92ec5641d4
commit cec2bdc15f
7 changed files with 103 additions and 44 deletions

View File

@@ -35,6 +35,8 @@ async def main(room_url):
voice_id=os.getenv("ELEVENLABS_VOICE_ID"))
"""
tts = PlayHTAIService(
source=None,
sink=transport.send_queue,
api_key=os.getenv("PLAY_HT_API_KEY"),
user_id=os.getenv("PLAY_HT_USER_ID"),
voice_url=os.getenv("PLAY_HT_VOICE_URL"),
@@ -48,8 +50,7 @@ async def main(room_url):
return
await tts.say(
"Hello there, " + participant["info"]["userName"] + "!",
transport.send_queue,
"Hello there, " + participant["info"]["userName"] + "!"
)
# wait for the output queue to be empty, then leave the meeting