{ | |
"type": "extension", | |
"name": "transcribe_asr_python", | |
"version": "0.1.0", | |
"dependencies": [ | |
{ | |
"type": "system", | |
"name": "ten_runtime_python", | |
"version": "0.8" | |
} | |
], | |
"api": { | |
"property": { | |
"region": { | |
"type": "string" | |
}, | |
"access_key": { | |
"type": "string" | |
}, | |
"secret_key": { | |
"type": "string" | |
}, | |
"sample_rate": { | |
"type": "string" | |
}, | |
"lang_code": { | |
"type": "string" | |
} | |
}, | |
"audio_frame_in": [ | |
{ | |
"name": "pcm_frame", | |
"property": {} | |
} | |
], | |
"cmd_in": [ | |
{ | |
"name": "on_user_joined", | |
"property": {} | |
}, | |
{ | |
"name": "on_user_left", | |
"property": {} | |
}, | |
{ | |
"name": "on_connection_failure", | |
"property": {} | |
} | |
], | |
"data_out": [ | |
{ | |
"name": "text_data", | |
"property": { | |
"time": { | |
"type": "int64" | |
}, | |
"duration_ms": { | |
"type": "int64" | |
}, | |
"language": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "string" | |
}, | |
"is_final": { | |
"type": "bool" | |
}, | |
"stream_id": { | |
"type": "uint32" | |
}, | |
"end_of_segment": { | |
"type": "bool" | |
} | |
} | |
} | |
] | |
} | |
} |