Skip to content

Commit

Permalink
local speech fix and backed out lwgl update
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Mar 17, 2024
1 parent c7a7877 commit d106c07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/myrobotlab/service/LocalSpeech.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public AudioData generateAudioData(AudioData audioData, String toSpeak) throws I
args.add("$speak.SelectVoice('" + getVoice().getVoiceProvider().toString() + "');");
args.add("$speak.SetOutputToWaveFile('" + localFileName + "');");
args.add("$speak.speak('" + toSpeak + "')");
String ret = Runtime.execute("powershell.exe", args, null, null, true);
String ret = Runtime.execute("%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", args, null, null, true);

log.info("powershell returned : {}", ret);

Expand Down Expand Up @@ -219,7 +219,7 @@ public void loadVoices() {
args.add("Select-Object -Property * | ");
// args.add("Select-Object -Property Culture, Name, Gender, Age");
args.add("ConvertTo-Json ");
voicesText = Runtime.execute("powershell.exe", args, null, null, true);
voicesText = Runtime.execute("%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", args, null, null, true);

// voicesText = Runtime.execute("cmd.exe", "/c", "\"\"" + ttsPath + "\""
// + " -V" + "\"");
Expand Down Expand Up @@ -571,7 +571,7 @@ public static void main(String[] args) {
arguments.add("Add-Type -AssemblyName System.Speech;");
arguments.add("$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer;");
arguments.add("$speak.speak('HELLO !!!!');");
Runtime.execute("powershell.exe", arguments, null, null, true);
Runtime.execute("%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", arguments, null, null, true);
// log.info(ret);

mouth.speakBlocking("hello my name is sam, sam i am yet again, how \"are you? do you 'live in a zoo too? ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public JMonkeyEngineMeta() {
// jbullet ==> org="net.sf.sociaal" name="jME3-jbullet" rev="3.0.0.20130526"
// audio dependencies
addDependency("de.jarnbjo", "j-ogg-all", "1.0.0");
addDependency("org.lwjgl", "lwjgl-opengl", "3.3.3");
addDependency("org.lwjgl", "lwjgl-glfw", "3.3.3");
addDependency("org.lwjgl", "lwjgl-opengl", "3.2.3");
addDependency("org.lwjgl", "lwjgl-glfw", "3.2.3");

addCategory("simulator");

Expand Down

0 comments on commit d106c07

Please sign in to comment.