Skip to content

AudioOutputLiveStream to support OpenAI streaming endpoint#92

Merged
openminddev merged 3 commits intomainfrom
add-openai-audio-streaming
Jan 28, 2026
Merged

AudioOutputLiveStream to support OpenAI streaming endpoint#92
openminddev merged 3 commits intomainfrom
add-openai-audio-streaming

Conversation

@openminddev
Copy link
Contributor

This pull request introduces a new dependency to the project by adding the openai package to the pyproject.toml file.

Dependency management:

  • Added openai version 1.60.1 as a dependency in pyproject.toml to enable integration with OpenAI's API.

Added OpenAI and related dependencies (httpx, pydantic, jiter, etc.) to pyproject.toml. Created src/om1_speech/audio/audio_output_live_stream.py for live audio output streaming functionality.
Removed unnecessary base64 encoding and decoding for audio data in AudioOutputLiveStream. Updated silence audio generation and audio writing methods to use raw bytes. Added comprehensive unit tests for AudioOutputLiveStream covering initialization, audio streaming, ffplay process management, and various edge cases.
The Dockerfile now installs the openai Python package, enabling support for OpenAI API usage within the container.
@openminddev openminddev merged commit 71cc7fa into main Jan 28, 2026
7 checks passed
@openminddev openminddev deleted the add-openai-audio-streaming branch January 28, 2026 23:30
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

Successfully merging this pull request may close these issues.

1 participant