" /> GVP Voice Application - Convert Record audio into Base64 data? - Genesys CTI User Forum

Author Topic: GVP Voice Application - Convert Record audio into Base64 data?  (Read 2677 times)

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
GVP Voice Application - Convert Record audio into Base64 data?
« on: October 24, 2017, 03:06:29 PM »
Advertisement
Hi all,

I was wondering if any of you guys know if there is a way to get the Audio recorded from "Record" block as a string encoded as Base64. Or even as an Array of Bytes to be later converted into Base64.

Background:
I need to pass audio to an ASR engine that does not use MRCP (don't try to argue on that :) that's a requirement), but instead it takes the audio encoded as Base64 (along with some other metadata) in a REST request and then get the response as the Text Interpretation along with other metadata to be passed to another system.

Anyway, any crazy idea on this will be valid. I thought about creating a WebDav server to be used as the sink point of the recordings and then it converts the audio into Base64 to be later get by the application in an HTTP request. That's the deperation level I'm facing :)

Thanks in advance on any thoughts

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: GVP Voice Application - Convert Record audio into Base64 data?
« Reply #1 on: October 24, 2017, 03:17:53 PM »
I would create a WS that grabs the wav file content (read) and convert the binary to base64 and return that value. Nothing to do at Composer as this is done by MCP subprocesses.


Enviado de meu E6633 usando Tapatalk


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: GVP Voice Application - Convert Record audio into Base64 data?
« Reply #2 on: October 24, 2017, 04:12:21 PM »
[quote author=cavagnaro link=topic=10706.msg48630#msg48630 date=1508858273]
I would create a WS that grabs the wav file content (read) and convert the binary to base64 and return that value. Nothing to do at Composer as this is done by MCP subprocesses.


[/quote]

Yup, that's pretty much my intent so far. Anyway if something easier pops up I might consider it... like... maybe one of the mysterious "Shadow Variables" that are not so well-documented could have the audio content on it. I opened a ticket on Genesys just to double check if I can get it anywhere hidden.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: GVP Voice Application - Convert Record audio into Base64 data?
« Reply #3 on: October 24, 2017, 04:14:36 PM »
I doubt it...shadow variables holding a value of... let's say 13Mb of a recording? No way...


Enviado de meu E6633 usando Tapatalk


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: GVP Voice Application - Convert Record audio into Base64 data?
« Reply #4 on: October 24, 2017, 04:15:41 PM »
[quote author=cavagnaro link=topic=10706.msg48633#msg48633 date=1508861676]
I doubt it...shadow variables holding a value of... let's say 13Mb of a recording? No way...


Enviado de meu E6633 usando Tapatalk


[/quote]

Wouldn't be the strangest design flaw we would have seen on Genesys, right? That's why I still have hopes :)