Dear community,
My environment is Debian 10 with OpenHAB 3.2.0 executed in a virtual machine without sound card. I would like to setup a TTS engine like MaryTTS and stream the TTS audio output to my speaker system that either accepts AirPlay v1 or obtains audio from a streaming URL.
However, when invoking a playback to the configured PulseAudio sink, nothing happens. I do not find any log file entries in the syslog nor in the openhab logs. This is my test command in the Karaf console:
openhab> openhab:audio play pulseaudio:sink:local:almando doorbell.mp3
What can be done to debug this issue?
My pulseaudio config file /etc/pulse/default.pa contains the following modifications as compared to the standard setup:
### Load the RTP sender module (also configured via paprefs, see above)
load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
load-module module-rtp-send source=rtp.monitor
### Automatically load loopback sound driver
.ifexists module-loopback.so
load-module module-loopback
.endif
### Automatically load driver modules for auto discovery
.ifexists module-zeroconf-discover.so
load-module module-zeroconf-discover
.endif
.ifexists module-raop-discover.so
load-module module-raop-discover
.endif
### Allow access to pulseaudio via TCP
load-module module-esound-protocol-tcp auth-anonymous=1
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
load-module module-simple-protocol-tcp
load-module module-cli-protocol-tcp
OpenHAB has access to pulseaudio via TCP port 4712 and I can see that the AirPlay sinks are available.
I have configured pulseaudio.things as follows and can control, for example, the volume of these AirPlay sinks which is correctly propagated to PulseAudio:
Bridge pulseaudio:bridge:local "PulseAudio" [ host="127.0.0.1", port=4712 ] {
Things:
Thing sink rtp "RTP Sink" [name="rtp", activateSimpleProtocolSink="true", simpleProtocolSinkPort=4711]
Thing sink almando "Almando" [name="raop_output.almandomsd-501.local", activateSimpleProtocolSink="true", simpleProtocolSinkPort=4711]
Thing sink appletv "Apple TV" [name="raop_output.AppleTV-EG.local", activateSimpleProtocolSink="true", simpleProtocolSinkPort=4711]
Thing sink-input openhabTTS "OpenHAB Voice" [name="rtp"]
}
It would be great if somebody could give me some hints as how to continue with the audio setup so that an output is provided to the AirPlay device.
Best regards,
Peter