# Record from an online audio stream

**URL:** <https://discourse.julialang.org/t/record-from-an-online-audio-stream/37385>\
**Category:** Signal and Image Processing\
**Tags:** question\
**Created:** [April 11, 2020, 11:09am UTC](https://discourse.julialang.org/t/record-from-an-online-audio-stream/37385 "2020-04-11T11:09:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![apieum](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/apieum/32/2928_2.png) [@apieum](https://discourse.julialang.org/u/apieum)\
**Post date:** [April 13, 2020, 8:55am UTC](https://discourse.julialang.org/t/record-from-an-online-audio-stream/37385/5 "2020-04-13T08:55:16Z")

</div>

Have you tried with sockets to grab few seconds of data like pyaudio example ?  
This example was for julia 0.6, but it may still work: [How to read from socket in non-blocking mode - #6 by Keno](https://discourse.julialang.org/t/how-to-read-from-socket-in-non-blocking-mode/4710/6)  
Instead of `while !eof(socket)`  
You can use size of received data…

---

_[View the full topic](https://discourse.julialang.org/t/record-from-an-online-audio-stream/37385)._
