[SOLVED] No sound after hardware change

hi, I have moved my OH2 from raspberry to an Ubuntu 19.10 barebone.
No sound is emitted on the new OH2 system.
PC audio works, I can hear audio files, system warnings and video audio on youtube.
Trying to run an audio file or a TextToSpeak from the OpenHab console I have no error, but it does not play any sound.

Can you help me?

Thank you

The Ubuntu Server edition has very poor audio features. I had heaps of trouble trying to make it work then I changed to normal ubuntu (which I run headless) and had no trouble at all.

1 Like

bye thank you! i don’t have ubuntu server, it’s a desktop.

But I said something incorrect. I have checked the logs now and there are errors:

2020-01-28 12:54:30.743 [WARN ] [core.voice.internal.VoiceManagerImpl] - Error saying 'Hello world! ': org.eclipse.smarthome.core.audio.AudioException: Error while executing ‘[Ljava.lang.String;@48c2e80d
org.eclipse.smarthome.core.voice.TTSException: org.eclipse.smarthome.core.audio.AudioException: Error while executing ‘[Ljava.lang.String;@48c2e80d
at org.openhab.voice.picotts.internal.PicoTTSService.synthesize(PicoTTSService.java:73) ~[?:?]
at org.eclipse.smarthome.core.voice.internal.VoiceManagerImpl.say(VoiceManagerImpl.java:219) [bundleFile:?]
at org.eclipse.smarthome.core.voice.internal.VoiceManagerImpl.say(VoiceManagerImpl.java:154) [bundleFile:?]
at org.eclipse.smarthome.core.voice.internal.VoiceConsoleCommandExtension.say(VoiceConsoleCommandExtension.java:152) [bundleFile:?]
at org.eclipse.smarthome.core.voice.internal.VoiceConsoleCommandExtension.execute(VoiceConsoleCommandExtension.java:71) [bundleFile:?]
at org.eclipse.smarthome.io.console.ConsoleInterpreter.execute(ConsoleInterpreter.java:55) [bundleFile:?]
at org.eclipse.smarthome.io.console.karaf.internal.CommandWrapper.execute(CommandWrapper.java:78) [bundleFile:?]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [bundleFile:4.2.7]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [bundleFile:4.2.7]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [bundleFile:4.2.7]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [bundleFile:4.2.7]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [bundleFile:4.2.7]
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [bundleFile:4.2.7]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [bundleFile:4.2.7]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [bundleFile:4.2.7]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: org.eclipse.smarthome.core.audio.AudioException: Error while executing ‘[Ljava.lang.String;@48c2e80d
at org.openhab.voice.picotts.internal.PicoTTSAudioStream.createInputStream(PicoTTSAudioStream.java:64) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSAudioStream.(PicoTTSAudioStream.java:45) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSService.synthesize(PicoTTSService.java:71) ~[?:?]
… 18 more
Caused by: java.io.IOException: Cannot run program “pico2wave”: error=2, File o directory non esistente
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) ~[?:?]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) ~[?:?]
at java.lang.Runtime.exec(Runtime.java:591) ~[?:?]
at java.lang.Runtime.exec(Runtime.java:450) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSAudioStream.createInputStream(PicoTTSAudioStream.java:58) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSAudioStream.(PicoTTSAudioStream.java:45) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSService.synthesize(PicoTTSService.java:71) ~[?:?]
… 18 more
Caused by: java.io.IOException: error=2, File o directory non esistente
at java.lang.ProcessImpl.forkAndExec(Native Method) ~[?:?]
at java.lang.ProcessImpl.(ProcessImpl.java:340) ~[?:?]
at java.lang.ProcessImpl.start(ProcessImpl.java:271) ~[?:?]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) ~[?:?]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) ~[?:?]
at java.lang.Runtime.exec(Runtime.java:591) ~[?:?]
at java.lang.Runtime.exec(Runtime.java:450) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSAudioStream.createInputStream(PicoTTSAudioStream.java:58) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSAudioStream.(PicoTTSAudioStream.java:45) ~[?:?]
at org.openhab.voice.picotts.internal.PicoTTSService.synthesize(PicoTTSService.java:71) ~[?:?]
… 18 more

solved!

Pico Text-to-Speech

I guess the backup / restore scripts do not carry system dependencies but only configuration scripts

They have no way of knowing of you will restore to the same platform . The Pi dependencies would not work on Ubuntu anyway.

1 Like