Registry / ai-ml / sprechstimme

sprechstimme

JSON →
library1.8.10pypypi✓ verified 80d ago

A modular Python synthesizer and sequencer for real-time audio generation and music composition. Current version 1.8.10, released monthly.

pip install sprechstimme
INSTALL
IMPORT
SIG · SPRECHSTIMME
S
sprechstimme
ai-mlpythonv1.8.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Track
from sprechstimme import Track
from sprechstimme import Synth
play
from sprechstimme import play
from sprechstimme import Synth
note_to_freq
from sprechstimme import note_to_freq
from sprechstimme import Synth

Basic usage: create a Synth object, generate audio samples.

from sprechstimme import Synth import numpy as np # Create a synth with a sine oscillator synth = Synth(oscillator='sine') # Generate 1 second of 440 Hz tone samples = synth.play(440, duration=1.0) print(samples.shape)
Debug
Known issues
gotchaThe Synth class expects audio output device to be available; if sounddevice fails, install portaudio or use a virtual device.
fix
Install sounddevice and ensure portaudio is installed (e.g., apt-get install portaudio19-dev on Debian).
affects: all
gotchaThe 'oscillator' parameter changed in v1.7 from string to enum-like identifier; old code using custom oscillator names may break.
fix
Use one of the built-in oscillators: 'sine', 'saw', 'square', 'noise'.
affects: >=1.7
deprecatedThe `Sample.initialize()` method is deprecated in v1.8 and will be removed; use `Sample.__init__` directly.
fix
Use `sample = Sample(data, rate)` instead of `sample.initialize(data, rate)`.
affects: >=1.8
Upgrade
Version history
1.8.10latest on PyPI · released Oct 14, 2025
Audit
Dependencies
numpyrequiredAudio signal processing
sounddeviceoptionalAudio playback
Agent activity
11 hits · last 30 days
node
8
OpenAI (training)
1
Resources
sprechstimme — pip install sprechstimme · libregistry