Android TTS:如果字符串长度大于4000,为什么不为Pitch,SpeechRate设置值?
先进的Thanx,
答案 0 :(得分:0)
不仅仅是投球和投注被拒绝。如果文本长度大于4000个字符,则TTS请求将被完全拒绝。
请参阅Android source的摘录中的MAX_SPEECH_ITEM_CHAR_LENGTH:
public abstract class TextToSpeechService extends Service {
private static final boolean DBG = false;
private static final String TAG = "TextToSpeechService";
private static final int MAX_SPEECH_ITEM_CHAR_LENGTH = 4000;