I can run the code locally on the laptop
# speech
speech_vosk = SpeechService.from_robot(robot, name="vosk")
speech_piper = SpeechService.from_robot(robot, name="piper")
# Quick test speech
print("Testing speech ouput")
piper_response = await speech_piper.to_speech("Hello, How can I help you?")
print(f"Piper response:- length: {len(piper_response)} type: {type(piper_response)} details: {piper_response}")
speech_text = await speech_vosk.to_text(speech=piper_response, format="wav")
print(f"Vosk response:- length: {len(speech_text)} type: {type(speech_text)} details: {speech_text}")
But when the remote is run with the same code fails
# Setup vosk and piper for speech
speech_vosk = SpeechService.from_robot(robot, name="viamubuntulaptop2-main:vosk")
speech_piper = SpeechService.from_robot(robot, name="viamubuntulaptop2-main:piper")