DEV Community

Krishnamurthy Pamidimukkala
Krishnamurthy Pamidimukkala

Posted on

Murf AI Powered Tour Guide

This is a submission for the Murf AI Coding Challenge 2

What I Built

I built Murf Guide Bot - an intelligent, multilingual virtual tour guide that operates through Telegram. This AI-powered travel companion solves the common problem of language barriers and lack of local knowledge that international travelers face.

Key Problem Solved:

  • International tourists often struggle with language barriers when asking for directions or local recommendations
  • Traditional travel apps don't provide voice interaction or multilingual support
  • Tourists need real-time, contextual assistance based on their exact location
  • Many travelers prefer voice interaction over typing, especially when on the move

Solution:
A Telegram bot that combines cutting-edge AI technologies to provide real-time tourism assistance with natural voice interaction in 20+ languages. Users can speak or type their questions and receive both text and audio responses in their preferred language, complete with walking directions and location-based recommendations.

Demo

Code Repository:

GitHub Repository

How I Used Murf API

I leveraged Murf AI's APIs in two critical ways to create a seamless multilingual experience:

1. Text-to-Speech (TTS) Service:

  • Integrated Murf's WebSocket TTS API for real-time audio generation
  • Used 20+ different voice IDs to provide natural-sounding speech in multiple languages and accents
  • Implemented streaming audio responses to deliver high-quality voice output instantly
  • Supported languages include English variants, Spanish, French, German, Hindi, Tamil, Chinese, Japanese, Korean, and many more

2. Translation Service:

  • Utilized Murf's translation API to convert responses between languages
  • Enabled seamless language switching based on user preferences
  • Provided real-time translation of tour guide responses to user's preferred language
  • Maintained context and meaning while translating location-specific information

Technical Implementation:

# TTS Integration
async def murf_websocket_tts(text, target_lang):
    voice_id = VOICE_MAP.get(target_lang, "en-US-natalie")
    # WebSocket connection to Murf API for streaming audio
    # Real-time audio generation with natural voice synthesis

# Translation Integration
def translate_text(text: str, target_lang) -> str:
    response = client.text.translate(
        target_language=target_lang,
        texts=[text]
    )
    return response.translations[0].translated_text
Enter fullscreen mode Exit fullscreen mode

Use Case & Impact

Real-World Applications:

1. International Tourism:

  • Who Benefits: International tourists visiting new cities
  • Impact: Eliminates language barriers, provides instant local knowledge
  • Improvement: Replaces need for human tour guides or translation apps

2. Business Travel:

  • Who Benefits: Business travelers needing quick local guidance
  • Impact: Saves time and reduces stress in unfamiliar locations
  • Improvement: More efficient navigation and local recommendations

3. Accessibility:

  • Who Benefits: Users with visual impairments or those who prefer voice interaction
  • Impact: Makes travel information accessible through audio
  • Improvement: Inclusive travel experience for all users

4. Language Learning:

  • Who Benefits: Language learners practicing in real-world contexts
  • Impact: Provides immersive language practice with native-like pronunciation
  • Improvement: Better language acquisition through practical application

5. Solo Travel:

  • Who Benefits: Solo travelers seeking instant local assistance
  • Impact: Provides companionship and safety through constant guidance
  • Improvement: Reduces loneliness and increases confidence in unfamiliar places

Quantifiable Impact:

  • 20+ Languages Supported - Covers major global languages and regional variants
  • Real-time Voice Interaction - Sub-second response times for audio generation
  • Location-Aware Intelligence - Contextual responses based on exact GPS coordinates
  • Multi-modal Input - Supports both voice and text for maximum accessibility

How It Improves Existing Processes:

  • Replaces Multiple Apps: Combines translation, navigation, and tour guide functionality
  • Reduces Dependence: No need for human tour guides or language interpreters
  • Increases Efficiency: Instant responses vs. waiting for human assistance
  • Enhances Safety: Real-time location tracking and emergency assistance capabilities
  • Improves Accessibility: Voice-first interface for users with disabilities

The Murf Guide Bot represents a significant advancement in travel technology, making international travel more accessible, efficient, and enjoyable for millions of people worldwide.

Top comments (0)