Questions tagged [flutter-audio-query]
20 questions
2
votes
0 answers
Speech Recognizer closes when we open recorder instance in Flutter?
So I am trying to with speech_to_text and flutter_sound plugins, So when I try to open recorder.openRecorder(); and speech.listen() together, the speech.recognizer stops and throws the ERROR_SPEECH_TIMEOUT error as the speech recognizer is stopped…

Darsh Shah
- 31
- 3
2
votes
1 answer
How to change the current mediaItem when the next mediaItem in the queue is played
I'm developing an iOS app in Flutter, using a package called audio_service.
I use AudioServiceBackground.serQueue() to set multiple MediaItem to a Queue.
In the UI part, I'm trying to use AudioService.currentMediaItemStream to display the…

Kou Kimura
- 23
- 4
1
vote
1 answer
How can I pass Index or ID to any audio package in Flutter
I am making a flashcard app in flutter which will display German to English translation. I want to add audio of German sentence on every flashcard which user can listen by pressing a button. There will be around 600 Sounds/Sentences. How this can be…

u2k
- 37
- 2
0
votes
1 answer
Flutter - Audio is playing only once when I go to PianoMain page
I am making a piano app as a beginner for demo. I have made the whole page for Piano including UI and audio functionality. But, the problem is that when I open PianoMain so, it plays any one of key's audio. Then if I press any key's onTap it doesn't…

pnpatel
- 9
- 3
0
votes
0 answers
FAILURE: Build failed with an exception.(audio_query)
I am creating a music player app..when I am trying to run app, the app was stopped and shows this error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':on_audio_query:parseDebugLocalResources'.
Could not…

Sahrier Naeem
- 1
- 2
0
votes
0 answers
i am actually making flappy bird as my first project in flutter. how can i add an asset audio in gesturedetector?
[here is the write and gesture detector code](https://i.stack.imgur.com/RmUfF.png)
I tried adding this
but it didnt work . i just want when i click on the music button it should play the background audio in assets and if click on no music it should…
0
votes
1 answer
flutter audio_service, how to set an interval between two audios
I make a looping function and support running in background, so I choose audio_service and just_audio.
But I want to control the interval between two audios playing.
I hope the first one has finished playing, set 1 second and then play the second…

knight0zh
- 13
- 2
0
votes
1 answer
To convert .wav audio file to .mp3 in flutter
I have a feature to listen to audio files, I'm getting audio files in .wav format and takes too long to play audio. When i tried .mp3 file with same audio player its delay decreased.
Is there any way to convert .wav to .mp3 or any other approches?
…

Akhil
- 419
- 5
- 15
0
votes
1 answer
How to stop the audio player when taped on another color, and also to stop that music when another starts to play?IN=> audioplayers: ^0.19.0
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:audioplayers/src/audio_cache.dart';
void main() => runApp(XylophoneApp());
final player =…

bird
- 1
- 2
0
votes
1 answer
How to play a sound in one tap ans stop it in another , loaded from assets
import 'dart:html';
import 'package:flutter/material.dart';
import 'package:audioplayers/audioplayers.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
…

bird
- 1
- 2
0
votes
1 answer
Flutter: PlatformException (PlatformException(, cannot find the file, null, null)) on FlutterAudioRecorder2
class AudioRecorder {
static DateTime now = DateTime.now();
static String timestamp = now.toString();
var recorder = FlutterAudioRecorder2("./file_path",
audioFormat: AudioFormat.AAC);
// or var recorder =…

loxad602366
- 45
- 5
0
votes
1 answer
how to play music without pressing a button flutter
I was looking for a way to play music in flutter without pressing a button, but I can't find a way, does someone know how to do that
UPDATE
I've tried using initstate(), but when I implement this, the music would just stop at the middle
this is the…

xpertpert
- 23
- 5
0
votes
1 answer
I have trouble in my flutter music player
I'm trying to make a music player with flutter. Using flutter_audio_query package to get the songs from the storage and also audioplayers package. The thing is that when I run the program it shows nothing in my ListView, not getting the songs. Not…

Moh Say 21
- 81
- 1
- 1
- 5
0
votes
1 answer
AudioPlayer pause method not working - Flutter
I'm using an AudioPlayer package to develop the audio/media player. To load the music from the asset folder, I'm using an AudioCache class, and to utilize other methods (pause, stop, and duration), I'm using AudioPlayer.
When I click on the button…

shakky
- 434
- 5
- 20
0
votes
0 answers
How to stop loop in flutter card swiper with assets audio player?
I made slide learning app but slide was looping playing continuously
I need to stop auto play it reaches the end.
I'm using card_swiper: ^1.0.2
I update my full code is here -I'm also using a Assets audio player
I try loop: false it won't…
user10993979