jambonz / realtimedb-helpers

utility functions for querying jambonz redis database
0 stars 9 forks source link

feature: Add option to synthAudio to disable TTS cache lookup #19 #20

Closed tesarm closed 1 year ago

davehorton commented 1 year ago

hmm, tests are failing on that branch for me

1..79
# tests 79
# pass  74
# fail  5
davehorton commented 1 year ago
# Google speech synth tests
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Promise
    at new NodeError (internal/errors.js:322:7)
    at Function.from (buffer.js:334:9)
    at synthAudio (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers/lib/synth-audio.js:109:26)
    at Test.<anonymous> (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers/test/synth.js:26:22)
    at Test.bound [as _cb] (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers/node_modules/tape/lib/test.js:95:17)
    at Test.run (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers/node_modules/tape/lib/test.js:115:28)
    at Test.bound [as run] (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers/node_modules/tape/lib/test.js:95:17)
    at Immediate.next [as _onImmediate] (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/jambones.org/git/utils/realtimedb-helpers/node_modules/tape/lib/results.js:157:7)
    at processImmediate (internal/timers.js:464:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
not ok 27 TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Promise

Do these tests pass in your env?