{"id":320703,"date":"2021-04-01T15:01:51","date_gmt":"2021-04-01T15:01:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=320703"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=320703","title":{"rendered":"\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430 \u043d\u0430 iOS"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ff\/ee9\/7d5\/7ffee97d5c56ad06afbcb3fea86bbcfc.gif\" alt=\"\u041a\u0430\u0434\u0440\u044b \u0438\u0437 \u0444\u0438\u043b\u044c\u043c\u0430 \u00ab\u0417\u0432\u0451\u0437\u0434\u043d\u044b\u0439 \u043f\u0443\u0442\u044c 4: \u0414\u043e\u0440\u043e\u0433\u0430 \u0434\u043e\u043c\u043e\u0439\u00bb\" title=\"\u041a\u0430\u0434\u0440\u044b \u0438\u0437 \u0444\u0438\u043b\u044c\u043c\u0430 \u00ab\u0417\u0432\u0451\u0437\u0434\u043d\u044b\u0439 \u043f\u0443\u0442\u044c 4: \u0414\u043e\u0440\u043e\u0433\u0430 \u0434\u043e\u043c\u043e\u0439\u00bb\" width=\"425\" height=\"246\"><figcaption>\u041a\u0430\u0434\u0440\u044b \u0438\u0437 \u0444\u0438\u043b\u044c\u043c\u0430 \u00ab\u0417\u0432\u0451\u0437\u0434\u043d\u044b\u0439 \u043f\u0443\u0442\u044c 4: \u0414\u043e\u0440\u043e\u0433\u0430 \u0434\u043e\u043c\u043e\u0439\u00bb<\/figcaption><\/figure>\n<p>\u0417\u0430&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438&nbsp;\u0437\u0432\u0443\u043a\u0430 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0432\u044b\u0440\u043e\u0441\u043b\u0430. \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0443\u0436\u0435 \u0433\u0440\u043e\u043c\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Clubhouse, \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043e\u0432 \u0421\u0431\u0435\u0440\u0430 \u0438&nbsp;\u043e\u0431\u0449\u0435\u0433\u043e \u043e\u0436\u0438\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0441\u043e&nbsp;\u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0438&nbsp;\u0438\u043d\u0432\u0435\u0441\u0442\u043e\u0440\u043e\u0432 \u043a&nbsp;\u0437\u0432\u0443\u043a\u0443 \u043d\u0430&nbsp;\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445.  <\/p>\n<p>\u0412&nbsp;\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f&nbsp;\u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430 \u043d\u0430&nbsp;\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 iOS, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044f\u0437\u044b\u043a Swift.<\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 \u0433\u043e\u043b\u043e\u0441 \u0438 \u0437\u0432\u0443\u043a?<\/h2>\n<p>\u041d\u0430&nbsp;\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0432\u0443\u043a \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438&nbsp;\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0435\u043d, \u043e\u0434\u043d\u0430\u043a\u043e \u0441&nbsp;\u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430, \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438&nbsp;\u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u043e\u043b\u044c\u0437\u0430 \u0430\u0443\u0434\u0438\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0435\u0435.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432&nbsp;<a href=\"https:\/\/www.perficient.com\/insights\/research-hub\/voice-usage-trends\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u043e\u0431&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0433\u043e\u043b\u043e\u0441\u0430 \u0437\u0430&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4&nbsp;\u0433\u043e\u0434\u0430 \u0438&nbsp;\u0432\u044b\u0432\u043e\u0434:<\/p>\n<blockquote>\n<p>The key, however, is&nbsp;the device letting the human think and speak like a&nbsp;human. Once we&nbsp;get there, this whole voice thing will become the predominant mode for input. We\u2019re likely five to&nbsp;ten years away from getting there. However, many businesses are seeing great success building their own personal assistant apps (aka Alexa Skills or&nbsp;Actions on&nbsp;Google apps) and developing a&nbsp;great deal of&nbsp;positive attention and visibility for their organizations.<\/p>\n<\/blockquote>\n<p>\u0422\u043e&nbsp;\u0435\u0441\u0442\u044c, \u0437\u0432\u0443\u043a \u0438&nbsp;\u0433\u043e\u043b\u043e\u0441 \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438\u043c\u0435\u044e\u0442 \u0448\u0430\u043d\u0441 \u0441\u0442\u0430\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0447\u0435\u0440\u0435\u0437 5-10 \u043b\u0435\u0442 \u043a\u043e\u0433\u0434\u0430 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0435 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043c\u043d\u044b\u043c\u0438 \u0438&nbsp;\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0432&nbsp;\u043e\u0431\u043b\u0430\u0441\u0442\u0438&nbsp;\u0418\u0418 \u0432&nbsp;\u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h3>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438 \u043d\u0430 iOS <\/h3>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u0441\u0440\u0435\u0434\u0438 \u0440\u0435\u0447\u0435\u0432\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0440\u0435\u0447\u0438. \u0412&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0440\u0435\u0447\u0435\u0432\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Apple \u0438&nbsp;Yandex. <\/p>\n<p>\u0412 <a href=\"https:\/\/developer.apple.com\/documentation\/speech\">Apple Speech Kit<\/a> \u0441\u0438\u043d\u0442\u0435\u0437 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u0434\u043b\u044f iOS 10 \u0438 \u0432\u044b\u0448\u0435, \u0430 \u0434\u043b\u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Speech.framework \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438 \u043d\u0430 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435, \u0430 \u0432\u043e\u0442 \u043d\u0430\u0441\u0447\u0435\u0442 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u043d\u0435 \u043c\u043e\u0433\u0443 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c.<\/p>\n<p>\u0412 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u042f\u043d\u0434\u0435\u043a\u0441 \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435&nbsp;<a href=\"https:\/\/cloud.yandex.ru\/services\/speechkit\">\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438<\/a>&nbsp;\u2014 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f <a href=\"https:\/\/github.com\/yandexmobile\/yandex-speechkit-ios\">iOS<\/a> \u0438 <a href=\"https:\/\/github.com\/yandexmobile\/yandex-speechkit-android\">Android<\/a> \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c\u0438 <a href=\"https:\/\/github.com\/yandexmobile\">\u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a>.<\/p>\n<h2>\u041f\u0438\u0448\u0435\u043c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 Hello World!<\/h2>\n<p><a class=\"anchor\" name=\"hello_world\" id=\"hello_world\"><\/a><\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 XCode \u043f\u0440\u043e\u0435\u043a\u0442, \u0438&nbsp;\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b&nbsp;\u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 SDK, \u0442\u043e&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0434\u0432\u0430 \u0442\u0430\u0440\u0433\u0435\u0442\u0430: speechkit_apple \u0438&nbsp;speechkit_yandex.<\/p>\n<p>\u0412&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Cocoapods, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432&nbsp;\u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c Podfile:<\/p>\n<details class=\"spoiler\">\n<summary>Pod file<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>target 'speechkit_apple' do end  target 'speechkit_yandex' do pod 'YandexSpeechKit', '~&gt; 3.12.2' end<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c pod install \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c:<\/p>\n<details class=\"spoiler\">\n<summary>Pod install output<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">iMac:~ dmitry$ cd \/Volumes\/Data\/work\/speechkit_tutorial\/chapter1_ios iMac:chapter1_ios dmitry$ pod install Analyzing dependencies Downloading dependencies Installing YandexSpeechKit (3.12.2) Generating Pods project YandexSpeechKit Pods-speechkit_apple Pods-speechkit_yandex Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. iMac:chapter1_ios dmitry$<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041e\u0431\u0430 \u0442\u0430\u0440\u0433\u0435\u0442\u0430 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 speechkit_demo_ios \u0438 \u0438\u043c\u0435\u0442\u044c \u0441\u0432\u043e\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 SpeechViewController:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5b8\/ec0\/d48\/5b8ec0d48e9435b5dcf7bde461d6c2dd.png\" width=\"2478\" height=\"1200\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/161\/4c3\/52e\/1614c352e7531bed609169e1ade4dd0a.png\" width=\"2478\" height=\"1204\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441&nbsp;\u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 NSMicrophoneUsageDescription, \u0430&nbsp;\u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438 NSSpeechRecognitionUsageDescription. \u042d\u0442\u0438 \u043a\u043b\u044e\u0447\u0438 \u0438&nbsp;\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a&nbsp;\u043d\u0438\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432&nbsp;Info.plist \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>Info.plist<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"json\">&lt;key&gt;NSMicrophoneUsageDescription&lt;\/key&gt;  &lt;string&gt;\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430&lt;\/string&gt;  &lt;key&gt;NSSpeechRecognitionUsageDescription&lt;\/key&gt;  &lt;string&gt;\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0447\u044c&lt;\/string&gt;<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435,&nbsp;\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f0f\/73b\/c86\/f0f73bc8663b8b7a968f7a564f58e685.png\" width=\"1646\" height=\"752\"><figcaption><\/figcaption><\/figure>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0447\u0435\u0432\u044b\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 Apple<\/h2>\n<p><a class=\"anchor\" name=\"apple_speech\" id=\"apple_speech\"><\/a><\/p>\n<p>\u0412&nbsp;\u0441\u043b\u0443\u0447\u0430\u0435 Apple \u0432&nbsp;\u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 Speech \u0438&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SFSpeechRecognizer, SFSpeechRecognitionTask \u0438&nbsp;AVSpeechSynthesizer \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0433\u043e\u043b\u043e\u0441\u0430. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ul>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>Recoginition request<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">recognitionRequest = SFSpeechAudioBufferRecognitionRequest() recognitionRequest.shouldReportPartialResults = true<\/code><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f:<\/p>\n<details class=\"spoiler\">\n<summary>Recognition task<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">recognitionTask = _speechRecognizer?.recognitionTask(with: recognitionRequest!) {    [weak self] result, error in                 var isFinal = false                  if let result = result {           isFinal = result.isFinal           self?.log(text: result.bestTranscription.formattedString)         }              if  error != nil || isFinal {           \/\/ Stop recognizing speech if there is a problem.             self?.stopRecording()             if isFinal == false, let errorMessage = error?.localizedDescription{                 self?.log(text: errorMessage)             }         }                      if isFinal == true{             self?.log(text: NSLocalizedString(\"Finish voice recognition..\", comment: \"\"))         }       }<\/code><\/pre>\n<\/div>\n<\/details>\n<\/li>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0442\u044c \u0438&nbsp;\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u0445\u0432\u0430\u0442 \u0430\u0443\u0434\u0438\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0438\u0437&nbsp;AVAudioEngine \u0432&nbsp;\u0437\u0430\u043f\u0440\u043e\u0441 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f:<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>Audio engine<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">let recordingFormat = self.audioEngine.inputNode.outputFormat(forBus: 0)        self.audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: recordingFormat) {          [weak self] (buffer: AVAudioPCMBuffer, when: AVAudioTime) in            self?.recognitionRequest?.append(buffer)       }          audioEngine.prepare()   try audioEngine.start()<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0414\u043b\u044f \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0440\u0435\u0447\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c AVSpeechSynthesizer:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u0438\u043d\u0442\u0435\u0437 \u0440\u0435\u0447\u0438 Apple Speech<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">let utterance = AVSpeechUtterance(string: text) utterance.rate = 0.5 \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0435\u0447\u0438 let  voiceIdentifier = \"com.apple.ttsbundle.Milena-premium\"  utterance.voice = AVSpeechSynthesisVoice.init(identifier: voiceIdentifier) synthesizer.speak(utterance)<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/github.com\/Dmitry-rman\/voice_assistant_ios\">\u0441\u043a\u0430\u0447\u0430\u0442\u044c&nbsp;\u0437\u0434\u0435\u0441\u044c<\/a>: chapter1_ios, \u043f\u0440\u043e\u0435\u043a\u0442 speechkit_demo_ios, \u0442\u0430\u0440\u0433\u0435\u0442 speechkit_apple.<\/p>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Yandex SpeechKit<\/h2>\n<p><a class=\"anchor\" name=\"yandex_speech\" id=\"yandex_speech\"><\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Swift, \u0442\u043e&nbsp;\u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f Yandex SpeechKit \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Bridging-header \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441&nbsp;Objective-C&nbsp;\u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Bridging-header&nbsp;\u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 *.m \u0444\u0430\u0439\u043b \u0432&nbsp;\u043d\u0443\u0436\u043d\u043e\u043c \u0442\u0430\u0440\u0433\u0435\u0442\u0435, \u0430&nbsp;\u0437\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b. \u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a&nbsp;\u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f speechkit_yandex-Bridging-Header.h, \u0432&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430&nbsp;header \u043e\u0442&nbsp;Objective-C \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Yandex:<\/p>\n<details class=\"spoiler\">\n<summary>Bridging header<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"objectivec\">#ifndef speechkit_yandex_Bridging_Header_h #define speechkit_yandex_Bridging_Header_h  #import &lt;YandexSpeechKit\/YandexSpeechKit.h&gt;  #endif<\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/245\/b7a\/295\/245b7a29591caf5c9ca6d5e91fc7e821.png\" width=\"2444\" height=\"1042\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 Swift \u043a\u043e\u0434\u0435 \u0443\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e&nbsp;\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u044d\u0442\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432\u0438\u0434\u0435 import. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 API \u043a\u043b\u044e\u0447\u0430. \u041a\u043b\u044e\u0447 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u043b\u0438\u0447\u043d\u043e\u043c <a href=\"https:\/\/console.cloud.yandex.ru\/\">\u043a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 Yandex Cloud<\/a>. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/cloud.yandex.ru\/services\/speechkit\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">YSKSpeechKit.sharedInstance().apiKey = \"YOUR API KEY\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0430\u0443\u0434\u0438\u043e\u0441\u0435\u0441\u0441\u0438\u0438 \u043d\u0435 \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c UI):<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">DispatchQueue.global(qos: .default).async {    try? YSKAudioSessionHandler.sharedInstance().activateAudioSession() }<\/code><\/pre>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u0441\u0438\u043d\u0442\u0435\u0437\u0430\u0442\u043e\u0440\u0430 \u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438:<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>Yandex SpeechKit<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">let settings = YSKOnlineVocalizerSettings(language: YSKLanguage.russian()) vocalizer = YSKOnlineVocalizer(settings: settings) vocalizer?.delegate = self vocalizer?.prepare()  let settings = YSKOnlineRecognizerSettings(language: YSKLanguage.russian(), model: YSKOnlineModel.queries()) recognizer = YSKOnlineRecognizer(settings: settings) recognizer?.delegate = self recognizer?.prepare()<\/code><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p>\u0441\u0438\u043d\u0442\u0435\u0437 \u0438\u043b\u0438 \u0441\u0442\u0430\u0440\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">vocalizer?.synthesize(\u201cHello World!\u201d, mode: .append) recognizer?.startRecording()<\/code><\/pre>\n<p>\u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 ViewController (\u0443&nbsp;\u0432\u0430\u0441 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c View Model \u0438\u043b\u0438 VIPER \u043c\u043e\u0434\u0443\u043b\u044c) \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b YSKVocalizerDelegate \u0438&nbsp;YSKRecognizerDelegate \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u0442&nbsp;\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: \u0441\u0442\u0430\u0440\u0442 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u043d\u0435\u0446 \u0437\u0430\u043f\u0438\u0441\u0438, \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u0438&nbsp;\u0442.\u0434.<\/p>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <a href=\"https:\/\/github.com\/Dmitry-rman\/voice_assistant_ios\">\u0437\u0434\u0435\u0441\u044c<\/a>: chapter1_ios, \u043f\u0440\u043e\u0435\u043a\u0442 speechkit_demo_ios, \u0442\u0430\u0440\u0433\u0435\u0442 speechkit_yandex.<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430<\/h3>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f88\/7f8\/698\/f887f8698d2bb082295354d128bc0df6.gif\" alt=\"\" title=\"\" width=\"435\" height=\"250\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u043c, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043c\u0443\u0437\u044b\u043a\u0438, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0438&nbsp;\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430&nbsp;\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u043d\u0435\u043a\u0434\u043e\u0442, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0446\u0438\u0442\u0430\u0442\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u043f\u043e\u0433\u043e\u0434\u044b.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0447\u0435\u0432\u043e\u0433\u043e SDK \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044e \u0438&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438&nbsp;\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0440\u0435\u0447\u0435\u0432\u044b\u0435 SDK:<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">internal protocol VBSpeechSynthesizerProtocol {     func sythesizeVoice(text: String, completion: ((_ error: Error?)-&gt;())?)     func pauseSpeaking()     func stopSynthesize()     var delegate: VBAudioInputDelegate? {get set} }  internal  protocol VBSpeechRecognizerProtocol{     func startRecognize(withAnchors anchors: [String])     func finishRecognize()     func cancelRecognize()     var maxRecordTime: Int? {get}     var delegate: VBSpeechRecognizerDelegate? {get set} }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432&nbsp;\u0441\u043b\u0443\u0447\u0430\u0435 Apple Speech \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f:<\/p>\n<details class=\"spoiler\">\n<summary>Apple speech synthesizer<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">extension VBAppleSpeechSynthesizer : VBSpeechSynthesizerProtocol{          func sythesizeVoice(text: String, completion: ((Error?) -&gt; ())?) {                  let utterance = AVSpeechUtterance(string: text)         utterance.rate = 0.5         utterance.voice = AVSpeechSynthesisVoice.init(identifier: self.voiceIdentifier)         _synthesizer.speak(utterance)                  \/\/TO DO: Implement audio metering here..         completion?(nil)     }          func stopSynthesize() {         _synthesizer.stopSpeaking(at: .immediate)     }          func pauseSpeaking() {         _synthesizer.pauseSpeaking(at: .immediate)     } } <\/code><\/pre>\n<p>\u0418\u0437&nbsp;\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b&nbsp;\u0442\u0430\u043a\u0436\u0435 \u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Apple Speech, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441 VBAppleSpeechRecognizer \u0432&nbsp;\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441&nbsp;\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c VBSpeechRecognizerProtocol.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0433\u043e\u043b\u043e\u0441\u0430, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 VBVoiceLevelDetector, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b VBVoiceLevelDetectorProtocol \u0438&nbsp;\u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u0430 \u0438&nbsp;\u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0444\u0440\u0430\u0437. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u044d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0443 \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0432\u0443\u043a\u0430 \u043d\u0430&nbsp;\u043e\u0441\u043d\u043e\u0432\u0435 32&nbsp;\u0430\u0443\u0434\u0438\u043e-\u0444\u0440\u0435\u0439\u043c\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u043e\u0442 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b:<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>Music protocol<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">protocol VBMusicServiceProtocol : class{          var isPlayng: Bool {get}          func disconnect()     func resume()     func pause()     func connect()     func next(play: Bool)     func prev(play: Bool)     func update()     func play(uri: String)          var onConnectedChanged: ((_ isConnected: Bool)-&gt;())? { get set }     var onFetchedArtWork: ((_ artWork: UIImage)-&gt;())? { get set }     var onStateUpdated: ((_ isPlayerPaused: Bool, _ trackName: String)-&gt;())?{ get set } }<\/code><\/pre>\n<p>\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432 VBAppleMusicPlayer.<\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043e\u0447\u0435\u043d\u044c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432&nbsp;\u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/developer.spotify.com\/documentation\/ios\/\">SpotifySDK <\/a>\u0438\u043b\u0438 <a href=\"https:\/\/mubert.com\/products\/custom-api-integration\/\">Mubert API<\/a>, \u0430&nbsp;\u0432&nbsp;\u0446\u0435\u043b\u044f\u0445 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u0430\u043c \u043d\u0435&nbsp;\u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043b\u043e\u043c\u0430\u0442\u044c \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442&nbsp;Apple Player \u0432&nbsp;\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442&nbsp;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438&nbsp;\u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0442\u0430\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 VoiceBoxManager, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b VoiceBoxManagerProtocol, \u0430&nbsp;\u0432&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u043d&nbsp;\u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441&nbsp;\u043a\u043b\u0430\u0441\u0441\u043e\u043c-\u0434\u0435\u043b\u0435\u0433\u0430\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b VoiceBoxManagerDelegate.<\/p>\n<p>\u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a\u0438\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c VoiceViewModel&nbsp;\u2014 View \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f&nbsp;UI \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 VoiceViewController, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430&nbsp;\u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438&nbsp;\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<\/div>\n<\/details>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/69f\/2f1\/8f2\/69f2f18f2f3d87c245ef953aaf151c85.png\" width=\"400\" height=\"782\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0442\u043e\u0433\u043e, VoiceBoxManager&nbsp;\u2014 \u044d\u0442\u043e \u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>Voice Box Manager<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">class VoiceBoxManager{          public static let sharedInstance = VoiceBoxManager()     let musicService: VBMusicServiceProtocol!     weak var delegate: VoiceBoxManagerDelegate?          private let _audioEngine = AVAudioEngine()     private var _speechSynthesizer: VBSpeechSynthesizerProtocol!     private let _assistantProcessors: [VBProcessingProtocol]!     private var _lastUrl: URL?     private var _speechRecognizer: VBSpeechRecognizerProtocol!          init() {                  _speechSynthesizer = VBAppleSpeechSynthesizer(engine: _audioEngine)         _speechRecognizer =  VBAppleSpeechRecognizer(engine: _audioEngine)           musicService = VBAppleMusicPlayer()           \/\/\u041d\u0430\u0431\u043e\u0440 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430         _assistantProcessors = [VBMusicProcessing(musicService: musicService),                                 VBLocalVoiceProcessing(),                                 VBHomeKitProcessing(),                                 VBNewsProcessing(),                                 VBQuotaProcessing(),                                 VBCurrencyProcessing(),\/\/\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043a\u0430\u043a \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0430                                 VBWeatherProcessing() \/\/\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043a\u0430\u043a \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0430         ]                  try? initAudio()     }  .. } <\/code><\/pre>\n<\/div>\n<\/details>\n<p>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b:<\/p>\n<details class=\"spoiler\">\n<summary>Voice Box Banager protocol<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">protocol VoiceBoxManagerProtocol {          var delegate: VoiceBoxManagerDelegate? {get set}     var userName: String? {get set}     var isLastLinkExist: Bool {get}     var speechSynthesizer: VBSpeechSynthesizerProtocol {get}     var speechSynthesizerDelegate: VBAudioInputDelegate? {get set}     var speechRecognizerDelegate: VBSpeechRecognizerDelegate? {get set}     func start()     func processUserText(text: String) }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432 _assistantProcessors \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 VBProcessingProtocol, \u0442\u043e&nbsp;\u0435\u0441\u0442\u044c \u043d\u0430\u0432\u044b\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>Processing protocol<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">typealias processingMessageHandler = (_ responseData:[String : Any]?,_ errorMesage: String?) -&gt; () protocol VBProcessingProtocol {     func processMessage(message: String, userName: String?, completion: (processingMessageHandler?))-&gt;Bool     func getResponse(with type: ResponseTypeEnum, payload: Any) -&gt; ([String : Any]) }  extension VBProcessingProtocol{     func getResponse(with type: ResponseTypeEnum, payload: Any) -&gt; ([String : Any]){         return [\"type\" : ResponseTypeEnum.message.rawValue, \"data\" : payload]     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u043a\u043b\u0430\u0441\u0441\u044b, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0432\u044b\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 VBProcessingProtocol, \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u0451\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u00abtype\u00bb&nbsp;\u2014 \u0442\u0438\u043f \u043e\u0442\u0432\u0435\u0442\u0430 \u0438&nbsp;\u00abdata\u00bb. \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0438&nbsp;\u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 API. <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043d\u0430\u0432\u044b\u043a\u0438 \u043d\u0430\u0448\u0435\u043c\u0443 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0443, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0432&nbsp;\u044d\u0442\u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u043e\u0432\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 VBProcessingProtocol. <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0440\u0430\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441 VBLocalVoiceProcessing, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0435\u0440\u0451\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437&nbsp;\u0444\u0430\u0439\u043b\u0430 Resources\/voiceProcessigPhrases.plist:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b6e\/707\/1a8\/b6e7071a8667efad4a4fa8d6a952959c.png\" width=\"1640\" height=\"494\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0432&nbsp;\u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e \u043d\u0435&nbsp;\u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435&nbsp;\u043c\u0435\u0448\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 VBAIVoiceProcessing, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b VBProcessingProtocol&nbsp;\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441\u043e&nbsp;\u0441\u0432\u043e\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0440\u0430\u0437 <a href=\"https:\/\/habr.com\/ru\/company\/sberbank\/blog\/524522\/\">\u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c GPT-3<\/a>. \u0422\u043e\u0433\u0434\u0430 \u043e\u0442\u0432\u0435\u0442\u044b \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430 \u0441\u0442\u0430\u043d\u0443\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0438&nbsp;\u0443\u043c\u043d\u0435\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0430\u0444\u043e\u0440\u0438\u0437\u043c\u043e\u0432 \u0438&nbsp;\u0446\u0438\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432&nbsp;\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 VBQuotaProcessing, \u0430&nbsp;\u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0432&nbsp;VBNewsProcessing. \u041d\u0430\u0432\u044b\u043a\u0438 \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 VBHomeKitProcessing, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432&nbsp;\u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 VBHomeKitManager \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 <a href=\"https:\/\/developer.apple.com\/homekit\/\">Apple HomeKit<\/a>.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e-\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/youtu.be\/1K_RYrZmn2c\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<h2>\u0420\u0435\u0437\u044e\u043c\u0435<\/h2>\n<p>\u0412&nbsp;\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b&nbsp;\u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430&nbsp;iOS \u0441&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0440\u0435\u0447\u0435\u0432\u044b\u0445 SDK. \u041d\u0430&nbsp;\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0440\u0435\u0447\u0435\u0432\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432&nbsp;\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445, \u043f\u0440\u0435\u0434\u044a\u044f\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043a&nbsp;\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 API \u043a\u043b\u044e\u0447\u0430 \u0438&nbsp;\u0440\u0430\u0431\u043e\u0442\u0435 \u0441&nbsp;\u0430\u0443\u0434\u0438\u043e-\u0441\u0435\u0441\u0441\u0438\u044f\u043c\u0438. \u0422\u0430\u043a\u0436\u0435&nbsp;\u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442 \u0441&nbsp;\u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0435\u0439 \u043e\u0442&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0440\u0435\u0447\u0435\u0432\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438&nbsp;\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u043d\u0430\u0432\u044b\u043a\u0438.<\/p>\n<p>\u0412 \u043a\u043e\u0434\u0435 <a href=\"https:\/\/github.com\/Dmitry-rman\/voice_assistant_ios\">\u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/a> chapter2_ios \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u0430\u043b\u044e\u0442 VBCurrencyProcessing \u0438 \u043f\u043e\u0433\u043e\u0434\u044b VBWeatherProcessing. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u043d\u043e&nbsp;\u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u044e\u0431\u044b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 API \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"http:\/\/www.cbr.ru\/development\/sxml\/\">\u0426\u0411<\/a>, <a href=\"https:\/\/openweathermap.org\/api\">openweather<\/a> \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435.  \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0432\u044b\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0444\u043e\u0440\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0430\u0432\u044b\u043a\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 pull \u0437\u0430\u043f\u0440\u043e\u0441, \u0431\u0443\u0434\u0435\u0442 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c.<\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u0430, \u0438&nbsp;\u0432\u044b&nbsp;\u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0435 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0438 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u043c\u0438\u0440 =)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/af3\/bd3\/70f\/af3bd370fe5c5296591125a5f8734a68.gif\" alt=\"\" title=\"\" width=\"640\" height=\"272\"><figcaption><\/figcaption><\/figure>\n<p>\u0416\u0434\u0443 \u0432\u0430\u0448\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0438&nbsp;\u0436\u0435\u043b\u0430\u044e \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0439 \u0432&nbsp;\u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439!<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/vsrobotics\/blog\/550002\/\"> https:\/\/habr.com\/ru\/company\/vsrobotics\/blog\/550002\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"\"><figcaption>\u041a\u0430\u0434\u0440\u044b \u0438\u0437 \u0444\u0438\u043b\u044c\u043c\u0430 \u00ab\u0417\u0432\u0451\u0437\u0434\u043d\u044b\u0439 \u043f\u0443\u0442\u044c 4: \u0414\u043e\u0440\u043e\u0433\u0430 \u0434\u043e\u043c\u043e\u0439\u00bb<\/figcaption><\/figure>\n<p>\u0417\u0430&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438&nbsp;\u0437\u0432\u0443\u043a\u0430 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0432\u044b\u0440\u043e\u0441\u043b\u0430. \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0443\u0436\u0435 \u0433\u0440\u043e\u043c\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Clubhouse, \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043e\u0432 \u0421\u0431\u0435\u0440\u0430 \u0438&nbsp;\u043e\u0431\u0449\u0435\u0433\u043e \u043e\u0436\u0438\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0441\u043e&nbsp;\u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0438&nbsp;\u0438\u043d\u0432\u0435\u0441\u0442\u043e\u0440\u043e\u0432 \u043a&nbsp;\u0437\u0432\u0443\u043a\u0443 \u043d\u0430&nbsp;\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445.  <\/p>\n<p>\u0412&nbsp;\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f&nbsp;\u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430 \u043d\u0430&nbsp;\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 iOS, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044f\u0437\u044b\u043a Swift.<\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 \u0433\u043e\u043b\u043e\u0441 \u0438 \u0437\u0432\u0443\u043a?<\/h2>\n<p>\u041d\u0430&nbsp;\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0432\u0443\u043a \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438&nbsp;\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0435\u043d, \u043e\u0434\u043d\u0430\u043a\u043e \u0441&nbsp;\u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430, \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438&nbsp;\u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u043e\u043b\u044c\u0437\u0430 \u0430\u0443\u0434\u0438\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0435\u0435.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432&nbsp;<a href=\"https:\/\/www.perficient.com\/insights\/research-hub\/voice-usage-trends\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u043e\u0431&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0433\u043e\u043b\u043e\u0441\u0430 \u0437\u0430&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4&nbsp;\u0433\u043e\u0434\u0430 \u0438&nbsp;\u0432\u044b\u0432\u043e\u0434:<\/p>\n<blockquote>\n<p>The key, however, is&nbsp;the device letting the human think and speak like a&nbsp;human. Once we&nbsp;get there, this whole voice thing will become the predominant mode for input. We\u2019re likely five to&nbsp;ten years away from getting there. However, many businesses are seeing great success building their own personal assistant apps (aka Alexa Skills or&nbsp;Actions on&nbsp;Google apps) and developing a&nbsp;great deal of&nbsp;positive attention and visibility for their organizations.<\/p>\n<\/blockquote>\n<p>\u0422\u043e&nbsp;\u0435\u0441\u0442\u044c, \u0437\u0432\u0443\u043a \u0438&nbsp;\u0433\u043e\u043b\u043e\u0441 \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438\u043c\u0435\u044e\u0442 \u0448\u0430\u043d\u0441 \u0441\u0442\u0430\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0447\u0435\u0440\u0435\u0437 5-10 \u043b\u0435\u0442 \u043a\u043e\u0433\u0434\u0430 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0435 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043c\u043d\u044b\u043c\u0438 \u0438&nbsp;\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0432&nbsp;\u043e\u0431\u043b\u0430\u0441\u0442\u0438&nbsp;\u0418\u0418 \u0432&nbsp;\u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h3>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438 \u043d\u0430 iOS <\/h3>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u0441\u0440\u0435\u0434\u0438 \u0440\u0435\u0447\u0435\u0432\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0440\u0435\u0447\u0438. \u0412&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0440\u0435\u0447\u0435\u0432\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Apple \u0438&nbsp;Yandex. <\/p>\n<p>\u0412 <a href=\"https:\/\/developer.apple.com\/documentation\/speech\">Apple Speech Kit<\/a> \u0441\u0438\u043d\u0442\u0435\u0437 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u0434\u043b\u044f iOS 10 \u0438 \u0432\u044b\u0448\u0435, \u0430 \u0434\u043b\u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Speech.framework \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438 \u043d\u0430 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435, \u0430 \u0432\u043e\u0442 \u043d\u0430\u0441\u0447\u0435\u0442 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u043d\u0435 \u043c\u043e\u0433\u0443 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c.<\/p>\n<p>\u0412 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u042f\u043d\u0434\u0435\u043a\u0441 \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435&nbsp;<a href=\"https:\/\/cloud.yandex.ru\/services\/speechkit\">\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438<\/a>&nbsp;\u2014 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f <a href=\"https:\/\/github.com\/yandexmobile\/yandex-speechkit-ios\">iOS<\/a> \u0438 <a href=\"https:\/\/github.com\/yandexmobile\/yandex-speechkit-android\">Android<\/a> \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c\u0438 <a href=\"https:\/\/github.com\/yandexmobile\">\u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a>.<\/p>\n<h2>\u041f\u0438\u0448\u0435\u043c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 Hello World!<\/h2>\n<p><a class=\"anchor\" name=\"hello_world\" id=\"hello_world\"><\/a><\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 XCode \u043f\u0440\u043e\u0435\u043a\u0442, \u0438&nbsp;\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b&nbsp;\u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 SDK, \u0442\u043e&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0434\u0432\u0430 \u0442\u0430\u0440\u0433\u0435\u0442\u0430: speechkit_apple \u0438&nbsp;speechkit_yandex.<\/p>\n<p>\u0412&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Cocoapods, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432&nbsp;\u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c Podfile:<\/p>\n<details class=\"spoiler\">\n<summary>Pod file<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>target 'speechkit_apple' do end  target 'speechkit_yandex' do pod 'YandexSpeechKit', '~&gt; 3.12.2' end<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c pod install \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c:<\/p>\n<details class=\"spoiler\">\n<summary>Pod install output<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">iMac:~ dmitry$ cd \/Volumes\/Data\/work\/speechkit_tutorial\/chapter1_ios iMac:chapter1_ios dmitry$ pod install Analyzing dependencies Downloading dependencies Installing YandexSpeechKit (3.12.2) Generating Pods project YandexSpeechKit Pods-speechkit_apple Pods-speechkit_yandex Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. iMac:chapter1_ios dmitry$<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041e\u0431\u0430 \u0442\u0430\u0440\u0433\u0435\u0442\u0430 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 speechkit_demo_ios \u0438 \u0438\u043c\u0435\u0442\u044c \u0441\u0432\u043e\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 SpeechViewController:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441&nbsp;\u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 NSMicrophoneUsageDescription, \u0430&nbsp;\u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438 NSSpeechRecognitionUsageDescription. \u042d\u0442\u0438 \u043a\u043b\u044e\u0447\u0438 \u0438&nbsp;\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a&nbsp;\u043d\u0438\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432&nbsp;Info.plist \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>Info.plist<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"json\">&lt;key&gt;NSMicrophoneUsageDescription&lt;\/key&gt;  &lt;string&gt;\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430&lt;\/string&gt;  &lt;key&gt;NSSpeechRecognitionUsageDescription&lt;\/key&gt;  &lt;string&gt;\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u0447\u044c&lt;\/string&gt;<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435,&nbsp;\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0447\u0435\u0432\u044b\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 Apple<\/h2>\n<p><a class=\"anchor\" name=\"apple_speech\" id=\"apple_speech\"><\/a><\/p>\n<p>\u0412&nbsp;\u0441\u043b\u0443\u0447\u0430\u0435 Apple \u0432&nbsp;\u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 Speech \u0438&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SFSpeechRecognizer, SFSpeechRecognitionTask \u0438&nbsp;AVSpeechSynthesizer \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0433\u043e\u043b\u043e\u0441\u0430. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ul>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>Recoginition request<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">recognitionRequest = SFSpeechAudioBufferRecognitionRequest() recognitionRequest.shouldReportPartialResults = true<\/code><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f:<\/p>\n<details class=\"spoiler\">\n<summary>Recognition task<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">recognitionTask = _speechRecognizer?.recognitionTask(with: recognitionRequest!) {    [weak self] result, error in                 var isFinal = false                  if let result = result {           isFinal = result.isFinal           self?.log(text: result.bestTranscription.formattedString)         }              if  error != nil || isFinal {           \/\/ Stop recognizing speech if there is a problem.             self?.stopRecording()             if isFinal == false, let errorMessage = error?.localizedDescription{                 self?.log(text: errorMessage)             }         }                      if isFinal == true{             self?.log(text: NSLocalizedString(\"Finish voice recognition..\", comment: \"\"))         }       }<\/code><\/pre>\n<\/div>\n<\/details>\n<\/li>\n<li>\n<p>C\u043e\u0437\u0434\u0430\u0442\u044c \u0438&nbsp;\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u0445\u0432\u0430\u0442 \u0430\u0443\u0434\u0438\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0438\u0437&nbsp;AVAudioEngine \u0432&nbsp;\u0437\u0430\u043f\u0440\u043e\u0441 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f:<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>Audio engine<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">let recordingFormat = self.audioEngine.inputNode.outputFormat(forBus: 0)        self.audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: recordingFormat) {          [weak self] (buffer: AVAudioPCMBuffer, when: AVAudioTime) in            self?.recognitionRequest?.append(buffer)       }          audioEngine.prepare()   try audioEngine.start()<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0414\u043b\u044f \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0440\u0435\u0447\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c AVSpeechSynthesizer:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u0438\u043d\u0442\u0435\u0437 \u0440\u0435\u0447\u0438 Apple Speech<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">let utterance = AVSpeechUtterance(string: text) utterance.rate = 0.5 \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0435\u0447\u0438 let  voiceIdentifier = \"com.apple.ttsbundle.Milena-premium\"  utterance.voice = AVSpeechSynthesisVoice.init(identifier: voiceIdentifier) synthesizer.speak(utterance)<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/github.com\/Dmitry-rman\/voice_assistant_ios\">\u0441\u043a\u0430\u0447\u0430\u0442\u044c&nbsp;\u0437\u0434\u0435\u0441\u044c<\/a>: chapter1_ios, \u043f\u0440\u043e\u0435\u043a\u0442 speechkit_demo_ios, \u0442\u0430\u0440\u0433\u0435\u0442 speechkit_apple.<\/p>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Yandex SpeechKit<\/h2>\n<p><a class=\"anchor\" name=\"yandex_speech\" id=\"yandex_speech\"><\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Swift, \u0442\u043e&nbsp;\u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f Yandex SpeechKit \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Bridging-header \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441&nbsp;Objective-C&nbsp;\u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Bridging-header&nbsp;\u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 *.m \u0444\u0430\u0439\u043b \u0432&nbsp;\u043d\u0443\u0436\u043d\u043e\u043c \u0442\u0430\u0440\u0433\u0435\u0442\u0435, \u0430&nbsp;\u0437\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b. \u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a&nbsp;\u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f speechkit_yandex-Bridging-Header.h, \u0432&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430&nbsp;header \u043e\u0442&nbsp;Objective-C \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Yandex:<\/p>\n<details class=\"spoiler\">\n<summary>Bridging header<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"objectivec\">#ifndef speechkit_yandex_Bridging_Header_h #define speechkit_yandex_Bridging_Header_h  #import &lt;YandexSpeechKit\/YandexSpeechKit.h&gt;  #endif<\/code><\/pre>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 Swift \u043a\u043e\u0434\u0435 \u0443\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e&nbsp;\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u044d\u0442\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432\u0438\u0434\u0435 import. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 API \u043a\u043b\u044e\u0447\u0430. \u041a\u043b\u044e\u0447 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u043b\u0438\u0447\u043d\u043e\u043c <a href=\"https:\/\/console.cloud.yandex.ru\/\">\u043a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 Yandex Cloud<\/a>. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/cloud.yandex.ru\/services\/speechkit\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">YSKSpeechKit.sharedInstance().apiKey = \"YOUR API KEY\"<\/code><\/pre>\n<ul>\n<li>\n<p>\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0430\u0443\u0434\u0438\u043e\u0441\u0435\u0441\u0441\u0438\u0438 \u043d\u0435 \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c UI):<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">DispatchQueue.global(qos: .default).async {    try? YSKAudioSessionHandler.sharedInstance().activateAudioSession() }<\/code><\/pre>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u0441\u0438\u043d\u0442\u0435\u0437\u0430\u0442\u043e\u0440\u0430 \u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438:<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>Yandex SpeechKit<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">let settings = YSKOnlineVocalizerSettings(language: YSKLanguage.russian()) vocalizer = YSKOnlineVocalizer(settings: settings) vocalizer?.delegate = self vocalizer?.prepare()  let settings = YSKOnlineRecognizerSettings(language: YSKLanguage.russian(), model: YSKOnlineModel.queries()) recognizer = YSKOnlineRecognizer(settings: settings) recognizer?.delegate = self recognizer?.prepare()<\/code><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p>\u0441\u0438\u043d\u0442\u0435\u0437 \u0438\u043b\u0438 \u0441\u0442\u0430\u0440\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">vocalizer?.synthesize(\u201cHello World!\u201d, mode: .append) recognizer?.startRecording()<\/code><\/pre>\n<p>\u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 ViewController (\u0443&nbsp;\u0432\u0430\u0441 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c View Model \u0438\u043b\u0438 VIPER \u043c\u043e\u0434\u0443\u043b\u044c) \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b YSKVocalizerDelegate \u0438&nbsp;YSKRecognizerDelegate \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u0442&nbsp;\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: \u0441\u0442\u0430\u0440\u0442 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u043d\u0435\u0446 \u0437\u0430\u043f\u0438\u0441\u0438, \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u0438&nbsp;\u0442.\u0434.<\/p>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <a href=\"https:\/\/github.com\/Dmitry-rman\/voice_assistant_ios\">\u0437\u0434\u0435\u0441\u044c<\/a>: chapter1_ios, \u043f\u0440\u043e\u0435\u043a\u0442 speechkit_demo_ios, \u0442\u0430\u0440\u0433\u0435\u0442 speechkit_yandex.<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430<\/h3>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u043c, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043c\u0443\u0437\u044b\u043a\u0438, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0438&nbsp;\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430&nbsp;\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u043d\u0435\u043a\u0434\u043e\u0442, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0446\u0438\u0442\u0430\u0442\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u043f\u043e\u0433\u043e\u0434\u044b.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0435\u0447\u0435\u0432\u043e\u0433\u043e SDK \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044e \u0438&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438&nbsp;\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0440\u0435\u0447\u0435\u0432\u044b\u0435 SDK:<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">internal protocol VBSpeechSynthesizerProtocol {     func sythesizeVoice(text: String, completion: ((_ error: Error?)-&gt;())?)     func pauseSpeaking()     func stopSynthesize()     var delegate: VBAudioInputDelegate? {get set} }  internal  protocol VBSpeechRecognizerProtocol{     func startRecognize(withAnchors anchors: [String])     func finishRecognize()     func cancelRecognize()     var maxRecordTime: Int? {get}     var delegate: VBSpeechRecognizerDelegate? {get set} }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432&nbsp;\u0441\u043b\u0443\u0447\u0430\u0435 Apple Speech \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f:<\/p>\n<details class=\"spoiler\">\n<summary>Apple speech synthesizer<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"swift\">extension VBAppleSpeechSynthesizer : VBSpeechSynthesizerProtocol{          func sythesizeVoice(text: String, completion: ((Error?) -&gt; ())?) {                  let utterance = AVSpeechUtterance(string: text)         utterance.rate = 0.5         utterance.voice = AVSpeechSynthesisVoice.init(identifier: self.voiceIdentifier)         _synthesizer.speak(utterance)                  \/\/TO DO: Implement audio metering here..         completion?(nil)     }          func stopSynthesize() {         _synthesizer.stopSpeaking(at: .immediate)     }          func pauseSpeaking() {         _synthesizer.pauseSpeaking(at: .immediate)     } } <\/code><\/pre>\n<p>\u0418\u0437&nbsp;\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b&nbsp;\u0442\u0430\u043a\u0436\u0435 \u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Apple Speech, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441 VBAppleSpeechRecognizer \u0432&nbsp;\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441&nbsp;<\/p>\n<\/div>\n<\/details>\n<p><\/br><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-320703","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/320703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320703"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/320703\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}