Text to Speech - Player play_raw(data) errors

Hi,



Trying to get text to speech working but having problems with the Player.py script.



Modifying the example bing_translator.py from https://github.com/respeaker/respeaker_python_library



I reference player.py at the beginning with

from respeaker import Player





and call it as below

try:

text = bing.recognize(data)

if text:

print(‘Recognized %s’ % text)

audiodata = bing.synthesize(text)



if audiodata:

Player.play_raw(audiodata)



But I get the following output when calling play_raw.



unbound method play_raw() must be called with Player instance as first argument (got

str instance instead)




What am I missing?



Cheers,

DR

Hi there:

it meaning you don’t have a recording data.