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.


$ pip install iapp_ai

Note: It can be either pip or pip3 depend on your environment.

Calling ASR API

# ASR API required an audio file path

Example Usages

import iapp_ai

# You can request API key at
apikey = 'XXXXX_Your_API_Key_XXXXX' 

api = iapp_ai.api(apikey)

# ASR API required an audio file path
result = api.thai_asr_api('iapp_ai/media/2ppl.wav').json()

# [{'speaker': 'SPEAKER_01', 'speech': [{'confidence': 0.9532431960105896, 'transcript': 'สวัสดีค่ะฉันเสียงผู้ใหญ่ค่ะ'}], 'start_second': 1.2234375000000002, 'stop_second': 3.8728125}, {'speaker': 'SPEAKER_00', 'speech': [{'confidence': 0.9589725732803345, 'transcript': 'สวัสดีครับผมเสียงผู้ใหญ่ผู้ชายครับ'}], 'start_second': 5.0878125, 'stop_second': 8.2265625}]

Full Example in Google Colabratory

Last updated