Skip to content

OpenAI Realtime + Twilio 📞 #1535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sFritsch09 opened this issue Apr 6, 2025 · 2 comments
Closed

OpenAI Realtime + Twilio 📞 #1535

sFritsch09 opened this issue Apr 6, 2025 · 2 comments

Comments

@sFritsch09
Copy link

I would like to see an example for the OpenAI Realtime LLM Service with Twilio integration. I'm struggling to send OpenAI audio with 24000 Hz frequency instead of 8000 Hz from twilio.

https://github.com/pipecat-ai/pipecat/blob/main/examples/foundational/19-openai-realtime-beta.py

@markbackman
Copy link
Contributor

OpenAI Realtime only outputs at 24khz, so you'll have to configure your pipeline in the same way.

    task = PipelineTask(
        pipeline,
        params=PipelineParams(
            allow_interruptions=True,
            audio_out_sample_rate=24000,
            ... # Other params
        ),
    )

@sFritsch09
Copy link
Author

Oh so simple thanks, I tried this with Audiobuffer :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants