# Embedding voice recording in videos

**URL:** <https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305>\
**Category:** Ideas\
**Created:** [December 11, 2019, 4:31am UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305 "2019-12-11T04:31:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinaaghli](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/sinaaghli/32/139_2.png) [@sinaaghli](https://discourse.asciinema.org/u/sinaaghli)\
**Post date:** [December 11, 2019, 4:31am UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/1 "2019-12-11T04:31:32Z")

</div>

Hi  
thank you for creating such an amazing tool. Its great for teaching purposes and the option to copy and paste from the screen is mind-blowing.  
I was wondering if there are any plans on adding a voice recording option. in that case it would be a complete tool for teaching anything using the terminal and also step by step note-taking.

---

<div class="post-metadata">

**Author:** ![oldfart](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/oldfart/32/28_2.png) [@oldfart](https://discourse.asciinema.org/u/oldfart)\
**Post date:** [December 18, 2019, 3:10am UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/2 "2019-12-18T03:10:59Z")

</div>

It would be nice, yes

---

<div class="post-metadata">

**Author:** ![cameron-elliott](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/cameron-elliott/32/223_2.png) [@cameron-elliott](https://discourse.asciinema.org/u/cameron-elliott)\
**Post date:** [January 20, 2020, 1:05pm UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/3 "2020-01-20T13:05:27Z")

</div>

Hmmm, this is a cool idea, but it would seem to be tricky to implement.

---

<div class="post-metadata">

**Author:** ![lucasysucomputadora](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/lucasysucomputadora/32/237_2.png) [@lucasysucomputadora](https://discourse.asciinema.org/u/lucasysucomputadora)\
**Post date:** [February 11, 2021, 1:57am UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/4 "2021-02-11T01:57:52Z")

</div>

I was trying some ideas to do this. I want to record an audio from my live coding session with Tidalcycles.  
I tried to launch jack\_capture and asciinema rec at the same time with some kind of script, but not success yet. I think there is a way to do it. Then you can play both files at the same time with asciinema player and media player on html.  
When I have something working, I will share the script here.

---

<div class="post-metadata">

**Author:** ![balupton](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/balupton/32/472_2.png) [@balupton](https://discourse.asciinema.org/u/balupton)\
**Post date:** [January 24, 2025, 12:23pm UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/5 "2025-01-24T12:23:41Z")

</div>

This would be great. It could be recorded separately from the .cast file, but uploaded together. The .cast file could reference the sound file. Naturally, a video output format could embed the audio. There are some terminal media players on github, not sure how they work, or whether they are just interfaces for say Spotify.

One of them I’ve just tested is `https://github.com/mpv-player/mpv` which can play music in the background of the now executing terminal mpv instance, with say:

```auto
> mpv wand\ of\ thorns.mp3 --no-video
○ Image --vid=1 (mjpeg 500x500)
○ Image --vid=2 (mjpeg 500x500)
● Audio --aid=1 (mp3 2ch 44100 Hz 128 kbps)
File tags:
 Artist: Softheart
 Album: we made a heart farm
 Album_Artist: Softheart
 Date: 2024
 Title: wand of thorns
 Track: 3
AO: [coreaudio] 44100Hz stereo 2ch floatp
A: 00:00:03 / 00:01:52 (3%) 
Exiting... (Quit)

```

I plan to create Asciinema recordings for all the hundreds of [dorothy](https://github.com/bevry/dorothy) commands, to showcase and explain their functionality, while at the same time [using the cast files for testing](https://discourse.asciinema.org/t/using-asciinema-for-testing/923/1).

---

<div class="post-metadata">

**Author:** ![vitalrune](https://avatars.discourse-cdn.com/v4/letter/v/838e76/32.png) [@vitalrune](https://discourse.asciinema.org/u/vitalrune)\
**Post date:** [May 7, 2025, 7:26pm UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/6 "2025-05-07T19:26:12Z")

</div>

For teaching, embedding the voice and also web-cam overlay to show the teacher’s face would be great. Although webcam overlay sounds even more tricky as I believe this player is very different since it allows to copy text from it.

It might be possible using two different files and thus two separate players, but syncing their state (time, play, pause).

---

<div class="post-metadata">

**Author:** ![akram](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/akram/32/718_2.png) [@akram](https://discourse.asciinema.org/u/akram)\
**Post date:** [August 20, 2026, 8:03am UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/7 "2026-08-20T08:03:21Z")

</div>

any update on this? that would be really useful.

And at the era of vibecoding, I am sure that this can be done quite quickly. I am trying some solutions locally in the meanwhile

---

<div class="post-metadata">

**Author:** ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)\
**Post date:** [October 27, 2026, 1:46pm UTC](https://discourse.asciinema.org/t/embedding-voice-recording-in-videos/305/8 "2026-10-27T13:46:51Z")

</div>

The player has `audioUrl` option that can be used to add synchronized audio track (or live stream, e.g. icecast) to the playback. See: [Options - asciinema docs](https://docs.asciinema.org/manual/player/options/#audiourl)

Here’s a demo: [They’re Made Out of Meat - asciinema.org](https://asciinema.org/a/746358)

Not quite audio embedding but may be useful in some cases.

More info:

- [Release 3.12.0 · asciinema/asciinema-player · GitHub](https://github.com/asciinema/asciinema-player/releases/tag/v3.12.0)
- [Release 20251013 · asciinema/asciinema-server · GitHub](https://github.com/asciinema/asciinema-server/releases/tag/v20251013)
