js : update + fix test

This commit is contained in:
Georgi Gerganov
2022-06-05 18:37:48 +03:00
parent 33c3bc2131
commit f0885a247f
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,7 @@ factory().then(function(ggwave) {
var payload = 'hello js';
// generate audio waveform for string "hello js"
var waveform = ggwave.encode(instance, payload, ggwave.TxProtocolId.GGWAVE_PROTOCOL_AUDIBLE_FAST, 10);
var waveform = ggwave.encode(instance, payload, ggwave.ProtocolId.GGWAVE_PROTOCOL_AUDIBLE_FAST, 10);
// decode the audio waveform back to text
var res = ggwave.decode(instance, waveform);