Skip to content

Twilio <- Pipecat -> Gemini Live #1823

Description

@tpcgold

pipecat version

0.0.67

Python version

3.13

Operating System

macOS 15.5

Use Case Description

Call Bot - bidirectional LLM allowing interruptions incl. transcription + audio file generation

Current Approach

Combination of
https://github.com/pipecat-ai/pipecat/blob/main/examples/simple-chatbot/server/bot-gemini.py
https://github.com/pipecat-ai/pipecat/blob/main/examples/foundational/26-gemini-multimodal-live.py#L102

And twilio
https://github.com/pipecat-ai/pipecat/tree/main/examples/twilio-chatbot

Errors or Unexpected Behavior

I could get the audio response working if providing the user input inside the OpenAILLMContext initialization.
But it seems audio input is never working.

One problem could be the twilio x-mulaw 8khz -> gemini pcm 16khz. It looks like pipecat doesn't handle this

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions