Skip to content

Commit

Permalink
Default engine to neural if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Dec 19, 2023
1 parent 69332ab commit a160de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected ResponseAction getResponse() {
var myContent = getFuncValOrDefault(textF,text);
final var params = ResponseSpeak.Parameters.builder()
.withCallId(getCallId())
.withEngine(engine)
.withEngine(engine != null ? engine : Engine.neural)
.withLanguageCode(getLocale().toLanguageTag())
.withText(myContent)
.withTextType(getSpeakContentType(myContent))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected ResponseAction getResponse() {
final var speechParam = ResponseSpeakAndGetDigits.SpeechParameter.builder()
.withText(myContent)
.withTextType(getSpeakContentType(myContent))
.withEngine(sp.engine)
.withEngine(sp.engine != null ? sp.engine : Engine.neural)
// If set on the builder, use that, otherwise our the Actions locale
.withLanguageCode(locale.toLanguageTag())
.withVoiceId(sp.voiceId != null ? sp.voiceId : voice_map.get(locale))
Expand Down

0 comments on commit a160de4

Please sign in to comment.