Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Jan 8, 2025
1 parent 98cf173 commit aa4c8f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/utils/db-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ const speechMapper = (cred) => {
obj.auth_token = o.auth_token;
obj.custom_stt_url = o.custom_stt_url;
obj.custom_tts_url = o.custom_tts_url;
obj.use_audio_resampling = o.use_audio_resampling;
obj.use_base64_encoding = o.use_base64_encoding;
obj.tts_streaming_sample_rate = o.tts_streaming_sample_rate;
}
} catch (err) {
console.log(err);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/tts-streaming-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class TtsStreamingBuffer extends Emitter {
}

async _api(ep, args) {
const apiCmd = `uuid_${this.vendor}_tts_streaming`;
const apiCmd = `uuid_${this.vendor.startsWith('custom:') ? 'custom' : this.vendor}_tts_streaming`;
const res = await ep.api(apiCmd, `^^|${args.join('|')}`);
if (!res.body?.startsWith('+OK')) {
this.logger.info({args}, `Error calling ${apiCmd}: ${res.body}`);
Expand Down

0 comments on commit aa4c8f5

Please sign in to comment.