百度語音API使用(python實現之二)

昨天是原始PCM數據上傳,響應太慢,profiling一番,發現是curl耗時,估計是音頻數據上傳耗時python 因而改用speex壓縮編碼格式json #encoding=utf-8 import os import time import urllib2, pycurl import base64 import json TOKEN_PATH = '/home/wang/.speech.
相關文章
相關標籤/搜索