# Asterisk gets the audio stream

**URL:** <https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168>\
**Category:** Asterisk Support\
**Created:** [August 30, 2024, 6:15am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168 "2024-08-30T06:15:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fish\_cat](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/fish_cat/32/8862_2.png) [@fish\_cat](https://community.asterisk.org/u/fish_cat)\
**Post date:** [August 30, 2024, 6:15am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/1 "2024-08-30T06:15:05Z")

</div>

Hi, everybody  
asterisk’s MixMonitor recording, continued to read this file during the call and found that there was a delay of a few seconds, the read data stream was a few seconds ago, how can I reduce this delay, or can I get the audio stream directly from somewhere else, how can I get it

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 30, 2024, 8:38am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/2 "2024-08-30T08:38:54Z")

</div>

Many people keep trying to treat MixMonitor recordings as a live stream, and it’s not. It’s a recording. It can be buffered before being written out.

What are you ACTUALLY trying to achieve?

---

<div class="post-metadata">

**Author:** ![fish\_cat](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/fish_cat/32/8862_2.png) [@fish\_cat](https://community.asterisk.org/u/fish_cat)\
**Post date:** [August 30, 2024, 9:24am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/3 "2024-08-30T09:24:25Z")

</div>

Thank you for your answer. What I want to do is similar to an intelligent outbound call device, which determines whether it needs to be transferred to the internal number according to the audio, and needs to obtain the audio binary data of the call in real time during the call, such as using python code, or other ways

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 30, 2024, 9:35am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/4 "2024-08-30T09:35:08Z")

</div>

Uh huh. There’s external media in ARI, which can also be combined with snoop to make a ChanSpy that forwards the media outside of Asterisk. This has come up multiple times, so you should be able to find other threads on here about it. Other people may have their own suggestions.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 30, 2024, 9:37am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/5 "2024-08-30T09:37:48Z")

</div>

[External Media and ARI - Asterisk Documentation](https://docs.asterisk.org/Development/Reference-Information/Asterisk-Framework-and-API-Examples/External-Media-and-ARI/) for example

> **[External Media: A new way to get media in and out of Asterisk ⋆ Asterisk](https://www.asterisk.org/external-media-a-new-way-to-get-media-in-and-out-of-asterisk/)**
>
> At recent AstriDevCon meetings, we discussed the possibility of allowing an ARI application to capture or inject media into calls it controlled.  With the

[![](https://global.discourse-cdn.com/asterisk/original/2X/0/0773729fd01a6779397743cb6f7d406ac2cfc431.jpeg "AstriCon 2024: Approaches for Transcription & AI with Asterisk") ](https://www.youtube.com/watch?v=ypcsB5Ld6zw)

---

<div class="post-metadata">

**Author:** ![fish\_cat](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/fish_cat/32/8862_2.png) [@fish\_cat](https://community.asterisk.org/u/fish_cat)\
**Post date:** [August 30, 2024, 9:40am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/6 "2024-08-30T09:40:39Z")

</div>

Ok, thank you very much for your help, I will try to implement it

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 29, 2024, 9:41am UTC](https://community.asterisk.org/t/asterisk-gets-the-audio-stream/104168/7 "2024-09-29T09:41:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
