61 Star 133 Fork 25

kyson / VoiceCurve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

声音大小显示演示项目


##预览

预览

##描述

这是一个多个模块API的使用演示项目,包括声音的大小采集、自定义曲线图、感光API的使用等

##使用说明

####XML布局文件

<com.tt.voicecurve.CurveView
        android:id="@+id/curve"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true" />

####页面中使用

        mCurveView = (CurveView) this.findViewById(R.id.curve);
        mButton = (Button) this.findViewById(R.id.button1);
        mButton.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {
                if (mIsStop) {
                    recordThread = new RecordThread(mHandler);
                    recordThread.startRecord();
                    mCurveView.clearScreen();
                    mButton.setText("停止");
                    mIsStop = false;
                } else {
                    recordThread.stopRecord();
                    mButton.setText("开始");
                    mIsStop = true;
                }
            }
        });

##更多

##License

Copyright (c) 2014 Kyson

Licensed under the Apache License, Version 2.0

# 声音大小显示演示项目 --- ##预览 ![预览][1] ##描述 这是一个多个模块API的使用演示项目,包括声音的大小采集、自定义曲线图、感光API的使用等 ##使用说明 ####XML布局文件 ``` <com.tt.voicecurve.CurveView android:id="@+id/curve" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> ``` ####页面中使用 ``` mCurveView = (CurveView) this.findViewById(R.id.curve); mButton = (Button) this.findViewById(R.id.button1); mButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { if (mIsStop) { recordThread = new RecordThread(mHandler); recordThread.startRecord(); mCurveView.clearScreen(); mButton.setText("停止"); mIsStop = false; } else { recordThread.stopRecord(); mButton.setText("开始"); mIsStop = true; } } }); ``` ##更多 - [我的个人博客](http://www.hikyson.cn) - [我的开源项目](http://git.oschina.net/cocobaby) - [我的新浪微博](http://weibo.com/1980495343/profile?rightmod=1&wvr=6&mod=personinfo) ##License Copyright (c) 2014 Kyson Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) [1]:http://kkwordpress-wordpress.stor.sinaapp.com/uploads/2014/12/tt_voice_curve_showcase.gif

简介

自定义view,根据声音绘制曲线 展开 收起
Android
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/cocobaby/VoiceCurve.git
git@gitee.com:cocobaby/VoiceCurve.git
cocobaby
VoiceCurve
VoiceCurve
master

搜索帮助