Using PIP Python Package
iApp Technology just released a PIP Python Package on ASR.
For easing the python development using iApp AI API service, we have released the iapp_ai python pip package. It is the api client library for iApp AI API service for python.

Installation

1
$ pip install iapp_ai
Copied!
Note: It can be either pip or pip3 depend on your environment.

Calling ASR API

1
# ASR API required an audio file path
2
api.thai_asr_api('iapp_ai/media/data.wav').json()
Copied!

Example Usages

1
import iapp_ai
2
3
4
# You can request API key at https://ai.iapp.co.th
5
apikey = 'XXXXX_Your_API_Key_XXXXX'
6
7
api = iapp_ai.api(apikey)
8
9
# ASR API required an audio file path
10
result = api.thai_asr_api('iapp_ai/media/data.wav').json()
11
print(result)
12
13
# {
14
# 'text': 'กรรแณะกรรมาตรีการที่รีปร้ำกาบอรสชันแนล'
15
# }
Copied!

Full Example in Google Colabratory

Google Colaboratory
Full Example of iApp AI API in Google Colaboratory
Copy link
Contents