Skip to content

Instantly share code, notes, and snippets.

@kinisoftware
Created April 11, 2021 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinisoftware/da62ae30ea65401ce406eaef8c39442e to your computer and use it in GitHub Desktop.
Save kinisoftware/da62ae30ea65401ce406eaef8c39442e to your computer and use it in GitHub Desktop.
private fun HandlerInput.buildResponse(audioUrl: String, offsetInMillis: Long? = 0L) = responseBuilder
.addAudioPlayerPlayDirective(
PlayBehavior.REPLACE_ALL,
offsetInMillis,
null,
"token",
audioUrl
)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment