Demo Project for HMS Audio Transcription
If you're a beginner, this part might look a bit complicated, but don't worry, each step is very simple and clear. Let's start to:
-
Configure your Android Project and Integrate AppGallery resources. Follow the official guides of HMS: https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-get-started
-
Enable ML Kit Services for your app at Step-6 https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#0
-
Add dependency into your build.gradle (app)
dependencies{
// other dependencies
implementation 'com.huawei.hms:ml-computer-voice-aft:2.1.0.300'
implementation 'com.huawei.hms:ml-computer-voice-realtimetranscription:2.1.0.300'
}
- Sync gradle with your project.
Engine | Max File Duration | Max File Size |
---|---|---|
Short | Up to 1 minute | Less than 4 MB after Base64 encoding |
Long | Up to 5 Hours | 300 MB |
Audio File Format and Encoding Format |
---|
WAV (corresponding to PCM) |
M4A (corresponding to AAC) |
AMR (corresponding to AMR) |
Languages |
---|
English |
Mandarin Chinese |
Location | Chinese | English | French |
---|---|---|---|
Europe | √ | √ | √ |
Russia | - | √ | - |
Asia | √ | √ | √ |
Africa | √ | √ | √ |
Latin America | √ | √ | √ |
China | √ | √ | - |
Engine | Max Duration |
---|---|
Real Time | 5 Hours |
Supported Devices |
---|
Huawei Phones |
Honor Phones |
HMS mostly provides monthly free quota for cloud services, or even most services are fully free in trial period. Audio Transcription service is priced by February 11, 2021 with pay-as-you-go model.
Free Quota | Price |
---|---|
60 minutes/month | EUR0.003/15 seconds |