mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-24 16:16:10 +08:00
ggwave : big refactoring / renaming
This commit is contained in:
@@ -69,7 +69,7 @@ encode()
|
||||
|
||||
.. code:: python
|
||||
|
||||
encode(payload, [txProtocolId], [volume], [instance])
|
||||
encode(payload, [protocolId], [volume], [instance])
|
||||
|
||||
Encodes ``payload`` into an audio waveform.
|
||||
|
||||
@@ -138,7 +138,7 @@ Usage
|
||||
p = pyaudio.PyAudio()
|
||||
|
||||
# generate audio waveform for string "hello python"
|
||||
waveform = ggwave.encode("hello python", txProtocolId = 1, volume = 20)
|
||||
waveform = ggwave.encode("hello python", protocolId = 1, volume = 20)
|
||||
|
||||
print("Transmitting text 'hello python' ...")
|
||||
stream = p.open(format=pyaudio.paFloat32, channels=1, rate=48000, output=True, frames_per_buffer=4096)
|
||||
|
||||
Reference in New Issue
Block a user