初始化提交
This commit is contained in:
9
boards/default/python_mixpy/examples/人工智能Py/03语音识别-2.py
Normal file
9
boards/default/python_mixpy/examples/人工智能Py/03语音识别-2.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import audio
|
||||
|
||||
import aip
|
||||
|
||||
|
||||
audio.audio_record("d:\\1.wav",3)
|
||||
f = open("d:\\1.wav", 'rb')
|
||||
client = aip.AipSpeech("Enter Your APP_ID", "Enter Your API_KEY", "Enter Your SECRET_KEY")
|
||||
print(client.asr(f.read(), options={})["result"][0])
|
||||
Reference in New Issue
Block a user