mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-04-02 03:16:50 +08:00
cmake : add python support
This commit is contained in:
7
tests/test-ggwave.py
Executable file
7
tests/test-ggwave.py
Executable file
@@ -0,0 +1,7 @@
|
||||
import ggwave
|
||||
import numpy as np
|
||||
|
||||
instance = ggwave.init()
|
||||
|
||||
# generate audio waveform for string "hello python"
|
||||
waveform = ggwave.encode("hello python", txProtocolId = 1, volume = 20, instance = instance)
|
||||
Reference in New Issue
Block a user