{"action":"created","issue":{"url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/issues/96","repository_url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech","labels_url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/issues/96/comments","events_url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/issues/96/events","html_url":"https://github.com/googleapis/nodejs-text-to-speech/issues/96","id":364426010,"node_id":"MDU6SXNzdWUzNjQ0MjYwMTA=","number":96,"title":"Highlighting text as the audio is being played","user":{"login":"rrrepos","id":14859054,"node_id":"MDQ6VXNlcjE0ODU5MDU0","avatar_url":"https://avatars2.githubusercontent.com/u/14859054?v=4","gravatar_id":"","url":"https://api.github.com/users/rrrepos","html_url":"https://github.com/rrrepos","followers_url":"https://api.github.com/users/rrrepos/followers","following_url":"https://api.github.com/users/rrrepos/following{/other_user}","gists_url":"https://api.github.com/users/rrrepos/gists{/gist_id}","starred_url":"https://api.github.com/users/rrrepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrrepos/subscriptions","organizations_url":"https://api.github.com/users/rrrepos/orgs","repos_url":"https://api.github.com/users/rrrepos/repos","events_url":"https://api.github.com/users/rrrepos/events{/privacy}","received_events_url":"https://api.github.com/users/rrrepos/received_events","type":"User","site_admin":false},"labels":[{"id":1075940342,"node_id":"MDU6TGFiZWwxMDc1OTQwMzQy","url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/labels/ml-apis","name":"ml-apis","color":"2554ba","default":false},{"id":944195311,"node_id":"MDU6TGFiZWw5NDQxOTUzMTE=","url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/labels/type:%20question","name":"type: question","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"beccasaurus","id":280,"node_id":"MDQ6VXNlcjI4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/280?v=4","gravatar_id":"","url":"https://api.github.com/users/beccasaurus","html_url":"https://github.com/beccasaurus","followers_url":"https://api.github.com/users/beccasaurus/followers","following_url":"https://api.github.com/users/beccasaurus/following{/other_user}","gists_url":"https://api.github.com/users/beccasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/beccasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccasaurus/subscriptions","organizations_url":"https://api.github.com/users/beccasaurus/orgs","repos_url":"https://api.github.com/users/beccasaurus/repos","events_url":"https://api.github.com/users/beccasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/beccasaurus/received_events","type":"User","site_admin":false},"assignees":[{"login":"beccasaurus","id":280,"node_id":"MDQ6VXNlcjI4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/280?v=4","gravatar_id":"","url":"https://api.github.com/users/beccasaurus","html_url":"https://github.com/beccasaurus","followers_url":"https://api.github.com/users/beccasaurus/followers","following_url":"https://api.github.com/users/beccasaurus/following{/other_user}","gists_url":"https://api.github.com/users/beccasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/beccasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccasaurus/subscriptions","organizations_url":"https://api.github.com/users/beccasaurus/orgs","repos_url":"https://api.github.com/users/beccasaurus/repos","events_url":"https://api.github.com/users/beccasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/beccasaurus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-09-27T11:19:21Z","updated_at":"2018-10-03T20:03:50Z","closed_at":"2018-10-03T20:03:50Z","author_association":"NONE","body":"I am using the Google Cloud Text-to-Speech API to convert some dynamic text and send the response to the browser. I have been successful in doing it, by sending the audio response as a base64 string and playing it using:\r\n\r\n````\r\nlet audio = document.querySelector('audio');\r\naudio.src = base64str;\r\naudio.play();\r\n````\r\n\r\nIs there a way in which I can highlight the text as the voice is being spoken? The response from the server contains both the voice as well as the text from this the T2S was done. Thanks"},"comment":{"url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/issues/comments/426780916","html_url":"https://github.com/googleapis/nodejs-text-to-speech/issues/96#issuecomment-426780916","issue_url":"https://api.github.com/repos/googleapis/nodejs-text-to-speech/issues/96","id":426780916,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjc4MDkxNg==","user":{"login":"nnegrey","id":7898071,"node_id":"MDQ6VXNlcjc4OTgwNzE=","avatar_url":"https://avatars2.githubusercontent.com/u/7898071?v=4","gravatar_id":"","url":"https://api.github.com/users/nnegrey","html_url":"https://github.com/nnegrey","followers_url":"https://api.github.com/users/nnegrey/followers","following_url":"https://api.github.com/users/nnegrey/following{/other_user}","gists_url":"https://api.github.com/users/nnegrey/gists{/gist_id}","starred_url":"https://api.github.com/users/nnegrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnegrey/subscriptions","organizations_url":"https://api.github.com/users/nnegrey/orgs","repos_url":"https://api.github.com/users/nnegrey/repos","events_url":"https://api.github.com/users/nnegrey/events{/privacy}","received_events_url":"https://api.github.com/users/nnegrey/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T20:03:50Z","updated_at":"2018-10-03T20:03:50Z","author_association":"NONE","body":"Hi, this is pretty intriguing, at the moment I don't think we have any guides on how to do this, but it seems like you are looking for a [VTT](https://www.w3.org/wiki/VTT_Concepts) type of audio file, is that correct?\r\n\r\nAt the moment, I think you have to create that yourself. This package [node-webvtt](https://www.npmjs.com/package/node-webvtt) might be helpful in that creation though I have never used it. \r\n\r\nLet me know if that helps! :)"}}
{"actor":{"display_login":"nnegrey"}}