Wyoming Openai – Python 3.13 support (0.4.4)
Wyoming OpenAI (v0.4.4) 🚀
If you’re building local voice assistants or tinkering with Home Assistant, this update is a massive win for efficiency and stability! This proxy middleware bridges the Wyoming protocol with OpenAI-compatible ASR and TTS services—allowing you to use heavy hitters like GPT-4o, Whisper, and Kokoro without direct API integration.
What’s New:
- Python 3.13 Support: The project is officially ready for the latest and greatest! Full support is now included across CI, Docker, and packaging metadata.
- Smart STT/TTS Modes: No more wasted resources! If you aren’t using a specific mode (STT or TTS), the client now skips the unused side entirely instead of attempting backend autodetection. This makes startup much cleaner when you only need one direction of audio processing.
Key Fixes & Improvements:
- Fixed Stereo Streaming Timestamps: No more “fast-forward” audio! A bug that caused timestamps to advance too quickly during stereo TTS streaming has been squashed by calculating timing based on PCM frame count. 🛠️
- Robust WAV Header Handling: Fixed an issue where fragmented WAV headers in streaming TTS could leak bytes or cause incorrect audio starts. Now, chunks are buffered until a complete header is ready to be parsed.
- OpenAI Compatibility Patch: A lifesaver for local devs! Recent changes in the `openai` library (v2.34+) were breaking keyless local backends like Speaches and LocalAI. The client now bypasses credential enforcement to ensure your local, keyless setups keep running smoothly without needing fake bearer tokens.
