freesound | The Freesound website | Continuous Deployment library
kandi X-RAY | freesound Summary
kandi X-RAY | freesound Summary
Clone source code repository. Create a directory named freesound-data inside the repository folder.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a metric search
- Parse filter_list
- Get the value of a nested dictionary
- Recursively gets the names of all nested descriptors
- Return the number of occurrences of each sound
- Finds the named command name
- Log start time
- Log the end of the management command
- Filter search form
- Upload an audio file
- Return a stream of streams that follow a given time
- Compute clustering results
- List all tags
- Reply to a forum
- Get search results
- Create a new message
- Get a stream of dates
- Called when a sound is deleted
- Adds a point to the PCA dataset
- Merge search form
- Edit a sound
- Manage moderation notifications
- Process the sound
- Render a ticket
- Handles search
- Search for forums
freesound Key Features
freesound Examples and Code Snippets
Community Discussions
Trending Discussions on freesound
QUESTION
In my application I want to modify various mp3 and then mix them together. I know I could do it with a single command line in FFmpeg but It can end up very messy since I need to use various filter on each sample and I have five of them. My idea is to edit each sample individually, save them into a variable and finally mix them. This is my code:
...ANSWER
Answered 2021-May-06 at 16:27Your approach the right, but fixes are needed.
Fixing create_samp()
:
- You don't need
"-codec:v", "copy"
arguments because there is no video stream.
Fixing record(samp)
:
- You can't use
"-i"
"samp.stdout"
, becausesamp.stdout
is a bytes array (Python subprocess module uses it as a string). - Use
"-i", "pipe:"
for receiving the the second audio from stdin pipe. - Since you want to mix two audio streams you have to use
"-filter_complex"
argument, andamix
audio filter oramerge
audio filter, as described here. - Write
samp
to stdin pipe, and close stdin pipe.
Here is the code:
QUESTION
This question is the follow-up of this question
In my application I want to modify various mp3 and then mix them together. I know I could do it with a single command line in FFmpeg but it can end up very messy since I need to use various filter on each sample and I have five of them. My idea is to edit each sample individually, save them into a pipe and finally mix them.
...ANSWER
Answered 2021-May-06 at 16:24Using named pipes (Linux only):
Named pipes are required when there are two ore more input streams (that need to be piped from memory buffers).
Using named pipes is not trivial at all...
From FFmpeg point of view named pipes are like (non-seekable) input files.
Using named pipes in Python (in Linux):
Assume pipe1
is the name of the "named pipe" (e.g. pipe1 = "audio_pipe1"
).
Create a "named pipe":
QUESTION
I am using howler.js in my Angular app. For now I have two sounds playing at the same time. What I want is my drum
sound to stop whenever sound
stop.
I do get the ('stop')
console.log
but my stop()
function is not triggered.
I've created a button to trigger and it works fine but it's not the way I want to implement the stop()
function.
ANSWER
Answered 2021-Apr-18 at 14:40You should use arrow function instead:
QUESTION
I'm coding a game and I have a rough draft of the shooting mechanism, but I want to have it play a sound, and sometimes it won't play because it already is, and no matter how short I make the sound, it still does this on some level. My code is below, any advice? I want to have it be able to play at any time regardless of the status of any previous executions of the audio.play() method, I tried putting the audio.play() method in a separate function and calling that function, but it did nothing.
...ANSWER
Answered 2021-Apr-07 at 17:53A single audio cannot be playing in multiple instances. The audio must finish before it can be played again.
You must replace this code:
QUESTION
I am trying to call a Freesound API. Fetch throws an Unauthorised error whereas Postman works.
Code ...ANSWER
Answered 2021-Jan-09 at 18:00First of all, you should never post API Key on any public platform as anyone can access and exploit the API that you would have paid for.
SolutionThe endpoint you're using seems to be invalid. Also, don't use mode: 'no-cors'
unless an opaque request serves your need. Else, you won't be able to access any property in the response object.
Reason of 401 error: Using no-cors
prevents Authorization header to be added in your request.
Getting past CORS error: It usually happens in localhost during development. You can use an extension which would allow CORS.
QUESTION
There is a website called https://freesound.org and I would like to press the play button with JavaScript.
I tried
document.getElementsByClassName("play toggle")[0].click();
and it works only if you have already clicked anywhere in the page. I also tried focus()
on an element in the page but it will not work. Do I need to do this with an input event? How I could?
ANSWER
Answered 2021-Jan-08 at 20:25Media autoplay behavior is browser dependent. For instance, Chrome does not allow audio autoplay until the user has interacted with the page (click, tap, etc).
If you are only worried about autoplay in your browser, Chrome has a flag that you can set to allow audio to play without user interaction. If you are trying to create a script/extension/etc that will impact other users, you will need to research the behavior of the browser(s) you are targeting.
Edit: just saw that you are using Firefox Portable. Information about autoplay behavior can be found here.
QUESTION
I want to run a function after checking if an audio file is downloaded.
My js:
...ANSWER
Answered 2019-Oct-01 at 08:08You can use the onload
event to get notified when the full audio is loaded:
QUESTION
I am creating a simple MP3 player and using the FMOD Core API for managing the audio. I have written a simple program to test the play()
function.
I have two functions freeSound()
and freeSystem()
to free the sound
and the system
handle respectively. Both are called through the function cleanUp()
in the destructor.
I have used gdb
to figure out that for some reason, my program gets stuck in the Sound::release()
call in freeSound()
when the destructor is called.
This problem occurs only when freeSystem()
is called before freeSound()
. Simply calling the latter first fixes this issue.
I have shared as little code as I thought was possible to show this problem. If more/less is required I will add/remove.
The main() function:
...ANSWER
Answered 2019-Apr-02 at 14:44The FMOD reference FMOD System::close should explain the behaviour:
"Closing renders objects created with this System invalid. Make sure any Sound, ChannelGroup, Geometry and DSP objects are released before calling this.".
System::close is called by System::release so when releasing the system before the components you stumble into problems. As you have found out yourself simply free everything before you release the system.
QUESTION
I'm trying to make a Pong game in Java and I have a little problem with bouncing the ball from the paddle.
I have two paddles: left paddle1, right paddle2.
My idea is the following: ball_Y
should be between the height of the paddle and ball_X
touching point should be paddle width (PP1_width or PP2_width) +/- ball_radius
Paddle2 is working OK, but the ball passes through paddle1 and I cannot see my mistake.
Here is the video of how it looks like;
Here is the paddle bouncing part:
...ANSWER
Answered 2018-Dec-27 at 14:13I think you coded this very neatly and it took me quite a while to find out what was the problem. However, I think it is caused by not updating P1_Hit_Y and P2_Hit_Y in the paddle update methods. So:
QUESTION
The following script plays the original file ok. I try to separate each channel in the obvious way, but it does not work.
...ANSWER
Answered 2018-Jul-13 at 04:05Try ffmpeg on the command line:
Output each channel in stereo input to individual mono files:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install freesound
Clone source code repository git clone git@github.com:MTG/freesound.git cd freesound
Create a directory named freesound-data inside the repository folder mkdir freesound-data
Download the Freesound development data zip file (~20GB) and uncompress it inside freesound-data. You should get permission to download this file from Freesound admins. File structure should look like this: freesound/ freesound/freesound-data/ freesound/freesound-data/analysis/ freesound/freesound-data/avatar/ ...
Download Freesound development similarity index and the Freesound tag recommendation models and place their contents under freesound-data/similarity_index/ and freesound-data/tag_recommendation_models directories respectively (you'll need to create the directories). You should get permission to download these files from Freesound admins.
Rename freesound/local_settings.example.py file so you can customise Django settings if needed and create a .env file with your local user UID cp freesound/local_settings.example.py freesound/local_settings.py echo FS_USER_ID_FROM_ENV=$(id -u) > .env
[Optional] Create API credentials for the 3rd party services listed below and add them to your own freesound/local_settings.py file (check settings.py to know the config parameter names that you need to fill in): Mapbox Recaptcha
Build the base Freesound Docker image make -C docker
Build all Docker containers. The first time you run this command can take a while as a number of Docker images need to be downloaded and things need to be installed and compiled. docker-compose build
Download the Freesound development database dump (~50MB), run the database container and load the data into it. You should get permission to download this file from Freesound admins. docker-compose up -d db cat /path/to/freesound/development/db/dump.sql | docker-compose run --rm db psql -h db -U freesound -d freesound
Update database by running Django migrations docker-compose run --rm web python manage.py migrate
Create a superuser account to be able to login to the local Freesound website and to the admin site docker-compose run --rm web python manage.py createsuperuser
Run all services 🎉 docker-compose up
Build the search index so you can, well, search # Open a new terminal window so the services started in the previous step keep running docker-compose run --rm web python manage.py reindex_solr docker-compose run --rm web python manage.py reindex_solr_forum
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page