SOLVED Transcribing Voicemails with IBM Bluemix

Discussion in 'Bug Reporting and Fixes' started by wardmundy, Mar 11, 2017.

  1. sipbit

    sipbit New Member

    Joined:
    Mar 4, 2016
    Messages:
    5
    Likes Received:
    1
    Is this script available for PIAF5?
     
  2. AndyInNYC

    AndyInNYC Active Member

    Joined:
    May 23, 2013
    Messages:
    444
    Likes Received:
    59

    Bill,

    Thanks for the reply.

    Where do I put this command?
     
  3. mainenotarynet

    mainenotarynet Not really a Guru - Just a long time user

    Joined:
    May 29, 2010
    Messages:
    515
    Likes Received:
    57
    Not using yet but if the emails are printing the \r\n\r\n Message: then find the line in the script that reads

    echo "\r\n\r\nMessage;..." and add the -e --- e.g. echo -e "\r\n\r\nMessage:...." this should be what you need
     
  4. w1ve

    w1ve Guru

    Joined:
    Nov 15, 2007
    Messages:
    617
    Likes Received:
    96
    So, tried the latest scripts on a new 13-13 install. when I run bluemix-test
    Code:
    WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
    root@can:/usr/local/sbin $ bluemix-test
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   98k  100   284  100   98k    112  39762  0:00:02  0:00:02 --:--:-- 39750
    
    with no text revealed. email with voicemail looks like the original, though I followed the instructions.
    UN/PW on Bluemix are correct?

    ideas?
     
  5. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,172
    Likes Received:
    2,391
    Are you sure you're using your STT credentials and not your TTS credentials?? They're different.
     
  6. w1ve

    w1ve Guru

    Joined:
    Nov 15, 2007
    Messages:
    617
    Likes Received:
    96
    DOH! How many times have people done that? Works like a charm.

    So... I also have a very old Production 2.0.6.2 PIAF running CentOS 6.2 Final.
    When I try bluemix-test, I get an error 35 (SSL/TLS?) error back from curl.

    Any idea? I tried updating curl to no luck.
     
    wardmundy likes this.
  7. w1ve

    w1ve Guru

    Joined:
    Nov 15, 2007
    Messages:
    617
    Likes Received:
    96
    Found this article about updating curl in CentOS6, but nervous about doing it (production server; don't need to mess it up.)
    Code:
    https://www.digitalocean.com/community/questions/how-to-upgrade-curl-in-centos6
    Any suggestions?
     
  8. w1ve

    w1ve Guru

    Joined:
    Nov 15, 2007
    Messages:
    617
    Likes Received:
    96
    @wardmundy, and suggestions on making curl work in centOS 6.2?
     
  9. AndyInNYC

    AndyInNYC Active Member

    Joined:
    May 23, 2013
    Messages:
    444
    Likes Received:
    59
    Thanks to you and Bill.

    I added the -e and the slashes went away. I also had to update nss and curl (yum update curl nss) - most of the repos seem down, but it hit one that works.

    The formatting is now correct and the email is delivered transcribed.

    A good day.


    Andrew




     
    wardmundy likes this.
  10. dhoppy

    dhoppy Member

    Joined:
    Mar 9, 2009
    Messages:
    30
    Likes Received:
    2
    I'm running Incredible PBX 13-12 on a rentpbx installation. When I run bluemix-test I get a warning that the system couldn't read data from the file.

    Has anyone experienced this?


    Warning: Couldn't read data from file
    Warning: "/usr/share/asterisk/sounds/en_US/record-message-after-beep.wav",
    Warning: this makes an empty POST.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    128 128 128 128 0 0 215 0 --:--:-- --:--:-- --:--:-- 589
     
  11. magnus_stout

    Joined:
    Jul 3, 2014
    Messages:
    66
    Likes Received:
    21
    My transcription works, but my MP3 voicemails are all 0 bytes? Anyone else getting that issue?

    My system:
    Incredible PBX 15.2017-12-12 for Wazo (17.17)
    Asterisk 15.1.3
    Fully updated Debian

    Thanks!
     
  12. dhoppy

    dhoppy Member

    Joined:
    Mar 9, 2009
    Messages:
    30
    Likes Received:
    2
    I am testing on two different systems, on my Incredible 13-13 (CentOS 7.4.1708, Asterisk 13.20.0, Incredible 13.0.120.10) system I am getting an email with a working transcription and an mp3 file that doesn't work, but the attached mp3 is 300 bytes.

    On my Incredible 13-12 system, I posted above about my problem.
     
  13. DoctorJ

    DoctorJ Member

    Joined:
    Jul 14, 2015
    Messages:
    39
    Likes Received:
    11
    @dhoppy,

    I had the same problem on my install. It was just the path to the .wav file in the bluemix-test script was off. For me, the was no "/en" subfolder. In your case, there may not be an "/en_US" folder. I would ssh into your server, then start working your way down the folder tree until you see the "after-the-beep" file. Insert the full path to that file in your script.

    Hope that makes sense.

    You can read all about it here.
     
    #33 DoctorJ, Mar 29, 2018
    Last edited: Mar 29, 2018
    dhoppy likes this.
  14. dhoppy

    dhoppy Member

    Joined:
    Mar 9, 2009
    Messages:
    30
    Likes Received:
    2
    Thank you. You are right. I thought I checked the path.

    On to the next problem. Bluemix-test was successful, but the email received did not include a transcription and the attached mp3 does not play, probably because the system thinks there is nothing in the voicemail.
     
  15. dhoppy

    dhoppy Member

    Joined:
    Mar 9, 2009
    Messages:
    30
    Likes Received:
    2
    If anyone else has this problem, installing lame fixed the mp3 attachment issue I was having.
     
    wardmundy likes this.
  16. bengineer

    bengineer New Member

    Joined:
    Apr 17, 2018
    Messages:
    1
    Likes Received:
    1
    I was getting curl 35 errors and updating openssl & curl worked for me on CentOS 5.11. Instructions for doing so are here:
    https://miteshshah.github.io/linux/...-a-tlsv1-1-and-tlsv1-2-on-centos-5-and-rhel5/
    I went with openssl 1.0.2o & curl 7.59.0 rather than the ones listed. I don't know if I broke anything else. I had to move the curl created from /usr/local/bin/ to /usr/bin/ where the old version of curl was located.
     
    ostridge likes this.
  17. tuffcalc

    tuffcalc New Member

    Joined:
    May 9, 2018
    Messages:
    1
    Likes Received:
    0
    Hi - this is working great for me, except I'm getting %HESITATION markers all over the place when voicemails are transcribed. Does anyone know how I can filter out the code to remove these? Thanks
     
  18. najeh

    najeh Member

    Joined:
    Dec 9, 2016
    Messages:
    32
    Likes Received:
    1
    hello in english voicemail transcribed good i need for arabic how to add arabic to transcrib
     

Share This Page