asciinema / asciinema-player

Web player for terminal session recordings
https://docs.asciinema.org/manual/player/
Apache License 2.0
2.67k stars 266 forks source link

Feature: Text to speech #255

Open map7 opened 1 year ago

map7 commented 1 year ago

Instead of recording audio which takes a lot of space, what about using 'text to speech' instead and getting the browser to play the correct text at the right time of the recording.

https://dev.to/asaoluelijah/text-to-speech-in-3-lines-of-javascript-b8h

This would keep the size of the recordings down but add the ability to put speech alongside the videos. It could also double as captions.

This would have a big advantage over recording audio tracks in which you could change the narrative as it's just text.

ku1ik commented 1 year ago

Ooh, that's interesting idea. This would indeed handle audio in a similar fashion as we handle "video" - through minimal amount of information needed to synthesize the output. Nice!

Have you used TTS API "in anger"? Is it widely supported across browsers these days? I see the original post is from 2020 so I guess there's good chance it's already out there, at least in major browsers.

map7 commented 1 year ago

Yeah I was thinking about your problem whilst listening to you on changelog. I haven't used TTS but thought there would be something which could do text to speech and it would fit in with your project.

ku1ik commented 1 year ago

Got it. Thanks for the idea, I'll explore this for sure!

ku1ik commented 9 months ago

Moving to asciinema-player as this is mostly player related feature.