Questions tagged [audio-player]
A software specialized in playing audio of different formats and/or manage audio libraries.
1,373
questions
0
votes
0
answers
10
views
Music Discord Bot Looping Music
Hello
I'm working on an discord music bot with python, I already have a function that plays the songs that are in a queue but I would like to add a command that plays the queue in an infinite loop.How ...
0
votes
2
answers
40
views
How do I make multiple play and pause music buttons that play different audios?
I'm trying to add multiple play and pause buttons to my website that play different audio. Though I've been successful making one play and pause pair, every time I try and make another one it will ...
0
votes
0
answers
18
views
How to register a Windows sound event?
In Windows Control Panel there is a tool that allows us to control system sounds. Visual Studio supports this by providing several "Program Events" which allow you to associate a specific ...
0
votes
0
answers
14
views
Swift: How I can continue play audio and pause video on lock screen with AVPlayer?
I build my video player Apps and has background audio player.
I use AVPlayer with AVPlayerLayer.
By listen to Apps enteredBackgound I can continue play audio, but has some problems here, video still ...
0
votes
1
answer
30
views
I cant seem to sync my / commands to discord [duplicate]
I asked ChatGPT to generate some code for a Discord bot that uses commands prefixed with /. It came up with:
import discord
import asyncio
import aiohttp
from discord import Object
from discord.ext ...
-1
votes
1
answer
53
views
Reading audio/mp3 file from GCP bucket throws blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present
I'm trying to create a audio player using js and flask. The audio files are retreived from a GCP bucket and audio files have Public Access. But when I try to play the audio it throws,
Access to audio ...
1
vote
1
answer
51
views
How can I use Tone.JS to play a MIDI file?
While looking through the Tone.JS documentation, I found that MIDI files were supported.
MIDI
To use MIDI files, you’ll first need to convert them into a JSON format which Tone.js can understand ...
0
votes
0
answers
50
views
Unable to get currentTime proprty from react h5 audio player in react
I want to show current time property of react h5 audio player in react html. I tried to use useeffect with dependency but it is still not updating time with new value. please see below code and ...
0
votes
0
answers
15
views
Progress slider not working properly (Music Player)
I am trying to make a progress bar for my music player written in HTML, CSS and JS using TaiwindCSS. But the slider bar's length is more than the song's, i.e., the song ends till the bar reaches the ...
0
votes
0
answers
20
views
How can I create Shuffle play (with GUI) in java
I have to create an application for audio stream with different functionalities. I am stuck with the shuffle play action. Because on my previous project were GUI wasnt included I created this method ...
0
votes
0
answers
32
views
JavaFX MediaPlayer sound briefly stops after playing again an audio that has been paused
I'm using JavaFX to create a media player, and everything works fine, but I have a small issue, when I call mediaPlayer.play() after I paused the audio/video, I get a weird sound glitch, like the ...
0
votes
1
answer
43
views
How can I solve this issue of non working audio-player in Flutter
I am facing a problem with getting the audio-player to work in Flutter.
My simple app consists of a bunch of keys with different colors, and each one of them is supposed to play some audio file ...
1
vote
1
answer
17
views
AudioPlayer does not play after changing track
I want to create an audioplayer on React Nextjs, with some dots, each one corresponding to an audio track. When I click on a dot, it pause the track that currently is playing, if there is one, and ...
-1
votes
0
answers
23
views
I'm getting an error for this music discord bot
import discord
from discord.ext import commands
import os
from googleapiclient.discovery import build
import asyncio
os.environ["PATH"] += os.pathsep + r"C:\Users\shlok\OneDrive\...
0
votes
1
answer
12
views
Can I add autoplay sound on ios or chrome devices?
I am trying to write code in html to autoplay sound in ios or chrome device, is it possible?
0
votes
0
answers
50
views
Commands not working, and trying to add a queue/ability to add playlists
I'm trying to make a music bot for discord, everything appears to be working. It's turning on and detects the prefix, but when I do "?join" so it joins the Voice Channel it tells me "...
0
votes
0
answers
43
views
How do I send the outputs of one program to another program so it can execute accordingly
I want to use my e-guitar as a controller for a game so I came up with the Idea to use the pitch that gets picked up by a recording software to simulate pressing a key
for example: if int(pitch) = ...
0
votes
0
answers
45
views
SvelteKit Audio Visualizer with AudioContext / createMediaElementSource
I wrote this audio visualizer in Svelte. And it works - but only on the first run. As soon as the source of the player is changed and it should play, I get the following error and the visualizer is ...
0
votes
0
answers
22
views
Piping the openDownloadStream() of MongoDB gridFS bucket with a createWriteStream () writes an empty file
I referenced GridFS-download files to download the files stored in mongoDB but it writes an empty file. I have made sure that the files in my database aren't empty.
server.js:
import fs from "fs&...
0
votes
0
answers
69
views
How do i fix the error "ffmpeg was not found." in my discord bot?
I am currently trying to make my discord bot play a youtube audio from a URL. However, I can't pass the error "ffmpeg was not found". I have tried to use different solutions but nothing has ...
0
votes
2
answers
51
views
how to use audioplayers package to play local audio flutter
I want to use the audio players package to run audio files on my app,
NOTE:
I use local files in assets file like this
assets\audio\he_has_got_the_packa.mp3
this path file
I try to use ...
0
votes
0
answers
28
views
How to add missing libraries of dart packages in file manager
In the directory, I found there was no libraries of the audioplayers in file manager(windows).
And I use android studio.
enter image description here
I tried to install pub dart(windows), nothing ...
0
votes
0
answers
15
views
add sound to a specific frame of a video in python
I have a video of a bouncing ball and know exactly in which frames the ball hits the ground. I want now to add a sound (i.e. a piano note) added to the video every time the ball is hitting the ground. ...
0
votes
0
answers
26
views
How to make flutter audio_players library works fine on web?
I am developing a Flutter App that has sound effects when dragging and dropping some widgets; when I was testing it on localhost web and mobile devices, everything works fine; but once I've deployed ...
0
votes
0
answers
111
views
Flutter Just Audio plugin is unable to play complete playlist and gives playback error
I am using on_audio_query package to query the list of the audio files.
_audioQuery.querySongs(
sortType: null,
orderType: OrderType.ASC_OR_SMALLER,
uriType: UriType.EXTERNAL,
ignoreCase: true,...
0
votes
0
answers
36
views
How can i get my progress bar to show the current time of a song?
in my audio player for my portfolio i am having an issue getting the progress bar to fill up with the current part of the song. in the console when i inspect, it does show progress is being made.
// ...
0
votes
1
answer
18
views
Is there something wrong with my code in my .js file for the pause button?
This is my current code for a music player im building for my portfolio. I am having an issue getting the button to pause. the music does play so that is not an issueyour text
const music = document....
2
votes
0
answers
56
views
Why onDurationChanged is not called in Flutter ios?
I'm using audioplayers: 1.1.0 library to play audio from url
I use the onDurationChanged method to get the audio file length. This is working perfectly on android but in iOS the onDurationChanged is ...
3
votes
0
answers
175
views
Flutter audioplayers 1.1.1 version, no sound at all on android imulator but works only on web browser
I have used a last version of audio player 1.1.1
and i faced this problem that i cann’t play sound at all on android imulator but i works well only on web browser I’ve put this line in manifest
...
0
votes
1
answer
58
views
How to use <audio/> in Nuxt-js project?
I keep my mp3 files and image under static file. I can reach my images with below method but i can not reach my mp3 files. I did some settings on nuxt.config.js but still i cant reach mp3 files .
...
0
votes
1
answer
35
views
Dart: Retrive multiple album covers from MP3 file's ID3 tags
iTunes/Apple Music allows for adding multiple cover artworks to a mp3 file. The first images is in a column named "Album Artwork" and remaining are in column "Other Artwork" as ...
0
votes
1
answer
40
views
How to avoid PlayerInterruptedException (Connection aborted) from just audio inside TabBar?
I am using just_audio: ^0.9.29 to play the audio. The page contains TabBar() with Two Tabs. The player is inside the first Tab.
AudioPlayer Code:
GestureDetector(
onTap: () => ...
1
vote
4
answers
59
views
flutter Problem in vs code (Unable to Load asset)
I'm having a problem in flutter on vs code
I imported the audioplayers
here's my pubspec.yaml
here's my homepage where I call the audio players
import 'package:flutter/material.dart';
import 'package:...
1
vote
0
answers
66
views
Flutter audioplayers returns wrong playing time?
I'm using audioplayers: 1.1.0 plugin to play audio from url. It's playing well. But the player.onPositionChanged after particular seconds it restarts and timer starts from 0.
So that my slider again ...
0
votes
1
answer
122
views
Discord.py music bot Wavelink error: `TypeError: Type must meet VoiceProtocol abstract base class.`
The print:
0|Runa | <class 'wavelink.player.Player'>
The error:
0|Runa | vc:wavelink.Player=await ctx.author.voice.channel.connect(cls= wavelink.Player)
0|Runa | File "/...
-1
votes
1
answer
133
views
Change BPM value of Spotify Song
I'm trying to build an application that plays Spotify songs. I'm really confused about how to change the BPM (beats per minute) value of Spotify songs.
First Step: Login through Spotify.
Second Step: ...
0
votes
0
answers
27
views
I want to play music from my Database(music) in Java using JDBC. I don't want any UI just want to run in terminal
code for getting data from Database which is music
I don't want any UI just want to run in terminal
import java.io.FileNotFoundException;
import java.sql.*;
import javazoom.jl.decoder....
0
votes
0
answers
176
views
Flutter : Play Audio File From Application Directory ( Storage )
In Stack Overflow or other example, I found that from asset folder and from network I can play audio file easily.
But, There is no clear approach That I can play audio file from Application Storage or ...
0
votes
0
answers
19
views
Remove small pause between loops in audio clip in Java
I have written a function in Java that plays a .wav file and has an option to loop that clip infinitely. For some songs, I want to loop from a specific portion in the song for an uninterrupted audio ...
0
votes
0
answers
59
views
How to sync audio files using tone.js on react
I want to make a looper similar to this website https://learningmusic.ableton.com/
users will be able to upload their own audio files to each pad, so long as all the loops are in the same bpm it ...
1
vote
2
answers
155
views
The Discord music bot does not play music in the Docker container
I'm new to Docker and I'm trying to deploy a Discord music bot on a remote Ubuntu Linux server in a Docker container.
The problem is that when the bot is launched in the container, the music does not ...
0
votes
1
answer
139
views
How to create Functions for an Online Music Player?
I have created an Online Music Player for 2 People. 1 Server and 1 Client.
The Server has the Music Files. The client has only the Interface from the Online Music Player. The Server and the Client ...
0
votes
0
answers
100
views
Flutter: audio and video player in one package
is there any package that provides both an audio and video player?
take video input but it has options to play video as audio in the background and while the screen is off.
1
vote
0
answers
387
views
How to play sound with package audioplayers in flutter
I'm doing course on flutter. I was trying to play sound in flutter.
Sadly, I'm having below error code
Here is my complete code
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/...
0
votes
0
answers
60
views
How can I play the next song automatically in my music player app?
I recently made my first app which is an music player. In that app next song is not playing, I implemented the OnCompletionListener method, but it only plays the next song and stops the music player, ...
0
votes
0
answers
67
views
How to transmit audio using restful api in nodejs?
I'm learning javascript by trying to build a self-host music library web app.
On frontend I use the audio tag and set the source like this:
<audio id="audio" controls="controls" ...
0
votes
0
answers
22
views
How to develop a simple custom music player that runs on background? [duplicate]
I want to play some tracks while playing a strategy game. But I also want the tracks to change based on what is happening in the game. I need some way to run a player that changes to specific tracks ...
0
votes
1
answer
59
views
Is there a way to eliminate the error when clicking the button fast
I have this code below which plays a sound every time I hit a button.
AudioPlayer player = AudioPlayer();
Future<void> playSound({required String soundStr}) async {
player.setAsset(soundStr);
...
0
votes
1
answer
410
views
how to play audio files in flutter dart using audioplayer
hello I want to play an audio whenever a user taps on the button. i have tried many ways but the shows unable to load asset. i have worked with assets before and I think it is something new. Can ...
0
votes
0
answers
20
views
Flutter-Why is Audio players playing only 1 file for all files in a list view
I have a list view of 5 different audio files from Internet, but anytime I play 1 it'll play the one for all the files and it's always going to play only the last audio file..
I deleted the last file ...