mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-04-19 20:57:38 +08:00
ggwave : refactoring + comments
This commit is contained in:
@@ -5,7 +5,7 @@ import numpy as np
|
||||
p = pyaudio.PyAudio()
|
||||
|
||||
# generate audio waveform for string "hello python"
|
||||
waveform = ggwave.encode("hello python", txProtocol = 1, volume = 20)
|
||||
waveform = ggwave.encode("hello python", txProtocolId = 1, volume = 20)
|
||||
|
||||
print("Transmitting text 'hello python' ...")
|
||||
stream = p.open(format=pyaudio.paInt16, channels=1, rate=48000, output=True, frames_per_buffer=4096)
|
||||
|
||||
Reference in New Issue
Block a user