{"id":28270,"library":"sprechstimme","title":"Sprechstimme","description":"A modular Python synthesizer and sequencer for real-time audio generation and music composition. Current version 1.8.10, released monthly.","status":"active","version":"1.8.10","language":"python","source_language":"en","source_url":"https://github.com/breatn/sprechstimme","tags":["synthesizer","sequencer","audio","music"],"install":[{"cmd":"pip install sprechstimme","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Audio signal processing","package":"numpy","optional":false},{"reason":"Audio playback","package":"sounddevice","optional":true}],"imports":[{"note":"Module-level import not available; must import submodules.","wrong":"import sprechstimme","symbol":"Synth","correct":"from sprechstimme import Synth"}],"quickstart":{"code":"from sprechstimme import Synth\nimport numpy as np\n\n# Create a synth with a sine oscillator\nsynth = Synth(oscillator='sine')\n# Generate 1 second of 440 Hz tone\nsamples = synth.play(440, duration=1.0)\nprint(samples.shape)\n","lang":"python","description":"Basic usage: create a Synth object, generate audio samples."},"warnings":[{"fix":"Install sounddevice and ensure portaudio is installed (e.g., apt-get install portaudio19-dev on Debian).","message":"The Synth class expects audio output device to be available; if sounddevice fails, install portaudio or use a virtual device.","severity":"gotcha","affected_versions":"all"},{"fix":"Use one of the built-in oscillators: 'sine', 'saw', 'square', 'noise'.","message":"The 'oscillator' parameter changed in v1.7 from string to enum-like identifier; old code using custom oscillator names may break.","severity":"gotcha","affected_versions":">=1.7"},{"fix":"Use `sample = Sample(data, rate)` instead of `sample.initialize(data, rate)`.","message":"The `Sample.initialize()` method is deprecated in v1.8 and will be removed; use `Sample.__init__` directly.","severity":"deprecated","affected_versions":">=1.8"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run: pip install sprechstimme","cause":"Library not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'sprechstimme'"},{"fix":"Use: from sprechstimme import Synth","cause":"Incorrect import: importing the module itself instead of submodule.","error":"AttributeError: module 'sprechstimme' has no attribute 'Synth'"},{"fix":"Use one of: 'sine', 'saw', 'square', 'noise'.","cause":"Using invalid oscillator name in Synth constructor.","error":"ValueError: Unknown oscillator: 'custom_osc'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}