Questions tagged [mp3]

MPEG-1 or MPEG-2 Audio Layer III, more commonly referred to as MP3, is a patented digital audio encoding format using a form of lossy data compression. It is a common audio format for consumer audio storage, as well as a de facto standard of digital audio compression for the transfer and playback of music on digital audio players.

Filter by
Sorted by
Tagged with
0 votes
2 answers
48 views

How can I test if a mp3 file has finished playing, so I can play the next one?

I am attempting to create a quick little gui that will let me play mp3 files, pause them, skip to the next in the sequence, and most importantly: play the next mp3 file after the last has finished ...
logan jacobs's user avatar
0 votes
0 answers
18 views

Tensorflow/Google Colab can't read mp3

I'm new to tensorflow and tried making a simple audio classification ai. Somehow it can read .wav files but not .mp3 train_ds, val_ds = tf.keras.utils.audio_dataset_from_directory( directory=...
Ian Keh's user avatar
0 votes
1 answer
32 views

trimming audio file with pydub returns empty file

I saw another post on the same problem but it didn't help me. I have this code from pydub import AudioSegment path = input("Enter path of mp3 file") song = AudioSegment.from_mp3(path) start ...
Chras's user avatar
  • 5
0 votes
1 answer
20 views

Realtime encoding `MediaRecorder` stream to `mp3`

I want to realtime encode MediaRecorder stream to mp3. Currently I am saving stream from MediaRecorder as a blob variable. After the recording is done, I am converting the blob to wav and after that I ...
CZ workman's user avatar
0 votes
0 answers
12 views

Framesize and calculation in mp3

I read this post not so long ago : Formula from mp3 Frame Length And I was wondering about the answer, because the author of the answer said that 144 bytes represents the total bytes-per-frame, but ...
Mariatto's user avatar
0 votes
0 answers
23 views

When importing MP3 data, some images appear blank and give the warning I wrote below, as a result of which the application slows down a lot

warning = E/MediaMetadataRetrieverJNI(21416): getEmbeddedPicture: Call to getEmbeddedPicture failed. Lost connection to device. Future<void> fetchMusic() async { _audioQuery = OnAudioQuery(); ...
yusuf's user avatar
  • 1
0 votes
0 answers
17 views

How Can I Edit MP3 File's Lyrics and Album Cover Img Using Python?

I want to use eyed3 on python to edit lyrics and cover img, but I can't find a way to do it. Do I have to use a other module, or is there a way to edit with eyed3? PS. I used eyed3 to edit lyrics like ...
Quno's user avatar
  • 11
0 votes
0 answers
26 views

python is hard crashing with a simple mp3 play call

The following code is hard crashing. It was working fine then suddenly something changed and I don't know what, so I created this mini test app, and it's still crashing python in the call to play. ...
Quadgnim's user avatar
  • 541
0 votes
0 answers
7 views

How can I reprogram a wireless music receiver to turn it into a mp3 player?

I was wondering if it is possible to transform a wireless music receiver into a mp3 player. As a wireless music receiver has both a jack and a usb, I was wondering if it could somehow be hacked to ...
ScriptKitty's user avatar
0 votes
0 answers
36 views

Trying to save audio to mp3, saving to wav instead

I am making a project for class and the chatbot I have waves the file to .wav instead of .mp3 like the project requires. I do not know how to save it to mp3.` import streamlit as st from bokeh.models....
Darin Pierce's user avatar
-1 votes
1 answer
44 views

build.gradle / JACo MP3 Player

I'm making Minecraft Forge MOD. It uses JACo MP3 Player, but I got runtime error when I install it to its client. It causes an error when triggering the library event in-game: [Client thread/INFO]: [...
Sool Sim's user avatar
0 votes
1 answer
98 views

HTML Force download mp3 file in 2023 [duplicate]

Is it possible in 2023 download a file .mp3 directly? At these days browsers plays song on the browser, i need to download it! Is there some workaround? JS is ok for me. this not work: <a href=&...
Marco's user avatar
  • 98
0 votes
0 answers
25 views

How to merge two audio files without using FFMPEG in php

I am using an shared server where ffmpeg function is not possible to use. So i need to merge multiple audio or mp3 files into a single audio file in php without the support of ffmpeg. Below code is ...
Senthil Kumar's user avatar
0 votes
0 answers
86 views

Problem To Download playsound Module using pip

Playsound playsound is a python module this module have only one function called playsound Why I am installing: I want to play mp3 files Main Problem I write this command (I use Mac) pip3 install ...
Raghav Coder PY's user avatar
0 votes
0 answers
22 views

What file type do we need to associate a .wav or .mp3 file in Android Studio?

So, I am trying to do an ASR by sending a .mp3 file to the API provided. I am running normally in a Python script and it is working quite fine and giving me the perfect response. But now I am trying ...
Shashank2002's user avatar
0 votes
0 answers
26 views

Detecting silence moments in an mp3 file to pause a second mp3 file when 1st is silenced

sorry by advance for my english, i'll try to be as clear as possible. I am trying to create a script, that would add an mp3 file of a radio background noise (VUHF like). With PyDub, i managed to ...
Jules B's user avatar
-1 votes
1 answer
29 views

Logo, images and mp3 are not loading in my github website (made with visual studio code)

For my full-stack program, I need to make three html pages and upload them in Github and make it an online website. Everything is working, except for the logo, images and audio which is a mp3 file. I ...
Marjoleinfullstackerstudent's user avatar
0 votes
0 answers
24 views

How to download mp3 song using youtube_explode_dart flutter

I am using youtube_explode_dart: ^2.0.2 and I want to download the mp3 song but I don't know the process I am not able to find any solution on the internet I don't have any idea as I am new to the ...
Neal's user avatar
  • 63
0 votes
1 answer
96 views

QMediaPlayer fails to play mp3 file and does not signals mediaStatusChanged(QMediaPlayer::EndOfMedia)

I am writing a program (using Qt 6.5.1, on M1 Mac) which need to play multiple mp3 files (one by one). I run into a bug with the following code: void MainWindow::PlayMp3FileWithMediaPlayer(const ...
Huafeng's user avatar
1 vote
1 answer
363 views

How to play a local audio file in Tauri?

I'm working on a mp3 (audio) player on Tauri and Vue.js. I tried multiple solution but none of them worked. My player is using a simple video tag : <video ref="video" :key="queryUrl&...
TheHangel's user avatar
0 votes
0 answers
63 views

How can I use NAudio MediaFoundationEncoder to encode an AAC audio file? Plus I'd like clarification on MediaFoundationEncoder encoding

Apologies I'm quite new to programming and I need some assistance. I'm trying to make a desktop app, one of the features of which records audio from the microphone and saves an AAC file. So far, I ...
Elon Obama's user avatar
1 vote
0 answers
46 views

Reading and Editing metadata of mp3 in nodejs?

So, My client requested an electron app which can update metadata of mp3 files. What are the ways I can read and write Id3-v2.4 metadata tags of a mp3. I used node-id3 npm library but it clears GEOB ...
Chamindu Vidyarathne's user avatar
0 votes
1 answer
55 views

Using Pandas to merge two files with duplicates repeats the first row of the first file

I have two csv files that I want to do a conditional join on. The first is as follows: File path;Song title;Artist names;Album title;Track number;Duration seconds "Inverno.mp3";"Inverno&...
JBernardo's user avatar
0 votes
1 answer
133 views

Playing MP3 files in Blazor

My mp3 files are stored in a SQL database and loaded as byte[] data into client applications. With Razor Pages, the solution was to use the HTML <audio> element setting the source attribute to a ...
robert's user avatar
  • 135
0 votes
0 answers
37 views

How can I change multiple mp3 files name to the artists name in python?

I downloaded mp3 files and a file name is like "asd.com - TheSongTitle". I want to change in order the "asd.com" to the artist name, which is given in the file properties. So I ...
Boga13's user avatar
  • 1
0 votes
0 answers
54 views

Is there any way to modify .mp3 file so it would match timestamps from .srt file? Or take .srt file and convert it to speech

I want to create voiceover in different language for .mp4 file which is in english. I have transcribed .mp4 using Whisperx and I have three files .txt and .srt/.vtt. I translated .txt/.srt/.vtt files ...
Charles Skorsky's user avatar
4 votes
1 answer
114 views

Convert more than 2 channels audio to mono

I am using the next code for converting stereo to mono: using (var waveFileReader = new WaveFileReader(sourceStream)) { var outFormat = new WaveFormat(waveFileReader.WaveFormat.SampleRate, 1); ...
Rougher's user avatar
  • 890
0 votes
2 answers
173 views

AccessDeniedException when accessing REST API that returns StreamingResponseBody in Spring Boot 3 and latest Spring Security?

I have created this api for streaming an mp3 audio file as response. @GetMapping (value = "/api/user/stream/{songId}", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE) public ...
Kalpadiptya Roy's user avatar
0 votes
2 answers
49 views

It is possible to write an Applescript droplet which can take mp3 files and retag them based on the file's name?

Is anyone able to write an Applescript as the basis to create a droplet app that when I drop a bunch of mp3s on it, it uses the filename pattern "TITLE - ARTIST - YEAR" to change the id3 ...
tardy pigeon's user avatar
0 votes
0 answers
110 views

Capture audio with VBA and ffmpeg

I'm trying to get the audio with the following VBA and ffmpeg code. It states on the first line that: The syntax for the file name, directory name or volume label is incorrect, but the path and file ...
Gutemberg Silveira Alves GTTJ's user avatar
0 votes
0 answers
43 views

Media3 with Exoplayer gives me Soure Error

I am trying to make a simple app to catch data (mp3) from api https://server16.mp3quran.net/nufais/Rewayat-Hafs-A-n-Assem/036.mp3 When I use this url in media3 exo player >> gives me source ...
Eslam Mohsen's user avatar
0 votes
2 answers
86 views

How to read MP3 metadata? [duplicate]

What do you suggest I do to read metadata from MP3 files created with Audacity? I routinely use R with RStudio. A previous post to StackOverflow asked, ""Is it possible to read music file ...
Spencer Graves's user avatar
0 votes
0 answers
49 views

Why is PyCharm not recognizing .mp3 files?

PyCharm isn't recognizing the .mp3 files, is there any solution to this? I tried adding a new file type, messed around with the file associations and such but broke no ground. There are no audio file ...
Prantik Karmakar's user avatar
0 votes
1 answer
83 views

ID3v2, wrong APIC frame size calculation

The data size of each ID3v2 frame is stored in 4, 5, 6 and 7 bytes of the frame header block (according to documentation): I am reading frame sizes from this mp3 file: To convert to integer the ...
Ig_M's user avatar
  • 107
0 votes
0 answers
59 views

EXPO AV not playing WAV files on iOS

I have an application developed under Expo Go for android and IoS. I have found that the media player I developed using Expo AV will play MP3 and WAV files on android but cannot play the WAV files on ...
rjapenga's user avatar
1 vote
1 answer
28 views

Audio with data URI fails in Chrome

I have the following html. This runs in Firefox, but in chrome the element isn't playable. Why? <audio controls src="data:binary/octet-stream;base64,...
Corey's user avatar
  • 463
0 votes
1 answer
29 views

memory stream is not expandable on taglib File.save

I used taglib to change some of the mp3 tags it works fine with most files but I get memory stream is not expandable error sometimes here's my code: using var music = TagLib.File.Create(new ...
NoobPogrammer's user avatar
0 votes
0 answers
122 views

How to convert Blob url in Expo React -native into mp3 format and playback it?

I'm trying create a audio recorder and playback button ,i was successful in creating recording and stop it ,but the file is saved as the blob ,how to convert it into mp3 and playback. ` import {View,...
Vivek Gandhasiri's user avatar
0 votes
0 answers
27 views

in Qt Creator 6.4 or 5.12 cant use multimedia module

I tried all Qt 6.43 / 6.6 / 5.13 versions I also read the whole internet, tried to run many applications related to sound made from github, QT += coregui multimedia When I type, nothing works and ...
asi siyah's user avatar
-2 votes
1 answer
174 views

Chrome extension that can play sounds through the microphone [closed]

I'm trying to create an extension that can launch sounds through the microphone, mp3 sounds. For example I want that a user enters a google meet call or any other service and that by pressing a button ...
GiR's user avatar
  • 9
0 votes
0 answers
34 views

split mp3 song to voice and instruments using pyrhon

I have mp3 song and I want to split the vocal and instruments I have tried to use spleeter but I didnt understand the docs well so any code or library recommendation thanks in advance
Zyad  Sowilam's user avatar
0 votes
0 answers
15 views

How do I get the audio file working in my create-next-app?

I have a dashboard component like this that is supposed to play a notification sound when it hits zero on the timer. Here is the component: "use client"; import { useEffect, useState } ...
James's user avatar
  • 73
0 votes
0 answers
37 views

How to play a mp3 file in flask app with JavaScript

Python code from flask import Flask,render_template mp3files=["/static/audio1.mp3","/static/ audio2.mp3"] app=Flask(__name__) @app.route('/') def home(): return ...
Prabhjot Singh 's user avatar
5 votes
1 answer
1k views

Converting a real-time MP3 audio stream to 8000/mulaw in Python

I'm working with an API that streams real-time audio in the MP3 format (44.1kHz/16bit) and I need to convert this stream to 8000/mulaw. I've tried several solutions, but all have run into issues due ...
user60108's user avatar
  • 3,298
0 votes
2 answers
160 views

android.media.audiofx how to create a 10 band equilizer

I am trying to write my own MP3 player using .NET MAUI. One of the libraries are based on android media player. As I read in the documentation it has an Equalizer class in the android.media.audiofx ...
Wasyster's user avatar
  • 2,341
0 votes
0 answers
69 views

saving mp3 using NAudio LameMP3FileWriter

I'm trying to write 10 sec silence pcm buffer into mp3 file using NAudio LameMP3FileWriter. The problem is that, final mp3 file duration is not 10 sec. It's smaller. This is when I open resulting mp3 ...
guresha's user avatar
0 votes
0 answers
23 views

Playing mp3/wav in Java

For a school project we programmed a Pong game in Java. Unfortunately I am not that skilled in the language. In the GamePanel class shown below there is a function "checkCollision", which ...
hector165's user avatar
0 votes
2 answers
134 views

How do I play an mp3 from the file system on Xamarin Forms iOS?

I'm writing an app which plays an mp3 file. In Android this is straight forward: Use Xamarin.Essentials.FilePicker to pick the mp3 filepath Use Android.Media.MediaPlayer to play the mp3 filepath I ...
jho's user avatar
  • 197
0 votes
0 answers
38 views

react native ffmpeg haw write to external storage

iam trying to take a part from an audio file and create another file with it but i keep getting permissions denied or Read-only file system error : function:export const handleVideoLoad = (...
rayen saidani's user avatar
0 votes
0 answers
19 views

saving MP3 with java

I have a mp3 that i would like to play and save, i can play it without problems, but i can't save it. byte[] buffer = new byte[CHUNK_SIZE]; int bytesRead; try (...
sams's user avatar
  • 1

1
2 3 4 5
92