All Questions
Tagged with audio-player python
98
questions
-1
votes
0
answers
32
views
Is there any way to remove a specific portion of audio from the raw audio file
I have two raw audio file generated through sip packets. one contains raw audio file of conversation of between two persons. If I add a new person there will be a hold music which will be added to the ...
0
votes
0
answers
74
views
How to implement pause/resume feature for wav audio with sounddevice in python
I wanted to implement the pause/resume feature using sounddevice. I found out that this library doesn't have a dedicated method to achieve this as other libraries like PyGame. But for my specific case,...
0
votes
0
answers
51
views
Errosr while running a PySide6 online audio player
from PySide6.QtWidgets import QApplication,QWidget,QPushButton
from PySide6.QtMultimedia import QMediaPlayer,QAudioOutput
from PySide6.QtCore import QUrl
class MainWindow(QWidget):
def __init__(...
0
votes
1
answer
59
views
Python bot does not read messages
Whatever I do my bot simply refuses to read any messages. Messages do not appear in the run menu.
import discord
from discord.ext import commands
import youtube_dl
intents = discord.Intents.default()...
1
vote
1
answer
2k
views
why ffmpeg process successfully terminated with return code of 1 without play anything
`I tried replacing youtube_dl with yt_dlp and replaced some of the code, the code worked fine but when using the command, the bot doesn't play music but immediately ffmpeg process 15076 successfully ...
0
votes
1
answer
313
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 ...
0
votes
0
answers
109
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
719
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
1
answer
514
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 "/...
0
votes
3
answers
790
views
How to get the mp3 link duration when playing in vlc python?
I was trying to play music from music stored in Firebase Storage using vlc packages. However, when using this packages, we need to define the duration of the time sleep. Error occured when I used ...
2
votes
1
answer
181
views
How to make a player, without an interface, but with the ability to rewind in python?
I have found many ways to interact with music in python, but in all there are only a few commands, start, stop, volume change, but I can't find a banal rewind.
The code at the moment:
import vlc
...
0
votes
1
answer
400
views
discord.py music used to work but now im getting an error
im not sure what this error is or how to fix it. is it possible to fix or should i just not try.
i searched for this since other people had the same issue, but nothing helped my case.
A while back ...
0
votes
0
answers
453
views
how can i implement pedalboard effects to my music player in python
as you can see i've attempted to add reverb but i dont really have any idea what im doing with this. im not sure what way is the most efficient way of going about this, perhaps to make a new playlist ...
1
vote
1
answer
255
views
I need help by creating a loop in Pygame
I have the following Code
def play_music():
song = playlist.get(ACTIVE)
next_one = playlist.curselection()
next_one = next_one[0]+1
pygame.mixer.music.load(song)
pygame.mixer.music....
1
vote
1
answer
1k
views
Discord.py with Wavelink - I want my bot disconnect when there is nothing left to play? but how
I want to let my bot disconnect from voice channel when there is nothing left to play. Also all command are wrote in cogs.
I try to use vc.queue.is_empty() but it will skip one song like below
A Song -...