Silence Stream

0 views
Skip to first unread message

Roxanna Fitting

unread,
Aug 5, 2024, 5:58:04 AM8/5/24
to riraralmo
Priorto about a week ago, silence at the beginning or in the middle of a recording worked perfectly for me. I could start recording, record silence as long as I wanted, and then start recording sound from for instance a web site. And I could pause the source, and the silence would record for as long as I remained paused.

It used to be so simple and so perfect. What went wrong? Same hardware, Same operating system, same Audacity version (I even tried 2.3.3 today), same device drivers, same source, same everything; but things are not behaving the same!


What I tried to say is that WASAPI (Audacity) does record audio stream when there is none coming from the audio source (when the Web radio stream is paused). In such a case, WASAPI (Audacity) does count sheep when there are no sheep in the Web page pen: it records silence.

It also records silence before the Web radio stream is unpaused if there has been a previous recording, and it has been undone (Edit > Undo).


It happened to me as well , recently i had to do a scan for hardware changes and since then i could not record silence , but i accidentally found a workaroud , if you get into a discord call by yourself audacity will record the silence that is picking up from the discord call .


However, I would still like to understand why the two other approaches wont work?Trying to redirect the error stream (or any stream) to a variable, the variable turns out empty, so I assume I am somehow trying to redirect the stream from the wrong process?Does this have something to do with launching Powershell from the .bat file?


Note: The -ErrorAction common parameter operates exclusively on non-terminating errors as well - unlike the seemingly equivalent ErrorActionPreference preference variable, however, which - surprisingly - also applies to terminating errors - see the link to the GitHub docs issue below.


I'm making a discord bot with Discord.js v14 that records users' audio as individual files and one collective file. As Discord.js streams do not interpolate silence, my question is how to interpolate silence into streams.


My code is based off the Discord.js recording example.In essence, a privileged user enters a voice channel (or stage), runs /record and all the users in that channel are recorded up until the point that they run /leave.


I've tried using Node packages like combined-stream, audio-mixer, multistream and multipipe, but I'm not familiar enough with Node streams to use the pros of each to fill in the gaps the cons add to the problem. I'm not entirely sure how to go about interpolating silence, either, whether it be through a Transform (likely requires the stream to be continuous, or for the receiver stream to be applied onto silence) or through a sort of "multi-stream" that swaps between piping the stream and a silence buffer. I also have yet to overlay the audio files (e.g, with ffmpeg).


Would it even be possible for a Readable to await an audio chunk and, if none is given within a certain timeframe, push a chunk of silence instead? My attempt at doing so is below (again, based off the Discord.js recorder example):


As a side note, although outside the scope of my original question, there are many other modifications you can make to this. For instance, you can prepend silence to the audio before piping the receiverStream's data to the userStream, e.g, to make multiple audio streams of the same length:


I would like to detect silence from an icecast radio stream, i have attempted the following code, however when i silence the stream the rms value stays the same where i would expect a close to zero value: any help


The naive approach would just be to scale up the traditional audio stream method with one stream per radio channel, however I am concerned about the bandwidth demands and reliability. Users report their streams dropping out and having to reconnect.


My next idea, is to essentially buffer the streams through an FFMPEG instance and record them to disk while also cutting out the silence, then monitor the output of that with some code to "push" the new audio clips out to the listeners.


My solution seems overly-complex to me, does anyone know of an audio codec or streaming solution that is well suited to audio with long periods of silence? Or is my idea the best way to do this? Can you think of any improvements?


Bandwidth for this is minimal. I recommend using Opus for the best quality for the bandwidth. Also, consider using VBR for the encoding. You'll end up with very low bandwidth when there is silence, with more bandwidth used while there's actual content. This is similar to what you were considering doing, but already built into the codec.


I have an AC3 5.1 audio file to which I would like to insert x seconds of silent audio at the beginning. This has nothing to do with video muxing, so itsoffset is useless since it seems to only work with an audio stream accompanying a video one. I would like to achieve this with ffmpeg. Any ideas?


Use the anullsrc audio source filter in to create the silent audio. You'll need to match the format, channel layout, and sample rate of the main audio file. Example to make a 5.1 channel, 48000 Hz sample rate, 1 second silent AC3 audio file (as this was what the format in the question):


Use the concat filter if you want to do everything in one command, or if you want to output to a different format than the input (since this method re-encodes anyway). This methods works for adding silence to the beginning or end or both.


Use the adelay audio filter if you want to do everything in one command, or if you want to output to a different format than the input (since this method re-encodes anyway). This only works to add silence to the beginning of a file.


Use the apad audio filter if you want to do everything in one command, or if you want to output to a different format than the input (since this method re-encodes anyway). This only works to add silence to the end of a file.


LinkedIn and 3rd parties use essential and non-essential cookies to provide, secure, analyze and improve our Services, and to show you relevant ads (including professional and job ads) on and off LinkedIn. Learn more in our Cookie Policy.


I wrote a text for the occasion which I completely forgot about, wondering around data ontologies, epistemologies, ideologies, phenomenologies, and where does the title come from, which I think is worth sharing. A video of the Liminaria performance can be found here.


I reached Airpaise with a cognitivist preconception. In a series of scrapped notes over the previous weeks, I had investigated a number of different concepts that I wanted to explore once there. Sketched the profile of people I meant to collaborate with. Made hypothesis on ways to present the artistic result of the residency to the wider public.


Data are today of ontological nature. Mainly digital, they became independent entities that form an everlasting trace of ourselves, running in parallel with our real lives. We produce data everywhere we go, with every action we perform, online and offline. Not only us humans but animals, everyday objects, distant galaxies, natural phenomena, and viruses, produce data that are collected, stored, sold and bought, and sometimes explored to be made sense of. In 2017, data became a buzz word, too. Big data. Open data. Data journalism. Data - driven innovation.


Still, I arrived in Arpaise in September 2017 and there was no data waiting for me to be harvested. No matter how hard I searched, that corner of land and its living and non-living inhabitants refused to comply with the ontological grid, and I had to start from scratch.


If data are a means of describing reality and investigate it to generate new knowledge, a first step in collecting them would be to look around from exactly where you are and ask yourself a question that can be answered through pieces of quantifiable information.


So, immersed in the nature around TANA - Terranova Arte Natura on the third day of the residence, we started counting the trees (the main or at least by far the most noble, protagonists of the place) one by one, to create a bottom up data set. In this particular area of Italy, more than in any other forests are growing out of control. Taking advantage of depopulation forests are taking over a big portion of what used to be an organised space with houses, crops, roads, and cattle. 2015 (the year of the last forests census) has been the most forested year of the past one thousand. Forests grow, in Italy, at the pace of 0.6% yearly. Due to the loss of population of many mountainous areas of Central and Southern Italy, since 1971 forests have taken over more than 3,5 hectares of country. One third of the country is covered with spontaneous woods. In many areas, such as the Fortore, these forests are impenetrable, so much so that there are no official data on their status. Simply because nobody can get in to collect them.


I set up to learn all I could about the forest of Arpaise: from taking pictures of the trees density and counting them by hand per square meters, to consulting historical tables on the annual growth rate of oak woods, via measuring the leaves mass by means of height and width of the trunks, step by step we mapped the wilderness around TANA as it is now.


A work carried out walking up and down the land until the forest allowed me to go and talking to the people who on a daily basis live it, and know it by heart, and with it co-exists. On our explorations we stopped at the border of this impenetrable forest, found the dried course of an empty stream, and recorded the great silence to be used as material for the data sonification.


I heard once the architect Rem Koolhas saying that it was the cities, with their anonymity and beyond human" scale, what gave men and women of the XX century their freedom. Freedom from the paternalistic, conservative society of the agricultural countryside, of the village where everybody knows everything about you. Is the advocacy of a return to nature a sign of the failure of those ideals of liberty and freedom from control, freedom to choose the life you want to live? Or is it there where the lack of digital entities allows us to build our own vision of the world around us, that the resistance will take place?

3a8082e126
Reply all
Reply to author
Forward
0 new messages