Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup audio stream offset

I build an action which plays some audio file. I want to add ability for user to listen from the place he stopped. In Alexa there is an offset parameter which I could specify. Is there anything similar for Google Assistant?

For now I start playback like that:

conv.ask(new MediaObject({
  name: 'some file',
  contentUrl: AudioFileUrlProvider.generateTempUrl(),
  description: 'some description',
}));

I know about MediaObject but there is no parameter to specify offset.

like image 266
Petr Shypila Avatar asked Jul 24 '18 13:07

Petr Shypila


People also ask

What is sync offset?

“Global Sync Offset” refers to audio across section or entire program that is out of sync (early or late) by a consistent amount of frames/ seconds.


1 Answers

Unfortunately there isn't currently a way to specify an offset to the media object.

like image 50
lukedavis Avatar answered Sep 29 '22 09:09

lukedavis