Android calls the built-in recording audio program
Android has its own Audio recording program. You can specify an Action MediaStore. Audio. Media. RECORD_SOUND_ACTION Intent.
Start it. Then, in the onActivityResult () method, retrieve the Intent Data, which is the URI of t
Long time no article, in fact, is to record their own development in the Android growth process. Talking about the audio and video this piece, for the novice just contact this piece, it is very very disgusting ~ I myself get this piece is also from the beginning, in the Internet also read countless information, browse countless blog, tried a variety of methods, online general method is adopted third party,
MediaPlayer wake-up lockGenerally, MediaPlayer is used to play audio streams. We recommend that you use a Service to carry MediaPlayer instead of directly using it in the Activity. However, in the Android system's power consumption design, to save battery consumption, if the device is in sleep state, the system will try to reduce or disable some features that are not required by the device, including the CP
By default, the sampling rate of Android sound is fixed to 44.1 kHz, and the recording sampling rate is fixed to 8 kHz, therefore, the underlying audio device drivers only need to set these two fixed sampling rates. If the sampling rate transmitted from the upper layer does not match the sampling rate, the android framework layer performs resample processing on t
Android calls your own recorded audio program
Android has its own audio recording program, we can specify an action MediaStore.Audio.Media.RECORD_SOUND_ACTION intent to
Just start it up. Then, in the Onactivityresult () method, get the intent data, which is the corresponding URI of the recorded
Address: http://mp3.zol.com.cn/252/2524723.htm
The rapid rise of Android system, surpassing iOS and Symbian, has become the largest smart device operating system. Its share is also expanding rapidly, and a large number of multimedia devices will adopt this system, is Android suitable for the operating system of audio and video devices? Let's take a look at th
1:7 Mouth 8 TongueSpeakers, headphones, and earpieceIs by: Audiomanager.setmode (audiomanager.mode_in_communication)Audiomanager.setspeakerhponeon (boolean value). These two are set. But some don't seem to support it.Switch speaker and handset on the M phone cannot switchAndroid Audiotrack Audio Playback analysisWhen the audio resource is playing, there are frequent conflicts, such as when the music is play
Basic knowledge about Android audio Development
Let's start with a piece of gossip. Some time ago I had a sentiment: Android development is not a way to go. It is just a platform that provides many encapsulated APIs, this allows you to quickly develop applications for specific services.
The real value lies in the integration of
Android 4.1, abbreviated as JB. In Chinese eyes, the word JB is also related to animals. Google modified android so frequently, and finally launched a version that can be put on the mouth of JB all day long. In the future, my articles can also use JB to express the version number, while JB to express what Chairman Mao often said, "Strategic contempt". Please try to understand my mood for writing the word JB
Audio terminologyIn this DOCUMENT
Generic Terms
Digital Audio
Hardware and Accessories
Audio Signal Path
Android-specific Terms
Sample Rate Conversion
This document provides a glossary of audio-related terminology, including a
other factors, the resulting audio files may have a certain degree of distortion, in addition, audio and video codec can be done by pure software, but also by the use of specialized hardware chip to complete.
Playback process
Remove the relevant files from the storage device and decode them according to the encoding used in the recording process.
The
Audiopolicyservice, Audiotrack, Audioflinger, Playbackthread, and two audio devices (speakers, headphones). The relationship between them is as follows (especially note that the purpose of this example is simply to illustrate the relationship of these elements, not that the strategy in the diagram is the one used by the Android system):L A Playbackthread output corresponds to a deviceThere are two devices
Go from Android 4.1 audio system Change instructions to Android 4.1, English code abbreviation for JB. In the eyes of the Chinese people, the word jb is also a little related to animals. Google so frequently modified Android, finally launched a can be all day jb JB hanging in the mouth of the version. Later my article
In game development, I learned from materials and books that two formats of playing audio can be used in our game development: MediaPlayer and SoundPool!
PS: Of course, there is another JetPlayer, but the format of the file to be played is quite troublesome, so I will not explain it here. If you are interested, you can study it on your own;
Run:
MediaPlayer and: SoundPool class! What are their advantages and disadvantages? Or, which one is better
Two audio recording methods for Android
In mobile APP development, every time an APP is designed for multimedia development, many programmers will suffer, and the project development progress will slow down
And the APP testing will increase. Multimedia Development in Android includes audio playback,
MediaRecord can be used for recording in Android, which is easy to operate. However, it is not professional enough to Process audio. If you want to process audio in real time or encapsulate the audio
You can use AudioRecord for recording.
Here is a piece of code. Audio Rec
This article translated from: http://developer.android.com/training/managing-audio/audio-focus.html
It is vital to consider how to interact with multiple potential audio playback programs. To avoid simultaneous playback of each music player, Android uses audio focus to contr
In the Android multimedia class, Mediamuxer and Mediacodec are relatively young, they are JB 4.1 and JB 4.3 only introduced. The former is used to mix audio and video to generate multimedia files. The disadvantage is that only one audio track and one video track can be supported at this time, and only MP4 output is supported. But since it is a new thing, I believ
Recently received a lot of users through e-mail or message that want to learn audio and video development, how to get started, I wrote a special article today unified reply.Audio and video This piece, there is really no comparison system of tutorials or books, online blog articles are relatively fragmented, I hope I can squeeze out the time of the whole topic in detail to say ~ ~ At present, I first give a large direction of the study guide, hope to h
Guo XiaoxingWeibo: Guo Xiaoxing's Sina WeiboEmail:[email protected]Blog: http://blog.csdn.net/allenwellsGithub:https://github.com/allenwells
Android has maintained an isolated audio stream for playing music, alarms, notification bells, incoming calls, system sounds, call sounds, and DTMF channels, which is the premise that we can control different audio,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.