Open kaleemwaheed opened 1 year ago
To generate Ultrasound messages you have to switch this parameter:
to one of the following:
GGWAVE_PROTOCOL_ULTRASOUND_NORMAL
GGWAVE_PROTOCOL_ULTRASOUND_FAST
GGWAVE_PROTOCOL_ULTRASOUND_FASTEST
To save the sound into WAV file, checkout the following example:
https://github.com/ggerganov/ggwave/tree/master/examples/ggwave-to-file
For example:
# generate "Hello world!" message via GGWAVE_PROTOCOL_ULTRASOUND_FAST and save it to "hello.wav":
curl -sS 'https://ggwave-to-file.ggerganov.com/?m=Hello%20world!' --output hello.wav
# playback:
ffplay hello.wav
Can you guide me how to generate ultrasonic sound( not audible to human) in JavaScript and which parameter i have to change and save/download as a WAV file?
https://github.com/ggerganov/ggwave/tree/master/examples/ggwave-js