Skip to content

Commit

Permalink
Merge pull request #31 from jambonz/fix/onprem-azure
Browse files Browse the repository at this point in the history
fix raw audio downloaded from onprem azure
  • Loading branch information
davehorton authored Sep 8, 2023
2 parents 625f147 + da3cdbb commit da02926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/synth-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ async function _synthOnPremMicrosoft(logger, {
}

try {
const trimSilence = filePath.endsWith('.r8');
const post = bent('POST', 'buffer', {
'X-Microsoft-OutputFormat': 'audio-16khz-128kbitrate-mono-mp3',
'X-Microsoft-OutputFormat': trimSilence ? 'raw-8khz-16bit-mono-pcm' : 'audio-16khz-32kbitrate-mono-mp3',
'Content-Type': 'application/ssml+xml',
'User-Agent': 'Jambonz'
});
Expand Down

0 comments on commit da02926

Please sign in to comment.