Skip to content

Comments

fix/pyaudio example#355

Merged
jean-malo merged 1 commit intov1from
fix/pyaudio-example
Feb 17, 2026
Merged

fix/pyaudio example#355
jean-malo merged 1 commit intov1from
fix/pyaudio-example

Conversation

@jean-malo
Copy link
Contributor

@jean-malo jean-malo commented Feb 17, 2026

No description provided.

This commit introduces proper initialization checks for PyAudio in both realtime transcription examples. It adds:

1. A new utility function `load_pyaudio()` to handle PyAudio initialization
2. Error handling for cases where PyAudio cannot be initialized
3. Early termination with error message when PyAudio is not available
4. Consistent error handling across both microphone examples

The changes ensure the applications fail gracefully when PyAudio is not available or cannot be initialized, providing better user feedback.
@jean-malo jean-malo changed the base branch from main to v1 February 17, 2026 17:32
@jean-malo jean-malo requested review from aac228 and dumontg February 17, 2026 17:32
@jean-malo jean-malo merged commit 25d4457 into v1 Feb 17, 2026
3 checks passed
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.

2 participants