OpenJarbas / baresipy

baresip python wrapper
Apache License 2.0
40 stars 30 forks source link

Examples don't work #8

Open adsbenham opened 2 years ago

adsbenham commented 2 years ago

You provide 2 example scripts, neither of which work (using either baresip 1.0.0 or 1.1.0 on Ubunto 20.04)

./spam_call.py 15:15:23.190 - baresipy:_handle_no_accounts:251 - DEBUG - No accounts setup 15:15:23.190 - baresipy:login:64 - INFO - Adding account: +442083XXXXXX 15:15:23.243 - baresipy:handle_ready:262 - INFO - Ready for instructions

And then nothing. No call placed,

./joke_bot.py 15:19:45.951 - baresipy:_handle_no_accounts:251 - DEBUG - No accounts setup 15:19:45.951 - baresipy:login:64 - INFO - Adding account: +2083XXXXXX 15:19:46.004 - baresipy:handle_ready:262 - INFO - Ready for instructions

And then nothing. No calls answered.

adsbenham commented 2 years ago

Ubuntu 21.04 Hard remembering what year it is...

adsbenham commented 2 years ago

This fixes account login:

--- init.py.orig 2021-10-02 22:11:45.157543046 +0100 +++ init.py 2021-10-02 22:12:47.813325838 +0100 @@ -25,7 +25,7 @@ self.tts = tts else: self.tts = ResponsiveVoice(gender=ResponsiveVoice.MALE)

Now the speech doesn't work...

adsbenham commented 2 years ago

The scripted call example shows the log messages that it is speaking, and there are delays which seem to correspond with speaking the text, but the call doesn't contain the text

premudeshi commented 2 years ago

Hi @adsbenham , Were you ever able to get the text to speech working?