audio-player

Command line program for playing sections of audio specified in milliseconds

家住魔仙堡 提交于 2019-12-06 07:25:38
问题 Would someone kindly recommend a command line utility that can play any section of an audio file specified in milliseconds e.g. player -start-time=0.1234 end-time=5.6789 audio.wav None of the audio players that I've come across seem to have this functionality. vlc supports start and end times but in seconds only, while Audacity does not appear to have much in the way of command line options. 回答1: sox You can use sox play with the trim effect: play audio.wav trim START =END Which in your case

AS3 microphone recording/saving works, in-flash PCM playback double speed

此生再无相见时 提交于 2019-12-06 04:12:03
问题 I have a working mic recording script in AS3 which I have been able to successfully use to save .wav files to a server through AMF. These files playback fine in any audio player with no weird effects. For reference, here is what I am doing to capture the mic's ByteArray: (within a class called AudioRecorder) public function startRecording():void { _rawData = new ByteArray(); _microphone .addEventListener(SampleDataEvent.SAMPLE_DATA,_samplesCaptured, false, 0, true); } private function

Control Embedded Grooveshark Widgets using Javascript?

痴心易碎 提交于 2019-12-06 01:34:15
How would I play/pause an embedded Grooveshark widget using Javascript? Would like to play separate single-song widgets in sequence, ala separate tracks on a soundcloud user's page . I didn't see anything officially supported, and couldn't find anything via googling. I took a quick glance at the decompiled actionscript and turned up the following ExternalInterface callbacks: getVersion() getCurrentSong() setSongCompleteCallback(string) setErrorCallback(string) setStatusCallback(string) setSongChangeCallback(string) playSong() pauseSong() resumeSong() stopSong() replaceSongs(array) In theory,

My App is not working in API 23

一世执手 提交于 2019-12-05 18:57:26
The music app which is <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" /> , it works on API 16 , but not in API 23. The listview is not loaded with songs, it shows empty when checked in API23, working fine in API16. In API22 also working fine import java.io.File; import java.util.ArrayList; import java.util.HashMap; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.Environment; import android.view.ContextMenu; import android.view.MenuInflater; import

React Native - Expo Audio stop all sounds

人走茶凉 提交于 2019-12-05 15:26:08
I am using Expo Audio to play some short sounds from a list. async playAudio(file) { try { await Audio.setIsEnabledAsync(true); const sound = new Audio.Sound(); await sound.loadAsync(file); await sound.playAsync(); } catch(error) { console.error(error); } } Which I'm calling from a list rendered with list.map() renderTheList = (item, i) => { return ( <View key={i}> <TouchableOpacity onPress={ () => { this.onAudioSelected(item.audio) }}> </TouchableOpacity> </View> ) } onAudioSelected(audio) { // Audio.clearSounds() <-- something like this playAudio(audio) ... } The sounds play fine, but when I

HTML5 audio player with sub-menus

…衆ロ難τιáo~ 提交于 2019-12-04 20:01:36
I have the following script to play audio files sequence from the selection in menu 1 to the selection in menu 2. It looks like this (a list of Numbers, another for Letters): What I need to do is add two other selection menus, before the action of playing the files, so the selection could be from any menu (even the same one), or other menus (to look like this): So the menu beside the first Select I can choose numbers or letters , and when choosing one them the sub-categories menu beside it changes to show either the selection from 0-5 (if selected numbers ), or from A-C (if the letters is

How to tell if MediaPlayer is playing?

牧云@^-^@ 提交于 2019-12-04 19:54:09
How can I tell if javafx.scene.media.MediaPlayer is playing? Preferably without any external imports or additions to the build path. If this is not possible, are there any libraries that I can use that are self-contained? I am installing this software on an ARM CPU so I am trying to make this code as minimalist as possible. I am only going to use this framework to play music files and primarily MP3s. Any suggestions on how I can tell if the player is playing music with this or a different library? if I understood: mediaPlayer.setOnEndOfMedia(new Runnable() { @Override public void run() {

Android Exerciser Monkey starts playing audio files at random

二次信任 提交于 2019-12-04 18:09:53
问题 I'm running exerciser monkey to test my android app. As part of my app I play media files which give the pronunciation of a words. I've put the files in a directory where they aren't readable by the Android's Music player. However, the exerciser monkey throws some sequence of events which seem to activate the music player, which then repetitively play the beginning of another mp3 file (which is not from my app) during its testing. How is it doing this, and is it something I should be

mpc / mpd on linux: how to play local wav file

纵饮孤独 提交于 2019-12-04 13:13:03
I am trying to add a local file to mpd ( through mpc ) and play it . my platform is OpenWRT embedded linux . so, from the man page, it states: mpc add <file> Add a song to the current playlist if i do: root@OpenWrt:~/.mpd# mpc add /usr/share/baresip/ring.wav error adding /usr/share/baresip/ring.wav: directory or file not found or if i do: root@OpenWrt:~/.mpd# mpc add file:///usr/share/baresip/ring.wav error adding file:///usr/share/baresip/ring.wav: Access denied what exactly is the correct syntax here? the man page is really not very clear for mpc / mpd . Your second attempt was almost right.

Command line program for playing sections of audio specified in milliseconds

徘徊边缘 提交于 2019-12-04 12:31:43
Would someone kindly recommend a command line utility that can play any section of an audio file specified in milliseconds e.g. player -start-time=0.1234 end-time=5.6789 audio.wav None of the audio players that I've come across seem to have this functionality. vlc supports start and end times but in seconds only, while Audacity does not appear to have much in the way of command line options. sox You can use sox play with the trim effect: play audio.wav trim START =END Which in your case would become: play audio.wav trim 0.1234 =5.6789 Note that the end can also be specified as a length: play