首页 \ 问答 \ 适用于iOS的Google云端硬盘SDK示例无效(Google Drive SDK Sample for iOS Not Working)

适用于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
更新时间:2023-01-06 13:01

最满意答案

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).
  • 不,不是现在。 需要增强请求 ,以便性别可以包含在语音功能集中 ,以便: 语音[名称:en-AU-afi-network,locale:en_AU,quality:500,latency:400,requiresNetwork:true,features:[networkTimeoutMs,networkRetriesCount, male ]] 我已经向文本到语音提供商发送了关于包含此内容的电子邮件 - 因为等待谷歌的增强可能需要几年的时间。 同时你所能做的就是通过引用性别对引擎名称进行硬编码。 这是耗时 ...
  • AVSpeechSynthesisVoice类中的speechVoices方法返回当前设备上当前所有可用的声音。 对于当前语言环境的语言,设备至少配有一个,通常两个(一个男性,一个女性)高品质语音(例如,美国iPhone将具有高质量的男性en_US语音和高质量的女性en_US语音)。 他们还附带大量低质量的替代方言和国际声音(例如,在美国的iPhone上,en_GB将存在但质量较差 - 在GB iPhone上则相反)。 用户可以选择下载更多高质量的声音 ,但否则TTS不需要互联网连接。 The method ...
  • 没有区别,您的所有应用程序队列都将被刷新。 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 ...
  • 我做了一些研究, 这个网站提供了一个基于(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 ...
  • 这不起作用的原因很可能是因为translate.google.com限制某些类型的请求以防止服务过载。 例如,如果您使用没有“-U Mozilla”用户代理选项的wget,您将获得HTTP 404,因为该服务限制来自wget的默认用户代理字符串的响应。 在您的情况下,看起来正在发生的事情是,如果请求中包含HTTP Referrer,则translate.google.com将返回HTTP 404。 从命令行运行wget时,没有引用者。 当您在网页中使用音频标签时,在请求翻译时会提供HTTP Referrer ...
  • 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 ...
  • 为文本到语音引擎创建新语音是一个复杂的过程。 这不仅仅是让一个声音艺术家录制音频,而只是创造一个声音。 这有很多工作要做(将音频分成音素;构建语音数据;构建字典;使韵律和音频加入/合成规则正确)。 对于像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?

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)