Documentation

Support

Vivox Unity SDK

Vivox Unity SDK

Example: Transcription token

An example of a Transcription token that enables speech-to-text for a channel.
Read time 1 minuteLast updated 2 days ago

The token in this example allows the user "beef" to begin a speech-to-text transcription for the channel "testchannel". The token expiration time is September 17, 2020 at 1:30 PM UTC. The token signing key is "secret!" (not including quotes).
Header
{}
Payload
{ "vxi":542680, "f":"sip:.blindmelon-AppName-dev.beef.@tla.vivox.com", "iss":"blindmelon-AppName-dev", "vxa":"trxn", "t":"sip:confctl-g-blindmelon-AppName-dev.testchannel@tla.vivox.com", "exp":1600349400}
Access token
e30.eyJ2eGkiOjU0MjY4MCwiZiI6InNpcDouYmxpbmRtZWxvbi1BcHBOYW1lLWRldi5iZWVmLkB0bGEudml2b3guY29tIiwiaXNzIjoiYmxpbmRtZWxvbi1BcHBOYW1lLWRldiIsInZ4YSI6InRyeG4iLCJ0Ijoic2lwOmNvbmZjdGwtZy1ibGluZG1lbG9uLUFwcE5hbWUtZGV2LnRlc3RjaGFubmVsQHRsYS52aXZveC5jb20iLCJleHAiOjE2MDAzNDk0MDB9.-A0w_fcPCZaG5NMksnbSrGSVXNNt25YqlRjcKcLkGnA