MANIPULATING RAW AUDIOThe AudioTrack and AudioRecord classes let you r dịch - MANIPULATING RAW AUDIOThe AudioTrack and AudioRecord classes let you r Việt làm thế nào để nói

MANIPULATING RAW AUDIOThe AudioTrac

MANIPULATING RAW AUDIO
The AudioTrack and AudioRecord classes let you record audio directly from the audio input hardware and stream PCM audio buffers directly to the audio hardware for playback.
Using Audio Track streaming, you can process and play back incoming audio in near real time, letting you manipulate incoming or outgoing audio and perform signal processing on raw audio.
Although a detailed account of raw audio processing and manipulation is beyond the scope of this book, the following sections offer an introduction to recording and playing back raw PCM data.
Recording Sound with Audio Record
Use the AudioRecord class to record audio directly from the hardware buffers. Create a new Audio Record object, specifying the source, frequency, channel configuration, audio encoding, and buffer size:
int bufferSize = AudioRecord.getMinBufferSize(frequency,
channelConfiguration,
audioEncoding);
AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC,
frequency, channelConfiguration, audioEncoding, bufferSize);
The frequency, audio encoding, and channel configuration values will affect the size and quality of the recorded audio. None of this meta data is associated with the recorded files.
For privacy reasons, Android requires that the record_audio permission be included in your manifest:

When your Audio Record object is initialized, run the startRecording method to begin asynchronous recording, and use the read method to add raw audio data into the recording buffer:
audioRecord.startRecording(); while (isRecording) {
[ ... populate the buffer ... ]
int bufferReadResult = audioRecord.read(buffer, 0, bufferSize);
}
Listing 15-18 records raw audio from a microphone to a file stored on an SD card. The next section shows you how to use an Audio Track to play this audio.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
MANIPULATING RAW AUDIOThe AudioTrack and AudioRecord classes let you record audio directly from the audio input hardware and stream PCM audio buffers directly to the audio hardware for playback.Using Audio Track streaming, you can process and play back incoming audio in near real time, letting you manipulate incoming or outgoing audio and perform signal processing on raw audio.Although a detailed account of raw audio processing and manipulation is beyond the scope of this book, the following sections offer an introduction to recording and playing back raw PCM data.Recording Sound with Audio RecordUse the AudioRecord class to record audio directly from the hardware buffers. Create a new Audio Record object, specifying the source, frequency, channel configuration, audio encoding, and buffer size:int bufferSize = AudioRecord.getMinBufferSize(frequency,channelConfiguration,audioEncoding);AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC,frequency, channelConfiguration, audioEncoding, bufferSize);The frequency, audio encoding, and channel configuration values will affect the size and quality of the recorded audio. None of this meta data is associated with the recorded files.For privacy reasons, Android requires that the record_audio permission be included in your manifest:When your Audio Record object is initialized, run the startRecording method to begin asynchronous recording, and use the read method to add raw audio data into the recording buffer:audioRecord.startRecording(); while (isRecording) { [ ... populate the buffer ... ]int bufferReadResult = audioRecord.read(buffer, 0, bufferSize);}Listing 15-18 records raw audio from a microphone to a file stored on an SD card. The next section shows you how to use an Audio Track to play this audio.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Thao tác với RAW AUDIO
Các AudioTrack và AudioRecord lớp cho phép bạn ghi lại âm thanh trực tiếp từ các phần cứng âm thanh đầu vào và dòng đệm âm thanh PCM trực tiếp đến phần cứng âm thanh để phát lại.
Sử dụng Audio Track trực tuyến, bạn có thể xử lý và phát lại âm thanh đến gần thời gian thực, cho phép bạn thao tác âm thanh đến hoặc đi và thực hiện xử lý tín hiệu về âm thanh thô.
Mặc dù một tài khoản chi tiết về xử lý âm thanh thô và thao tác là vượt ra ngoài phạm vi của cuốn sách này, các phần sau đây cung cấp một giới thiệu về ghi âm và phát lại dữ liệu PCM thô.
Recording Sound với audio Record
Sử dụng lớp AudioRecord để ghi lại âm thanh trực tiếp từ bộ đệm cứng. Tạo Audio Record đối tượng mới, xác định nguồn, tần số, cấu hình kênh, mã hóa âm thanh, kích thước buffer:
int BUFFERSIZE = AudioRecord.getMinBufferSize (tần số,
channelConfiguration,
audioEncoding);
AudioRecord audioRecord = new AudioRecord (MediaRecorder.AudioSource.MIC,
tần số , channelConfiguration, audioEncoding, BUFFERSIZE);
các tần số, mã hóa âm thanh, và các giá trị cấu hình kênh sẽ ảnh hưởng đến kích thước và chất lượng của âm thanh ghi lại. Không có dữ liệu meta này là liên kết với các tập tin ghi lại.
Vì lý do riêng tư, Android yêu cầu sự cho phép record_audio được bao gồm trong biểu hiện của bạn:

Khi Audio Record đối tượng của bạn được khởi tạo, chạy các phương pháp startRecording để bắt đầu ghi âm không đồng bộ, và sử dụng các phương pháp đọc để thêm dữ liệu audio thô thành các bộ đệm ghi:
audioRecord.startRecording (); while (isRecording) {
[... cư đệm ...]
int bufferReadResult = audioRecord.read (buffer, 0, BUFFERSIZE);
}
Liệt 15-18 ghi lại âm thanh thô từ một micro vào một tập tin được lưu trữ trên một thẻ SD. Phần tiếp theo sẽ cho bạn thấy làm thế nào để sử dụng Bản nhạc âm thanh để chơi âm thanh này.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: