Skip to content

Commit

Permalink
Support only Neural for speech generation
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Dec 18, 2023
1 parent 75f1419 commit 0fd0196
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ protected Response delete(final CloudFormationCustomResourceEvent cfcre, final C
*/
private void createPrompt(final String name, final String text, final VoiceId voice_id) throws IOException, InterruptedException {
final var ssr = SynthesizeSpeechRequest.builder()
.engine(text.toLowerCase().contains("<speak>") ? Engine.STANDARD : Engine.NEURAL)
// We will only user Neural Voices
.engine(Engine.NEURAL)
.voiceId(voice_id)
.sampleRate("8000")
.outputFormat(OutputFormat.PCM)
Expand Down

0 comments on commit 0fd0196

Please sign in to comment.