VoicePlay | Android仿支付宝金额语音播报
kandi X-RAY | VoicePlay Summary
kandi X-RAY | VoicePlay Summary
VoicePlay is a Java library. VoicePlay has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.
最近有个需求要优化金额到账音效,理了下实现思路: 1、根据数字转换金额 2、根据金额匹配音频文件 3、音频文件合成 4、按队列播放音频文件. 解决方案: 想到支付宝实现的功能就不错,就反编译支付宝APK看看实现思路有没有更优的写法,除了第四条有点差别外基本都差不多。 第一二条:通过map预设好文字对应的音频文件,然后根据传入的金额匹配音频文件就好了。 第三条:音频合成之前没有处理过本以为会麻烦点,看过支付宝的写法只要使用合并流就可以了(前提是音频头一样)。 第四条:一开始的想法是用集合按顺序取出播放,后来因为合并音频流是比较耗时的操作需要交给线程池处理。 线程池可以通过newSingleThreadExecutor创建单线程池,线程池里任务的执行顺序是按照任务的提交顺序执行的, 所以只要控制线程池里线程的生命周期就可以按队列播放音频文件了。.
最近有个需求要优化金额到账音效,理了下实现思路: 1、根据数字转换金额 2、根据金额匹配音频文件 3、音频文件合成 4、按队列播放音频文件. 解决方案: 想到支付宝实现的功能就不错,就反编译支付宝APK看看实现思路有没有更优的写法,除了第四条有点差别外基本都差不多。 第一二条:通过map预设好文字对应的音频文件,然后根据传入的金额匹配音频文件就好了。 第三条:音频合成之前没有处理过本以为会麻烦点,看过支付宝的写法只要使用合并流就可以了(前提是音频头一样)。 第四条:一开始的想法是用集合按顺序取出播放,后来因为合并音频流是比较耗时的操作需要交给线程池处理。 线程池可以通过newSingleThreadExecutor创建单线程池,线程池里任务的执行顺序是按照任务的提交顺序执行的, 所以只要控制线程池里线程的生命周期就可以按队列播放音频文件了。.
Support
Quality
Security
License
Reuse
Support
VoicePlay has a low active ecosystem.
It has 22 star(s) with 7 fork(s). There are 2 watchers for this library.
It had no major release in the last 6 months.
There are 1 open issues and 0 have been closed. On average issues are closed in 292 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of VoicePlay is current.
Quality
VoicePlay has no bugs reported.
Security
VoicePlay has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
VoicePlay does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
VoicePlay releases are not available. You will need to build from source code and install.
Build file is available. You can build the component from source.
Top functions reviewed by kandi - BETA
kandi has reviewed VoicePlay and discovered the below as its top functions. This is intended to give you an instant insight into VoicePlay implemented functionality, and help decide if they suit your requirements.
- Runs the audio stream
- Converts number to money
- Get audio file
- Transforms a string to a number
- Determines disk cache dir
- Convert a string to money unit
- On click on button
- Returns the singleton instance
- Start play a sound
- Release the current player s player
- Release the media player
- Read tts file
- Initializes the listener
Get all kandi verified functions for this library.
VoicePlay Key Features
No Key Features are available at this moment for VoicePlay.
VoicePlay Examples and Code Snippets
No Code Snippets are available at this moment for VoicePlay.
Community Discussions
Trending Discussions on VoicePlay
QUESTION
duplicate view instance issue with recycled/convertView row in listview
Asked 2018-Nov-08 at 13:59
MyAdapter:
ANSWER
Answered 2018-Nov-08 at 13:59The problem solved. i used ScrollView
instead of ListView
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install VoicePlay
You can download it from GitHub.
You can use VoicePlay like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the VoicePlay component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
You can use VoicePlay like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the VoicePlay component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page