Play audio passed as array of bytes

Discussion in 'CRM / Helpdesk / App Integration' started by linking13, Nov 10, 2014.

Thread Status:
Not open for further replies.
  1. linking13

    Joined:
    Nov 14, 2008
    Messages:
    42
    Likes Received:
    0
    We need to play a Dynamically Created Audio but we doesn.t have any sound card installed on the machine so I have thinked to pass the wav file as a response from a webservice that create the correct audio on a dedicated machine.

    Is possibile to play a wav passed as a response of a webservice?
     
  2. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    Hi there!

    You don't need a sound card to use TTS. Are you having issues to generate the audio locally?

    In any case, of course you can do this remotely, transfer the files somehow to the 3CX server, and then play them from there. But I think it's more simple to do it locally.

    Kind regards.
     
  3. linking13

    Joined:
    Nov 14, 2008
    Messages:
    42
    Likes Received:
    0
    Hi,

    I'm sorry but I have tried many times (I have asked to the forum too) how use TTS on a virtual machine but I wasn't able to do this in any way.

    If is possible to use TTS functionality on a windows machine (in my case 2008 R2) running in virtual environment (vmWare) please give me the istruction on how to do this.
     
  4. linking13

    Joined:
    Nov 14, 2008
    Messages:
    42
    Likes Received:
    0
    This was your reply to my post:

    Re: Text To Speech and Virtual environment
    Postby VAD_Support » Thu Sep 27, 2012 3:45 pm

    I have tested it with VMWare 8 and works, but I'm sharing the sound card from the host.
    Are you in an environment without sound card at all? Can you try sharing the card from the host with the virtual machine?
    Are you 100% sure that the API needs the sound card? We're setting the output to wav file. If you want to test in your environment, I can send you a deployment package for a simple callflow using TTS, so you can install it in your virtualized environment and test before purchasing the VAD license. Just let me know.
     
  5. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    What error do you get when you try to use TTS from that server? This article explains how to get the different kinds of error messages:
    http://www.3cx.com/blog/docs/troubleshooting-vad-applications/

    Can't you share the sound card from the host server?

    Anyway, if you want to do the WAV generation somewhere else, it's also possible. You can use a web service which stores the WAV file in a remote share, of retrieve the bytes as a response and then save those bytes locally. Finally you play the file using a Dynamic Audio Prompt. Are you having issues with this?

    Regards.
     
  6. linking13

    Joined:
    Nov 14, 2008
    Messages:
    42
    Likes Received:
    0
    The first thing that I have thinked is to use the Dinamically created file, but if was possible to play the file without saving it in a file.

    Next friday I'll made some test and in case of problem I'll give you feddback

    Thanks for all
     
Thread Status:
Not open for further replies.