Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Apr 30, 2020
2 parents c0d140b + 43751a0 commit cfe6c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/vocalcord/TTSEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ byte[] tts(String text) throws Exception {
try(TextToSpeechClient client = TextToSpeechClient.create()) {
SynthesisInput input = SynthesisInput.newBuilder().setSsml(text).build();

VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().setLanguageCode("en-US").setSsmlGender(VocalCord.getConfig().voiceGender).build();
VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().setLanguageCode(VocalCord.getConfig().languageCode).setSsmlGender(VocalCord.getConfig().voiceGender).build();

AudioConfig audioConfig = AudioConfig.newBuilder().setAudioEncoding(AudioEncoding.LINEAR16).setSampleRateHertz(48_000).build();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/vocalcord/VocalCord.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static class Config {
/*
* TTS settings
*/
String languageCode;
String languageCode = "en-US";
boolean usingTTS, usingTTSCache;
SsmlVoiceGender voiceGender;
SendMultiplex sendMultiplex;
Expand Down

0 comments on commit cfe6c17

Please sign in to comment.