Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples don't work #8

Open
adsbenham opened this issue Sep 22, 2021 · 4 comments
Open

Examples don't work #8

adsbenham opened this issue Sep 22, 2021 · 4 comments

Comments

@adsbenham
Copy link

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
Copy link
Author

Ubuntu 21.04 Hard remembering what year it is...

@adsbenham
Copy link
Author

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)

  •    self._login = "sip:{u}:{p}@{g}".format(u=self.user, p=self.pwd,
    
  •    self._login = "<sip:{u}@{g}>;auth_pass={p}".format(u=self.user, p=self.pwd,
                                              g=self.gateway)
       self._prev_output = ""
       self.running = False
    

Now the speech doesn't work...

@adsbenham
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants