适用于iOS的Google云端硬盘SDK示例无效(Google Drive SDK Sample for iOS Not Working)
我正在尝试按照以下说明操作: https : //developers.google.com/drive/quickstart-ios 。
现在我第一次尝试这个,我得到了这个问题上提到的错误,但能够解决它。 示例应用程序现在可以运行,但在将任何内容上传到Google云端硬盘之前会崩溃。 它在加载屏幕上停止并出现以下错误。
由于未捕获的异常'NSInternalInconsistencyException'终止应用程序,原因:'意外的响应数据(上传到错误的URL?)'
“上传到错误的网址”是什么意思? 我设置错误或他们的代码不能正常工作吗?
I'm attempting to follow these instructions: https://developers.google.com/drive/quickstart-ios.
Now the first time I tried this, I got the error mentioned on this question, but was able to solve it. The sample app now runs, however it crashes before uploading anything to Google Drive. It stops on the loading screen and gives the following error.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unexpected response data (uploading to the wrong URL?)'
What does it mean by "uploading to the wrong URL?" Am I setting something up wrong or is their code not working correctly?
原文:https://stackoverflow.com/questions/17797902
最满意答案
AVSpeechSynthesisVoice类中的speechVoices方法返回当前设备上当前所有可用的声音。
对于当前语言环境的语言,设备至少配有一个,通常两个(一个男性,一个女性)高品质语音(例如,美国iPhone将具有高质量的男性en_US语音和高质量的女性en_US语音)。 他们还附带大量低质量的替代方言和国际声音(例如,在美国的iPhone上,en_GB将存在但质量较差 - 在GB iPhone上则相反)。
用户可以选择下载更多高质量的声音 ,但否则TTS不需要互联网连接。
The method speechVoices in the class AVSpeechSynthesisVoice returns all the currently available voices on the current device.
Devices ship with at least one, often two (one male, one female) high quality voices for the current locale's language (e.g. a US iPhone will have a high quality male en_US voice and a high quality female en_US voice). They also ship with a larger number of lower quality alternate dialect and international voices (e.g. on that US iPhone, en_GB will be present but lower quality - on a GB iPhone it would be the other way around).
Users can choose to download additional high quality voices, but otherwise an internet connection is not required for TTS.
相关问答
更多-
是的你可以。 通常,您可以在ISpObjectWithToken实现下执行此操作(如“ TTS引擎供应商移植指南”中所述 )。 Yes, you can. Typically you would do this underneath your ISpObjectWithToken implementation (as described in the TTS Engine Vendor Porting Guide).
-
Android TTS男声(Android TTS male voices)[2023-05-30]
不,不是现在。 需要增强请求 ,以便性别可以包含在语音功能集中 ,以便: 语音[名称:en-AU-afi-network,locale:en_AU,quality:500,latency:400,requiresNetwork:true,features:[networkTimeoutMs,networkRetriesCount, male ]] 我已经向文本到语音提供商发送了关于包含此内容的电子邮件 - 因为等待谷歌的增强可能需要几年的时间。 同时你所能做的就是通过引用性别对引擎名称进行硬编码。 这是耗时 ... -
TTS Swift中的声音(Voice in TTS Swift)[2022-02-10]
AVSpeechSynthesisVoice类中的speechVoices方法返回当前设备上当前所有可用的声音。 对于当前语言环境的语言,设备至少配有一个,通常两个(一个男性,一个女性)高品质语音(例如,美国iPhone将具有高质量的男性en_US语音和高质量的女性en_US语音)。 他们还附带大量低质量的替代方言和国际声音(例如,在美国的iPhone上,en_GB将存在但质量较差 - 在GB iPhone上则相反)。 用户可以选择下载更多高质量的声音 ,但否则TTS不需要互联网连接。 The method ... -
Android tts flush(Android tts flush)[2022-04-24]
没有区别,您的所有应用程序队列都将被刷新。 HashMap参数用于传递语音引擎的额外信息。 在您的情况下,如果传递null onUtteranceCompleted将不会被调用。 请参阅文档http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#QUEUE_FLUSH There is no difference, all your application queue will be flushed. The H ... -
可以为TTS语音添加自己的语音(Can add own voice to TTS voice)[2023-07-17]
我做了一些研究, 这个网站提供了一个基于(sapi兼容)Festival TTS引擎构建自己的TTS语音的工具包。 我无法对语音质量发表任何评论。 Microsoft TTS引擎不支持用户生成的语音构造。 还有其他供应商(我似乎记得AT&T Natural Voices支持用户生成的声音),但其中大多数都非常昂贵(数万美元)。 I did a bit of research, and this site offers a toolkit to build your own TTS voice based o ... -
是的,您可以创建一个TTS引擎,它可以作为设备的默认引擎。 您必须添加明显的附加内容以及必须响应的Intent,因此了解这些内容的最佳方法是查看SDK示例中的Robot Speak应用程序 从那里开始很直接。 Yes, you can create a TTS Engine which is available as the default on the device. There are manifest additions you have to add and Intents you must res ...
-
谷歌翻译TTS问题(Google Translate TTS problem)[2023-01-15]
这不起作用的原因很可能是因为translate.google.com限制某些类型的请求以防止服务过载。 例如,如果您使用没有“-U Mozilla”用户代理选项的wget,您将获得HTTP 404,因为该服务限制来自wget的默认用户代理字符串的响应。 在您的情况下,看起来正在发生的事情是,如果请求中包含HTTP Referrer,则translate.google.com将返回HTTP 404。 从命令行运行wget时,没有引用者。 当您在网页中使用音频标签时,在请求翻译时会提供HTTP Referrer ... -
TextToSpeech(TTS)(TextToSpeech (TTS))[2022-09-27]
1)使用函数setSpeechRate使语音更快 Speech rate. 1.0 is the normal speech rate, lower values slow down the speech (0.5 is half the normal speech rate), greater values accelerate it (2.0 is twice the normal speech rate). 1) Use function setSpeechRate to make voice fa ... -
创建TTS包(Creating TTS Package)[2023-03-15]
为文本到语音引擎创建新语音是一个复杂的过程。 这不仅仅是让一个声音艺术家录制音频,而只是创造一个声音。 这有很多工作要做(将音频分成音素;构建语音数据;构建字典;使韵律和音频加入/合成规则正确)。 对于像Microsoft Text-to-Speech引擎这样的语音引擎,您还面临着语音格式是专有的问题,因此您无法以该格式创建新的语音。 您还受到引擎功能的限制。 目前你最好的选择是: 切换到使用eSpeak文本到语音引擎并使用espeakedit创建自己的语音(联系开发人员以获得帮助) - 这个引擎使用一种合 ... -
看看这里分享活动和程序之间的东西与Android中更好的设计: Intent.putExtras大小限制? Have a look here to share stuff between activities and program with nicer design in android : Intent.putExtras size limit?