audio

How to receive “icecast” internet radio stream for immediate playback with Python?

大兔子大兔子 提交于 2021-01-07 02:12:46
问题 I'm wanting to take an internet audio/radio stream (specifically Longplayer, click for direct stream URL) and play it with python. It's preferable that it's backgrounded, such that the script able to continue running its main loop. (e.g. as game background music or something, though Pyglet, PyGame et al. may provide their own tools for that.) I've seen some likely out of date examples of recording internet radio using requests and dumping it into a file but this isn't exactly what I want and

How to receive “icecast” internet radio stream for immediate playback with Python?

浪尽此生 提交于 2021-01-07 02:10:41
问题 I'm wanting to take an internet audio/radio stream (specifically Longplayer, click for direct stream URL) and play it with python. It's preferable that it's backgrounded, such that the script able to continue running its main loop. (e.g. as game background music or something, though Pyglet, PyGame et al. may provide their own tools for that.) I've seen some likely out of date examples of recording internet radio using requests and dumping it into a file but this isn't exactly what I want and

How to receive “icecast” internet radio stream for immediate playback with Python?

橙三吉。 提交于 2021-01-07 02:09:52
问题 I'm wanting to take an internet audio/radio stream (specifically Longplayer, click for direct stream URL) and play it with python. It's preferable that it's backgrounded, such that the script able to continue running its main loop. (e.g. as game background music or something, though Pyglet, PyGame et al. may provide their own tools for that.) I've seen some likely out of date examples of recording internet radio using requests and dumping it into a file but this isn't exactly what I want and

How to make FFmpeg automatically inject mp3 audio tracks in the single cycled muted video?

好久不见. 提交于 2021-01-07 01:06:57
问题 everybody here! So basically this is what I want to achieve: I have a muted video about 3 minutes long. I have a list of audio tracks in mp3 format (40 songs in a folder with duration 2 to 6 mins each one) I want this video to play cycled automatically taking songs from playlist and injecting them to the video one by one. Every time a song finishes the next one from the list should start playing at the moment. Video continues playing and doesn't care duration of tracks. I consider it as the

How to make FFmpeg automatically inject mp3 audio tracks in the single cycled muted video?

自作多情 提交于 2021-01-07 01:04:49
问题 everybody here! So basically this is what I want to achieve: I have a muted video about 3 minutes long. I have a list of audio tracks in mp3 format (40 songs in a folder with duration 2 to 6 mins each one) I want this video to play cycled automatically taking songs from playlist and injecting them to the video one by one. Every time a song finishes the next one from the list should start playing at the moment. Video continues playing and doesn't care duration of tracks. I consider it as the

How to avoid chrome autoplay policy on JS code?

巧了我就是萌 提交于 2021-01-05 12:04:58
问题 I'm building a game to help kids to learn alphabets, the game is simple it will pronounce the letter and the user should choose the right letter between 3 different choices the problem is that I can't autoplay the letter's audio file because of chrome autoplay policy which blocks autoplayed audio/video to avoid adds one of the ways I found on google is inserting an audio/video tag on the HTML with fixed src, but that didn't work for me because audio's path would change with each new round the

How to avoid chrome autoplay policy on JS code?

牧云@^-^@ 提交于 2021-01-05 12:02:47
问题 I'm building a game to help kids to learn alphabets, the game is simple it will pronounce the letter and the user should choose the right letter between 3 different choices the problem is that I can't autoplay the letter's audio file because of chrome autoplay policy which blocks autoplayed audio/video to avoid adds one of the ways I found on google is inserting an audio/video tag on the HTML with fixed src, but that didn't work for me because audio's path would change with each new round the

Cannot capture system audio output with Electron desktopcapturer in Ubuntu

佐手、 提交于 2021-01-05 06:37:26
问题 I want to capture OS system audio output with Electron desktopcapturer, it works well in Windows as following: constraints = { // audio: false, audio: { mandatory: { chromeMediaSource: 'desktop' } }, video: { mandatory: { chromeMediaSource: 'desktop' //maxFrameRate: 15 }, } then, I use: navigator.webkitGetUserMedia(constraints, function(dstream) {... However, in Ubuntu, it always shows "could not start audio source". Can anyone tell me how to do? Thanks for your help. 回答1: Leaving my answer

Discord.py Bot How to play audio from local files

拟墨画扇 提交于 2021-01-04 06:48:41
问题 Basically the title. I installed ffmpeg and discord.py[audio] already. I just need to learn how it works. couldn't find any tutorial for local audio files. and I cant understand anything from documentations :/ 回答1: That's a function that plays a local audio file. I had problems with FFmpeg, so I hardcoded the .exe path. Also, I had a problem with the file path to the local file, so I put the absolute path in. This function also deletes the command that called it after the audio is done

Compare the similarity of 2 sounds using Python Librosa

拥有回忆 提交于 2021-01-04 05:39:48
问题 I have about 30 sound clips that are each a preset from a synthesizer. I want to compare these sounds to find out which ones are similar, and then sort the sounds so that each sound is adjacent in a list to 2 sounds that are similar to it. Frequency is not the only thing I want to look for. I would rather 2 saw waves which are a tone apart be considered similar that a saw wave and a sine wave which are the same note. These sounds would be considered similar for example Using librosa, I have