I want to play audio without having to use HTML and just do it with node. The program is a webscraper that I want to alert me with a sound when needed. I looked up online for packages but I couldn't find any that worked. If there is any way to do this please let me know.
Related
I wrote a simple bot that grabs the video and audio files from reddit (these files are always seperated on reddit api) and now I am looking for an easy way to automate combining the audio and video files together using an npm or possibly FFmpeg or some other way.
I could use a video editor and combine the files that way one by one but I want to do it inside my program which will save me a lot of work.
Do any of you know of a npm that can easily do this? I searched myself but couldn't find anything.
I am programming in typescript. Both audio and video files come in mp4 format.
I have searched online for an npm that does this but only found a few that can combine multiple audio files together, none that combine a video and audio file.
Thanks for the help.
Maybe this can do the job? It's an npm wrapper for ffmpeg
https://www.npmjs.com/package/fluent-ffmpeg
I'm designing a mini game that would be generated with HTML and JS on smartphone.
It would be offline and won't be able to access any files.
So I was wondering how to embed a basic music in it and some sound design.
I see 2 options :
Make a sound generator with JS, and design a sound that could play this generator (something like this link)
Convert a low-fi mp3/ogg or other to base64 and add it directly in the HTML (src="data:audio/mp3;base64...")
The first method must be the lighter but could be difficult at the moment to design the song. And maybe not that light for the hardware?
The second method would be the easier to work with but because of the amount of data I don't know if it's a good option.
Any suggestions for one of those methods? Or maybe you have a better idea?
The game will probably need to be distributed to the phones somehow, so you should be able to incorporate not just HTML and JS into the distribution package, but also other asset files - like images and sound files. If that's the case, there's no need to try to embed the music into the HTML (option 2). Just ship an MP3 file with the music that you want to play as a part of that package.
I wanted to create a simple GUI app which selects one of the MP3 files and plays it. Can't seem to find the best library for doing that with PyQT. Therefore need some recommendation on it. Don't mind switch to JavaFX or something if it has more options.
I know GUI is probably outdated nowadays when everything is web. Would Javascript be a better choice?
try vlc module for python to play all types of audio and videos in case needed later. You should make use of the Qt example seen in examples folder when you unzip the downloaded tar file
I'm in a little over my head with a project for a client, they want to build an audio editor that will allow the user to trim their uploaded audio files and save them. I've built the file uploader, and the detail view for the individual audio files, my question is how would this best be implemented? I've been looking at
Peaks.js
and I want to make sure thats the right way to go before diving in. Never used npm in a django project before, is it like using any other js library?
I've also been told about sox, which is great for manipulating the sound files, but what about displaying the sound to the user/editing in the browser?
Any help or general direction-pointing would be greatly appreciated and could save me a bunch of time potentially.
I have used html audio tags for playing multiple mp3 file in browser. I want to know if it is possible to record these mp3's into a single mp3 file in javascript(specifically)?. Or even if any module which can help me record these playing mp3's.
Generally, no.
It is possible to work with audio in JS but probably not in the way you want. See this question for more info.
I don't know what exactly you're trying to do but it seems like you would need to do it server-side, and even that would take effort to achieve (Since you would need to find a library that could merge multiple MP3s into a single file and then serve that as a download to the user. This would also require you to know how to install such software and make it available to your server-side code).