Skip to content

Fix Python 3.13 audio installation on Windows - #24

Open
pauloacribeiro92 wants to merge 3 commits into
dot-Justin:mainfrom
pauloacribeiro92:fix/python313-audio-install
Open

Fix Python 3.13 audio installation on Windows#24
pauloacribeiro92 wants to merge 3 commits into
dot-Justin:mainfrom
pauloacribeiro92:fix/python313-audio-install

Conversation

@pauloacribeiro92

Copy link
Copy Markdown

Summary

  • remove the unmaintained simpleaudio dependency that fails to build on Python 3.13
  • play the downloaded WAV response through the project's existing PyAudio dependency
  • keep audio data in memory instead of writing a misleading output.mp3 file
  • add an HTTP timeout and propagate failed downloads before playback starts
  • add regression tests for successful playback cleanup and failed downloads

Validation

  • python -m unittest discover -s tests: passed
  • regression coverage verifies WAV metadata is passed to PyAudio, frames are written, and stream/player resources are always closed
  • regression coverage verifies HTTP failures stop before audio initialization
  • all changed Python files compile successfully
  • installation no longer attempts to build simpleaudio on Windows/Python 3.13

AI assistance

OpenAI GPT-5.6 Thinking assisted with repository inspection, implementation, and test drafting. Paulo Ribeiro reviewed the scope and remains responsible for the contribution.

Fixes #5

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.

cant install simple audio

1 participant