Skip to content

Commit

Permalink
Merge branch 'main' into feat/mod_deepgram_tts
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu authored Apr 4, 2024
2 parents 0471b94 + 8279891 commit f154a40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/synth-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async function synthAudio(client, logger, stats, { account_sid,
let filePath;
if (['nuance', 'nvidia'].includes(vendor) ||
(
process.env.JAMBONES_TTS_TRIM_SILENCE &&
(process.env.JAMBONES_TTS_TRIM_SILENCE || !process.env.JAMBONES_DISABLE_TTS_STREAMING) &&
['microsoft', 'azure'].includes(vendor)
) ||
(
Expand Down Expand Up @@ -414,6 +414,7 @@ const synthMicrosoft = async(logger, {
params += `,language=${language}`;
params += ',vendor=microsoft';
params += `,voice=${voice}`;
params += ',write_cache_file=1';
if (region) params += `,region=${region}`;
if (custom_tts_endpoint) params += `,endpointId=${custom_tts_endpoint}`;
if (process.env.JAMBONES_HTTP_PROXY_IP) params += `,http_proxy_ip=${process.env.JAMBONES_HTTP_PROXY_IP}`;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jambonz/speech-utils",
"version": "0.0.45",
"version": "0.0.47",
"description": "TTS-related speech utilities for jambonz",
"main": "index.js",
"author": "Dave Horton",
Expand Down

0 comments on commit f154a40

Please sign in to comment.