siri

SiriKit, How to display response for start Workout Intent?

↘锁芯ラ 提交于 2019-12-01 06:28:32
IntentHandler class: import Intents class IntentHandler: INExtension, INStartWorkoutIntentHandling { public func handle(startWorkout intent: INStartWorkoutIntent, completion: @escaping (INStartWorkoutIntentResponse) -> Void) { let userActivity = NSUserActivity(activityType: NSStringFromClass(INStartWorkoutIntent.self)) let response = INStartWorkoutIntentResponse(code: .continueInApp, userActivity: userActivity) completion(response) } //MARK: - INStartWorkoutIntentHandling func confirm(startWorkout intent: INStartWorkoutIntent, completion: @escaping (INStartWorkoutIntentResponse) -> Void) {

SiriKit, How to display response for start Workout Intent?

坚强是说给别人听的谎言 提交于 2019-12-01 04:43:49
问题 IntentHandler class: import Intents class IntentHandler: INExtension, INStartWorkoutIntentHandling { public func handle(startWorkout intent: INStartWorkoutIntent, completion: @escaping (INStartWorkoutIntentResponse) -> Void) { let userActivity = NSUserActivity(activityType: NSStringFromClass(INStartWorkoutIntent.self)) let response = INStartWorkoutIntentResponse(code: .continueInApp, userActivity: userActivity) completion(response) } //MARK: - INStartWorkoutIntentHandling func confirm

iPhone: Speech Recognition is in IOS SDK available?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 21:26:38
Does anyone knows that if "speech to text" and "text to speech" api's used in Siri are accessible in IOS 5 or IOS 6 SDK? I researched but couldn't find anything about it in documentation, so if thats not included in SDK are there any "Siri" quality libraries in market? Siri is not available in API form yet, however, any UITextField or UITextArea can be dictated to using the built-in option for speech-to-text. Check out Openears at: http://www.politepix.com/openears I've used it experimentally and it worked great. It will recognize preset vocabularies very well. There is a slight pause of 1/2

iPhone: Speech Recognition is in IOS SDK available?

帅比萌擦擦* 提交于 2019-11-28 17:31:23
问题 Does anyone knows that if "speech to text" and "text to speech" api's used in Siri are accessible in IOS 5 or IOS 6 SDK? I researched but couldn't find anything about it in documentation, so if thats not included in SDK are there any "Siri" quality libraries in market? 回答1: Siri is not available in API form yet, however, any UITextField or UITextArea can be dictated to using the built-in option for speech-to-text. 回答2: Check out Openears at: http://www.politepix.com/openears I've used it

WatchKit: Speech to text conversion in WatchKit Apps

自闭症网瘾萝莉.ら 提交于 2019-11-28 08:13:05
问题 Can any one help me with a sample code for adding Speech to Text conversion feature in Apple Watchkit apps. 回答1: Yes, it's possible. Here is the documentation: https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceController_class/index.html#//apple_ref/occ/instm/WKInterfaceController/presentTextInputControllerWithSuggestions:allowedInputMode:completion: The code look like this. You provide a suggestions array with words (or emoji too) and you set the

iOS Text To Speech Api

孤街醉人 提交于 2019-11-27 16:53:46
I can't seem to find anything on this. Are there any Siri classes or API's in iOS7 that let you do text to speech? All I am trying to do is something like the following: [siriInstance say:@"This is a test"]; And then have Siri say it from my app. It seems we should be capable of doing this, no? Seems like a trivial thing. Since iOS 7 you have a new TTS Api. In Objective C AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Some text"]; [utterance setRate:0.2f]; [synthesizer speakUtterance:utterance]

How to use Speech Recognition inside the iOS SDK? [closed]

一世执手 提交于 2019-11-27 10:31:54
I know that there is no public API for the SIRI-Services, but is there an API for simple Speech-Recognition? So if I have a textfield and the user taps onto that textfield, a keyboard with the typically microphone button appears and if he pressed it the speech get recognized and transformed into a string object? Or is this button maybe presented by default? Nishant Tyagi There are many libraries availble. You can use any of them. openears // This is the best library VocalKit (Deprecated for open ears) TTS ispeech (Not free) Hope it helps you. NOTE : if you download openears ( which contains a

Does Apple provide an API for SIRI?

牧云@^-^@ 提交于 2019-11-26 20:49:23
Is it possible that Apple does or will provide an API for Siri? It would be great if I can be sipping my coffee and say, User: Hey Siri, could you please open Angry Birds; Level 4 and throw a first bird for me. Make sure you at least hit one green pig or it's coming out of your paycheck. Siri: Yes sure, I will do that for you. Is this possible? And would you think Apple will provide this to us? Bhumit Mehta In iOS 10, Apple has announced an API for Siri called SiriKit . However, you can only do it as an app extension and only if your app implements one of the following types of services: Audio

Can Siri be invoked programmatically within my app using private APIs?

别等时光非礼了梦想. 提交于 2019-11-26 20:14:17
问题 Instead of having the user to hold the home button, I would like to programmatically launch Siri within my application. Since there are no public APIs available to accomplish this, I would like to know, if anybody has been able to programmatically launch Siri via private API and if so which private API did you use? I am not interested in any return values from Siri. All I want to do is to launch it. 回答1: The answer depends a bit on whether this is for an app that just won't go to the App

「iOS 5.1 beta 3」に「Siri」の日本語パッケージが追加されている事が判明紹介...

£可爱£侵袭症+ 提交于 2019-11-26 19:06:55
「iOS 5.1 beta 3」に「Siri」の日本語パッケージが追加されている事が判明紹介 Touch Lab - タッチ ラボ さん経由ですが、 The J Blog によると、本日デベロッパヘリリースされた「iOS 5.1 beta 3」に「Siri」の日本語パッケージが追加されている事が分かったそうです。 その日本語のパッケージは、「AddressBook」「Calendar」「Email」などの複数のplist(XMLファイル)で構成され、日本語で操作できる文例と思われる文字列含まれているようで、その一部が下記の通り。  ・メールをチェック  ・今日佐藤さんからメール来た?  ・賃貸契約に関するメールを表示?  ・その人の会社に電話  ・メールを返信する 「Siri」の日本語対応は2012年内に予定されていますが、予想しているよりも早く日本語に対応するのかもしれませんね。 ただ、必ずしも「iOS 5.1」で利用可能になるのかは分かりませんので、ご注意を。 转载于:https://www.cnblogs.com/iphone6/archive/2012/01/11/2319672.html 来源: https://blog.csdn.net/weixin_30677073/article/details/99048479