-
android 录音后合成wav
如何实现音频合成:
1.首先我们需要获得用户声音就需要录音类,需要同步处理数据就只能用audioRecord了
2.录制的声音是pcm即元数据,我们需要与另外一个声音文件合并,这样就必须将另外一个文件解码为pcm数据
3.获得录音与伴奏的pcm数据之后进行混合,混合算法后面再说,简单的来说就是算每位字节的平均值
4.得到混合后的音频pcm之后进行再编码,比如以最终生成wav格式为例,只需要在pcm数据前加入44字节的riff描述即可。
- 2022-01-27 09:45:02下载
- 积分:1
-
BaiduMapApiDemo
百度地图api,有各项功能的demo,详尽、具体,适合初学者探究(Baidu map api, there are various functions of the demo, detailed, specific, suitable for beginners to explore)
- 2013-10-23 14:45:55下载
- 积分:1
-
远程视频监控
【核心代码】 public interface CameraSource { static final String LOG_TAG = "camera"; /** * Open the camera source for subsequent use via calls to capture(). * * @return true if the camera source was successfully opened. */ boolean open(); /** * Close the camera source. Calling close on a closed CameraSource is * permitted but has no effect. The camera source may be reopened after * being closed. */ void close(); /** * The width of the captured image. * * @return the width of the capture in pixels */ int getWidth(); /** * The height of the captured image. * * @return the height of the capture in pixels */ int getHeight(); /** * Attempts to render the current camera view onto the supplied canvas. * The capture will be rendered into the rectangle (0,0,width,height). * Outstanding transformations on the canvas may alter this. * * @param canvas the canvas to which the captured pixel data will be written * @return true iff a frame was successfully written to the canvas */ boolean capture(Canvas canvas); boolean saveImage(String savePath, String fileName); }
- 2013-12-04下载
- 积分:1
-
wifilevel
获取WiFi信号强度,并保存在android固定文件夹中(Get the WiFi signal strength and save it in the Android fixed folder)
- 2017-08-21 08:35:13下载
- 积分:1
-
串口通信源码
串口通信源码,基于android 4.4.4源码的接口,可以进行串口收发通信,网上的android串口通信资源比较少,
希望这个资源对大家有所帮助
- 2022-10-09 16:00:03下载
- 积分:1
-
OpenWnn Android输入法源代码
OpenWnn Android输入法源代码-OpenWnn Android source code input method
- 2023-08-25 21:50:05下载
- 积分:1
-
android即时通讯软件源码
应用背景android即时通讯软件源码,包含所有第三方类库 ,直接编译即可运行!
关键技术
###1. 架构总览
###2. 模块介绍
####2.1 协议封装与任务流程
#####1) 协议与任务的封装
a. 协议有协议头(协议头因为格式相同,被抽象出来)和协议体组成,协议有两类:请求协议(request)和回复协议(response);
b. 任务(action)由请求协议、回复协议和任务回调(callback)组成;
c. callback是针对客户端主动请求协议的相应处理,分别是成功回调、超时回调和失败回调;
#####2) 消息(任务)流程
a. 由UI或SYSTEM触发一个消息的生成,随之将其投递到发送队列中,等待发送;
b. 消息发送线程会不停的从发送队列
- 2022-07-13 10:09:58下载
- 积分:1
-
MySlidingMenu
andorid左右两侧滑动菜单SlidingMenu(andorid left and right sliding menu SlidingMenu)
- 2013-08-15 10:15:31下载
- 积分:1
-
暗屏亮屏的demo
这是一个暗屏亮屏的demo,可以实现一段时间暗屏后过一段时间亮屏的功能。通过即时唤醒的方式。
- 2022-03-20 19:44:03下载
- 积分:1
-
android 读取xml文件 pull实现 附源码
在android系统 使用pull解析xml文件
- 2013-02-27下载
- 积分:1