← kwindla hultman kramer

In April last year I hacked together a voice bot that did live translation…

June 20, 2024

In April last year I hacked together a voice bot that did live translation between Spanish and English during video calls.

That was the first non-trivial thing I built using GPT-4 The fact that it was possible for a general-purpose LLM to do very good language translation totally blew my mind.

Live translation continues to be an important voice AI use case, and continues to get easier to implement and deploy.

@aconchillo built a nice little demo of another way to use the multi-lingual capabilities of GPT-4. Ask a voice bot to speak to you in different languages.

A complete voice bot that speaks Spanish and English is 150 lines of @pipecat_ai code. (Most of that is Python import statements and object instantiation. 😇) Here's the important part ...

Here's audio of @aconchillo talking to the multi-lingual voice bot.

Source code is here[1]

  1. https://github.com/pipecat-ai/pipecat/blob/main/examples/foundational/15a-switch-languages.py