MyTranslator Bridges Language Gaps Instantly

We’re thrilled to spotlight this community project built on OpenHome! Congratulations community members Nick Jiang and Jayesh Chatlani for winning the Community Favorite prize at the OpenHome hackathon. Imagine sitting in...

Author: Shannon Wu

We’re thrilled to spotlight this community project built on OpenHome! Congratulations community members Nick Jiang and Jayesh Chatlani for winning the Community Favorite prize at the OpenHome hackathon.

Imagine sitting in the living room of a new international friend, surrounded by laughter and warmth, yet feeling an invisible wall between you due to the language barrier. The room is filled with stories, jokes, and insights you’re eager to share and understand, but the flow of conversation is hindered by the need for manual translation. This scenario, common to many who venture into multicultural friendships, business meetings, or family gatherings with linguistically diverse members, underscores the frustration and limitations imposed by not being able to communicate freely in another language.

In today’s interconnected world, where global friendships and international collaborations are not just common but encouraged, the ability to communicate across language barriers is more valuable than ever. According to Ethnologue, while English is the most commonly spoken language, it is only spoken by about 17% of the global population as a first language, leaving a vast majority of interactions potentially lost in translation.

Demo

About the Developers

Nick Jiang and Jayesh Chatlani are two developers based in the Bay Area.

Congratulations for winning the Community Favorite prize at the OpenHome AI Voice Experiences Hackathon!

About the Project

Enter MyTranslator, powered by OpenHome’s open-source SDK, designed to bridge these gaps. This tool is not just an application; it’s a breakthrough in communication technology, enabling real-time, seamless translation in the comfort of your own home, office, or any meeting space equipped with a smart speaker. No longer does one need to fumble with phones or disruptive translation devices during a conversation. MyTranslator App integrates smoothly with your environment, allowing for a natural flow of dialogue across languages.

By leveraging the capabilities of smart speakers with the advanced translation proficiency of DeepL, MyTranslator opens up a new realm of possibilities. Whether it’s a family dinner where relatives do not speak the same language, a brainstorming session with international colleagues, or a casual gathering among friends from different corners of the world, this app ensures that everyone can be heard, understood, and connected on a deeper level.

The following code snippet shows one way to implement a text-to-text translation capability that takes in a message and converts it to another.

Python

class MoodEvolver(BaseCapability):
    @classmethod
    def register_capability(cls) -> "MoodEvolver":
@@ -65,8 +65,10 @@ def call(

    def final_response_prompt(self, msg: str, agent: BotAgent) -> str:
        print(f"MSG2: {msg}")

        # Translate message to desired language
        translator = deepl.Translator(DEEPL_KEY)
        result = translator.translate_text(msg, target_lang="ZH")
        result = translator.translate_text(msg, target_lang=LANGUAGE)
        print(f"Translated text: {result.text}")
        msg = result.text

This revolutionary approach not only dismantles language barriers but also enriches our social interactions and professional engagements. With MyTranslator, the essence of every conversation is preserved and respected, enabling cultures to come together in a symphony of understanding. This isn’t just about translating words; it’s about connecting worlds, making every interaction richer and more inclusive.