{"id":479415,"date":"2026-05-12T09:15:36","date_gmt":"2026-05-12T09:15:36","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=479415"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=479415","title":{"rendered":"\u0413\u043e\u043b\u043e\u0441 \u0432 \u0442\u0435\u043a\u0441\u0442, \u0442\u0435\u043a\u0441\u0442 \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: \u0441\u0442\u0440\u043e\u0438\u043c \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438 \u0441 Azure Speech SDK \u0438 NAudio"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e2d\/c64\/7de\/e2dc647deabed31632045fb51a9956f1.png\" alt=\"Azio-Speech.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/e2d\/c64\/7de\/e2dc647deabed31632045fb51a9956f1.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e2d\/c64\/7de\/e2dc647deabed31632045fb51a9956f1.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Azio-Speech.png<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435: \u0437\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e<\/h3>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439: \u0432\u044b \u0432\u0435\u0434\u0451\u0442\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0443 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0441 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438, \u0438 \u043a\u0442\u043e-\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u043d\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u0441\u043f\u0438\u043a\u0435\u0440\u0430\u043c \u2014 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043d\u043d\u0443\u044e, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043d\u0430 \u0438\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u0438\u0439. \u0418\u043b\u0438 \u0432\u044b \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u0443\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0434\u043b\u044f \u0441\u0442\u0430\u0442\u044c\u0438. \u0418\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 Azure Speech Services.<\/p>\n<p>\u0412\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043c\u043e\u0442\u0438\u0432\u043e\u0432 \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 <strong>AzioSpeech<\/strong> \u2014 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 Windows-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 C# \/ .NET 9, \u0441 UI \u043d\u0430 Avalonia UI, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0430\u0443\u0434\u0438\u043e \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 NAudio;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0447\u044c \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0447\u0435\u0440\u0435\u0437 Azure Cognitive Services Speech SDK;<\/p>\n<\/li>\n<li>\n<p>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c, \u043a\u0442\u043e \u0438\u0437 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0445 \u0447\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u043b (speaker diarization);<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 9 \u044f\u0437\u044b\u043a\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 <code>.txt<\/code>, <code>.json<\/code> \u0438\u043b\u0438 <code>.srt<\/code>.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h3>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0435\u043a: \u0447\u0442\u043e \u0432\u0437\u044f\u043b\u0438 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443<\/h3>\n<pre><code>.NET 9 + Avalonia 11 + NAudio + ReactiveUI + Microsoft.CognitiveServices.Speech<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>Avalonia<\/strong> \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u043e WPF \u0438\u043b\u0438 WinUI \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u043e: UI-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 Linux \u0438 macOS, \u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <strong>\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u0446\u0435\u043b\u0435\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows<\/strong>. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 \u2014 \u0437\u0430\u0445\u0432\u0430\u0442 \u0437\u0432\u0443\u043a\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0447\u0435\u0440\u0435\u0437 NAudio \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c WinMM API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 Windows.<\/p>\n<p><strong>NAudio<\/strong> \u2014 \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0441\u0430\u043c\u0430\u044f \u0437\u0440\u0435\u043b\u0430\u044f \u0430\u0443\u0434\u0438\u043e\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 .NET. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0441\u044b\u0440\u043e\u0433\u043e PCM-\u043f\u043e\u0442\u043e\u043a\u0430 \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441 <code>WaveInEvent<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0432\u0435\u0440\u0445 Windows Multimedia API (WinMM). \u042d\u0442\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 Windows-\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u2014 \u0442\u043e\u043b\u044c\u043a\u043e <code>waveInOpen<\/code> \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c. \u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <code>WaveInEvent<\/code> \u0441 \u0435\u0433\u043e WinMM-\u0431\u044d\u043a\u0435\u043d\u0434\u043e\u043c \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0433\u043e Win-only, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 Avalonia \u0432 \u0441\u0442\u0435\u043a\u0435.<\/p>\n<p><strong>ReactiveUI<\/strong> \u2014 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 MVVM-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 <code>ReactiveUI.Fody<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e <code>INotifyPropertyChanged<\/code>. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <code>[Reactive]<\/code> \u043d\u0430\u0434 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u2014 Fody \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 IL-\u043a\u043e\u0434 \u0441\u0431\u043e\u0440\u043a\u0438, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0432\u0441\u044e \u043e\u0431\u0432\u044f\u0437\u043a\u0443 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:<\/p>\n<pre><code>\/\/ TranscriptionViewModel.cs \u2014 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 ViewModel \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 INotifyPropertyChanged[Reactive] public string CurrentTranscript { get; private set; } = string.Empty;[Reactive] public string CurrentTranslation { get; private set; } = string.Empty;[Reactive] public bool IsRecording { get; set; }[Reactive] public bool EnableTranslation { get; set; }[Reactive] public string Status { get; set; } = \"Ready to record\";<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043c\u0430\u0433\u0438\u044f: \u0432 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 Fody \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0435\u0441\u044c <code>OnPropertyChanged<\/code>-\u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u0430 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0447\u0438\u0441\u0442\u044b\u0439 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434. \u041d\u0430 \u044d\u0442\u0438\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0437\u0430\u0442\u0435\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 <code>WhenAnyValue<\/code> \u2014 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e ReactiveUI \u043d\u0438\u0436\u0435.<\/p>\n<hr\/>\n<h3>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434: \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043b\u044e\u0447\u0438 Azure Speech Service<\/h3>\n<p>\u0412\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u043a\u0440\u0443\u0433 \u0434\u0432\u0443\u0445 \u0441\u0442\u0440\u043e\u043a \u2014 <strong>\u043a\u043b\u044e\u0447\u0430<\/strong> \u0438 <strong>\u0440\u0435\u0433\u0438\u043e\u043d\u0430<\/strong> Azure Speech Service. \u0411\u0435\u0437 \u043d\u0438\u0445 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u0430 \u0432\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u043d\u0438\u0436\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u044f\u0442\u0441\u044f \u0432 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e, \u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0442\u0435\u043e\u0440\u0438\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u2014 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0435\u043b\u043e, \u043f\u043e\u0442\u043e\u043c \u043a\u043e\u0434.<\/p>\n<h4>\u0428\u0430\u0433 1. \u0410\u043a\u043a\u0430\u0443\u043d\u0442 Azure<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0435\u0449\u0451 \u043d\u0435\u0442 \u2014 <a href=\"https:\/\/azure.microsoft.com\/free\/?WT.mc_id=speech\" rel=\"noopener noreferrer nofollow\">azure.microsoft.com\/free<\/a> \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441 $200 \u043a\u0440\u0435\u0434\u0438\u0442\u0430 \u043d\u0430 30 \u0434\u043d\u0435\u0439. \u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u043d\u043e \u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u043c\u0438\u0442\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/p>\n<h4>\u0428\u0430\u0433 2. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0440\u0435\u0441\u0443\u0440\u0441 Speech Service<\/h4>\n<ol>\n<li>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 <a href=\"https:\/\/portal.azure.com\" rel=\"noopener noreferrer nofollow\">portal.azure.com<\/a><\/p>\n<\/li>\n<li>\n<p>\u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u00bb \u2192 \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 Marketplace \u043f\u0438\u0448\u0435\u043c <strong>Speech<\/strong> \u2192 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 <strong>Azure services only<\/strong> \u2014 \u0431\u0435\u0437 \u043d\u0435\u0451 \u043f\u043e\u0438\u0441\u043a \u0432\u044b\u0434\u0430\u0451\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 SaaS-\u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u0430 \u043d\u0435 Microsoft-\u0440\u0435\u0441\u0443\u0440\u0441<\/p>\n<\/li>\n<\/ol>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/77a\/540\/90f\/77a54090f3e830646c1905c1b42be245.png\" alt=\"Azure_Speech.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/77a\/540\/90f\/77a54090f3e830646c1905c1b42be245.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/77a\/540\/90f\/77a54090f3e830646c1905c1b42be245.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Azure_Speech.png<\/figcaption><\/div>\n<\/figure>\n<ol start=\"3\">\n<li>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <strong>Speech<\/strong> \u043e\u0442 Microsoft (Azure Service) \u2192 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Create<\/strong><\/p>\n<\/li>\n<\/ol>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/974\/8da\/00f\/9748da00fce2e054ec84c3517cd3d088.png\" alt=\"Azure_Speech_2.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/974\/8da\/00f\/9748da00fce2e054ec84c3517cd3d088.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/974\/8da\/00f\/9748da00fce2e054ec84c3517cd3d088.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Azure_Speech_2.png<\/figcaption><\/div>\n<\/figure>\n<ol start=\"4\">\n<li>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443 <strong>Create Speech Services<\/strong>: <\/p>\n<ul>\n<li>\n<p><strong>Subscription<\/strong> \u2014 \u0432\u0430\u0448\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><strong>Resource Group<\/strong> \u2014 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0438\u043b\u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e<\/p>\n<\/li>\n<li>\n<p><strong>Region<\/strong> \u2014 \u0432\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0440\u0435\u0433\u0438\u043e\u043d (<code>westeurope<\/code>, <code>eastus<\/code>, <code>eastasia<\/code> \u0438 \u0442.\u0434.). \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <code>Region<\/code> \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><strong>Name<\/strong> \u2014 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><strong>Pricing tier<\/strong> \u2014 <strong>Free F0<\/strong> \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438: 5 \u0447\u0430\u0441\u043e\u0432 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 5 \u0447\u0430\u0441\u043e\u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0440\u0435\u0447\u0438 \u0432 \u043c\u0435\u0441\u044f\u0446 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. <strong>Standard S0<\/strong> \u2014 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430, \u043e\u043f\u043b\u0430\u0442\u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/57a\/586\/a7f\/57a586a7ffba039356f0d250363436f8.png\" alt=\"Azure_Speech_3.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/57a\/586\/a7f\/57a586a7ffba039356f0d250363436f8.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/57a\/586\/a7f\/57a586a7ffba039356f0d250363436f8.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Azure_Speech_3.png<\/figcaption><\/div>\n<\/figure>\n<ol start=\"5\">\n<li>\n<p>\u00abReview + create\u00bb \u2192 <strong>Create<\/strong> \u2192 \u0436\u0434\u0451\u043c \u0434\u0435\u043f\u043b\u043e\u044f (\u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b) \u2192 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Go to resource<\/strong><\/p>\n<\/li>\n<\/ol>\n<h4>\u0428\u0430\u0433 3. \u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043b\u044e\u0447 \u0438 \u0440\u0435\u0433\u0438\u043e\u043d<\/h4>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0434\u0435\u043f\u043b\u043e\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 Overview \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u043d\u0438\u0437 \u0434\u043e \u0441\u0435\u043a\u0446\u0438\u0438 <strong>Keys and endpoint<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Show Keys<\/strong> \u2192 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c <strong>KEY 1<\/strong> \u2014 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <code>Key<\/code><\/p>\n<\/li>\n<li>\n<p><strong>Location\/Region<\/strong> \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0434 \u043a\u043b\u044e\u0447\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>eastus<\/code> \u0438\u043b\u0438 <code>westeurope<\/code> \u2014 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <code>Region<\/code><\/p>\n<\/li>\n<li>\n<p><strong>Endpoint<\/strong> \u2014 \u0434\u043b\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438: <code>https:\/\/eastus.api.cognitive.microsoft.com\/<\/code><\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/8b9\/70b\/19f\/8b970b19ffb605b35381a3cbe4e51891.png\" alt=\"Azure_Speech_4.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/8b9\/70b\/19f\/8b970b19ffb605b35381a3cbe4e51891.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/8b9\/70b\/19f\/8b970b19ffb605b35381a3cbe4e51891.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Azure_Speech_4.png<\/figcaption><\/div>\n<\/figure>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/0bd\/792\/232\/0bd792232ef9a32fa95af7eba9777402.png\" alt=\"Azio_Speech_2.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/0bd\/792\/232\/0bd792232ef9a32fa95af7eba9777402.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/0bd\/792\/232\/0bd792232ef9a32fa95af7eba9777402.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Azio_Speech_2.png<\/figcaption><\/div>\n<\/figure>\n<blockquote>\n<p><strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/strong>: \u043a\u043b\u044e\u0447 \u2014 \u044d\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0443. \u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 git. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 AzioSpeech \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 DPAPI \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u2014 \u043e\u0431 \u044d\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0433\u043b\u0430\u0432\u0430 \u043d\u0438\u0436\u0435.<\/p>\n<\/blockquote>\n<h4>\u0426\u0435\u043d\u043d\u0438\u043a: \u0447\u0442\u043e \u0436\u0434\u0451\u0442 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 Free tier<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f<\/p>\n<\/th>\n<th>\n<p align=\"left\">F0 (Free)<\/p>\n<\/th>\n<th>\n<p align=\"left\">S0 (Standard)<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">5 \u0447\/\u043c\u0435\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~$1 \u0437\u0430 \u0447\u0430\u0441 \u0430\u0443\u0434\u0438\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0440\u0435\u0447\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">5 \u0447\/\u043c\u0435\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~$2.50 \u0437\u0430 \u0447\u0430\u0441 \u0430\u0443\u0434\u0438\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Speaker Diarization<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0426\u0435\u043d\u044b \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f (\u043c\u0430\u0439 2026), \u043d\u043e Azure \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u0442\u0430\u0440\u0438\u0444\u044b \u2014 \u0441\u0432\u0435\u0440\u044f\u0439\u0442\u0435\u0441\u044c \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c <a href=\"https:\/\/azure.microsoft.com\/pricing\/details\/cognitive-services\/speech-services\/\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c<\/a>.<\/p>\n<hr\/>\n<h3>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u043a\u0442\u043e \u043a\u043e\u043c\u0443 \u0433\u043e\u0432\u043e\u0440\u0438\u0442<\/h3>\n<p>\u0421\u0445\u0435\u043c\u0430:<\/p>\n<pre><code>[Microphone]     |     \u25bcAudioCaptureService (NAudio WaveInEvent)     |  event AudioCaptured(byte[])     \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510     \u25bc                          \u25bcTranscriptionService      TranslationService(PushAudioInputStream     (PushAudioInputStream \u2192 SpeechRecognizer \/      \u2192 TranslationRecognizer)   ConversationTranscriber)     |                          |     \u25bc                          \u25bcevent OnTranscriptionUpdated   event OnTranslationUpdated     |                          |     \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518                  |                  \u25bc         TranscriptionViewModel (ReactiveUI)                  |                  \u25bc             TranscriptionView (Avalonia)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0443\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430: <code>AudioCaptureService<\/code> \u2014 \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0437\u0432\u0443\u043a\u0430. <code>TranscriptionService<\/code> \u0438 <code>TranslationService<\/code> <strong>\u043e\u0431\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0435\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <\/strong><code><strong>AudioCaptured<\/strong><\/code> \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0431\u0430\u0439\u0442\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>\/\/ TranscriptionService \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438_audioCapture.AudioCaptured += OnAudioCaptured;\/\/ TranslationService \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430_audioCaptureService.AudioCaptured += OnAudioCaptured;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a <code>OnAudioCaptured<\/code> \u0438 \u043f\u0438\u0448\u0435\u0442 \u0431\u0430\u0439\u0442\u044b \u0432 \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <code>PushAudioInputStream<\/code>. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 \u043d\u0435\u0442 \u2014 \u043e\u043d\u0438 \u043e\u0431\u0449\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code>AudioCaptureService<\/code>.<\/p>\n<p>\u0412\u0430\u0436\u043d\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c: <code>AudioCapturedEventArgs<\/code> \u043e\u0442\u0434\u0430\u0451\u0442 <strong>\u043a\u043e\u043f\u0438\u044e<\/strong> \u0431\u0443\u0444\u0435\u0440\u0430, \u0430 \u043d\u0435 \u0441\u0441\u044b\u043b\u043a\u0443:<\/p>\n<pre><code>public byte[] GetAudioDataArray(){    var copy = new byte[_audioData.Length];    Array.Copy(_audioData, copy, _audioData.Length);    return copy;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>NAudio \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0431\u0443\u0444\u0435\u0440 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0435 <code>DataAvailable<\/code>. \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0443, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u043e\u0433 \u0431\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0443\u0436\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u2014 \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c.<\/p>\n<hr\/>\n<h3>NAudio: \u0437\u0430\u0445\u0432\u0430\u0442 \u0437\u0432\u0443\u043a\u0430 \u043a\u0430\u043a \u043f\u043e\u0442\u043e\u043a \u0431\u0430\u0439\u0442<\/h3>\n<p>NAudio \u2014 \u0434\u0435-\u0444\u0430\u043a\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0443\u0434\u0438\u043e \u0432 .NET. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 <code>WaveInEvent<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u043e\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <code>DataAvailable<\/code>.<\/p>\n<pre><code>_waveIn = new WaveInEvent{    WaveFormat = new WaveFormat(settings.SampleRate, settings.BitsPerSample, settings.Channels),    BufferMilliseconds = 50  \/\/ AudioConstants.BufferMilliseconds};_waveIn.DataAvailable += WaveIn_DataAvailable;_waveIn.StartRecording();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0440\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0434\u043b\u044f Azure Speech SDK:<\/p>\n<ul>\n<li>\n<p><strong>Sample Rate<\/strong>: 16000 \u0413\u0446 \u2014 <strong>\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0435<\/strong> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 SDK \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438 8000 \u0413\u0446, \u0438 24000, \u0438 48000 \u0413\u0446, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u043c\u0435\u043d\u043d\u043e 16k \u2014 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0430\u043b\u0430\u043d\u0441 \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u0431\u044a\u0451\u043c\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041c\u043e\u0434\u0435\u043b\u0438 Speech Service \u043e\u0431\u0443\u0447\u0435\u043d\u044b \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 16 kHz-\u0430\u0443\u0434\u0438\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0440\u0443\u0433\u0438\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u0430\u0434\u0443\u0442 \u043b\u0438\u0431\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0443\u044e \u043f\u043e\u043b\u043e\u0441\u0443 (48k), \u043b\u0438\u0431\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u0443\u044e \u043f\u043e\u0442\u0435\u0440\u044e \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (8k \u0432\u043d\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430).<\/p>\n<\/li>\n<li>\n<p><strong>Bits Per Sample<\/strong>: 16-bit PCM \u2014 <strong>\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u043b\u044f raw PCM \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433\u0430<\/strong> \u0447\u0435\u0440\u0435\u0437 <code>PushAudioInputStream<\/code>. Azure Speech SDK \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 32-bit float (<code>IeeeFloat<\/code> WaveFormat): \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435. (SDK \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u0436\u0430\u0442\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u2014 MP3, FLAC, Opus \u2014 \u0447\u0435\u0440\u0435\u0437 <code>AudioStreamFormat.GetCompressedFormat()<\/code>, \u043d\u043e \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c, \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u044b\u0439 \u043a \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043d\u043e\u043c\u0443 \u0437\u0430\u0445\u0432\u0430\u0442\u0443.)<\/p>\n<\/li>\n<li>\n<p><strong>Channels<\/strong>: \u0441\u0442\u0440\u043e\u0433\u043e 1 (\u043c\u043e\u043d\u043e) \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430. Azure Speech SDK \u0432 \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u043c\u043e\u043d\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a. \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u0442\u0435\u0440\u0435\u043e-\u043f\u043e\u0442\u043e\u043a\u0430 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c: SDK \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0438\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0432 \u043c\u043e\u043d\u043e \u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438, \u0430 \u043d\u0435 \u043d\u0430\u0434\u0435\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u00ab\u0430\u0432\u043e\u0441\u044c \u043f\u0440\u043e\u0433\u043b\u043e\u0442\u0438\u0442\u00bb. (\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: <code>ConversationTranscriber<\/code> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 multi-channel audio \u0434\u043e 8 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441 \u0434\u0438\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u043a\u0430\u043d\u0430\u043b\u0430\u043c, \u043d\u043e \u044d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043c\u043d\u043e\u0433\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0430 \u043d\u0435 \u0436\u0438\u0432\u043e\u0433\u043e \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430.)<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a <code>DataAvailable<\/code>:<\/p>\n<pre><code>private void WaveIn_DataAvailable(object? sender, WaveInEventArgs e){    var audioData = new byte[e.BytesRecorded];    Array.Copy(e.Buffer, audioData, e.BytesRecorded);    Interlocked.Add(ref _totalBytesProcessed, e.BytesRecorded);    AudioCaptured?.Invoke(this, new AudioCapturedEventArgs(audioData));}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>e.BytesRecorded<\/code> \u043d\u0435 \u0440\u0430\u0432\u043d\u043e <code>e.Buffer.Length<\/code> \u2014 \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0445\u0432\u043e\u0441\u0442 \u0441\u0442\u0430\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u043e \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e <code>BufferMilliseconds = 50<\/code>: \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10 \u043c\u0441), \u0431\u0443\u0434\u0435\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u043f\u043e\u0442\u043e\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 (500+ \u043c\u0441) \u2014 Azure \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u00ab\u0436\u0435\u0432\u0430\u0442\u044c\u00bb \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0440\u0430\u0437. 50 \u043c\u0441 \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<hr\/>\n<h3>\u041c\u043e\u0441\u0442 \u043c\u0435\u0436\u0434\u0443 NAudio \u0438 Azure: PushAudioInputStream<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0435\u0439 \u0432\u0441\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u2014 \u043a\u043b\u0430\u0441\u0441 <code>PushAudioInputStream<\/code>. \u042d\u0442\u043e \u0431\u0443\u0444\u0435\u0440, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0438\u0448\u0435\u043c PCM-\u0431\u0430\u0439\u0442\u044b \u0438\u0437 NAudio, \u0430 Azure Speech SDK \u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u0437 \u043d\u0435\u0433\u043e \u0432 \u0441\u0432\u043e\u0451\u043c \u0442\u0435\u043c\u043f\u0435.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0434\u0432\u0430 \u044d\u0442\u0430\u043f\u0430, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 <code>_audioInputStream<\/code>.<\/p>\n<h4>\u042d\u0442\u0430\u043f 1 \u2014 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438<\/h4>\n<pre><code>var audioFormat = AudioStreamFormat.GetWaveFormatPCM(    (uint)settings.SampleRate,    (byte)settings.BitsPerSample,    (byte)settings.Channels);_audioInputStream = AudioInputStream.CreatePushStream(audioFormat);var audioConfig = AudioConfig.FromStreamInput(_audioInputStream);\/\/ audioConfig \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 new SpeechRecognizer(speechConfig, audioConfig)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0431\u0430\u0439\u0442\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0443\u0441\u0442\u0443\u044e \u00ab\u0442\u0440\u0443\u0431\u0443\u00bb (<code>_audioInputStream<\/code>) \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a \u043d\u0435\u0439 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e <code>SpeechRecognizer<\/code> \u0437\u043d\u0430\u0435\u0442, \u043e\u0442\u043a\u0443\u0434\u0430 \u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0436\u0434\u0430\u0442\u044c.<\/p>\n<h4>\u042d\u0442\u0430\u043f 2 \u2014 \u043f\u043e\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0435 50 \u043c\u0441<\/h4>\n<pre><code>private void OnAudioCaptured(object? sender, AudioCapturedEventArgs e){    if (_isTranscribing &amp;&amp; _audioInputStream != null        &amp;&amp; _transcriptionCts?.Token.IsCancellationRequested != true)    {        var audioData = e.GetAudioDataArray();        _audioInputStream.Write(audioData); \/\/ \u0442\u0430 \u0436\u0435 \u0441\u0430\u043c\u0430\u044f \u0442\u0440\u0443\u0431\u0430    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>_audioInputStream<\/code> \u0437\u0434\u0435\u0441\u044c \u2014 \u044d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u043e\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435. NAudio \u043f\u043e\u0439\u043c\u0430\u043b \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0435 50 \u043c\u0441 \u0437\u0432\u0443\u043a\u0430, \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <code>AudioCaptured<\/code> \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u2014 \u043c\u044b \u043a\u043b\u0430\u0434\u0451\u043c \u0431\u0430\u0439\u0442\u044b \u0432 \u0442\u0440\u0443\u0431\u0443. <code>SpeechRecognizer<\/code> \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u0437 \u043d\u0435\u0451 \u0432 \u0441\u0432\u043e\u0451\u043c \u0442\u0435\u043c\u043f\u0435 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0431\u043b\u0430\u043a\u043e.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>[\u0421\u0442\u0430\u0440\u0442 \u0437\u0430\u043f\u0438\u0441\u0438]_audioInputStream = CreatePushStream(...)SpeechRecognizer \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a _audioInputStream \u0438 \u0436\u0434\u0451\u0442[\u041a\u0430\u0436\u0434\u044b\u0435 50 \u043c\u0441, \u043f\u043e\u043a\u0430 \u0438\u0434\u0451\u0442 \u0437\u0430\u043f\u0438\u0441\u044c]\u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d \u2192 OnAudioCaptured \u2192 _audioInputStream.Write(\u0431\u0430\u0439\u0442\u044b)                                         \u2193                               SpeechRecognizer \u0447\u0438\u0442\u0430\u0435\u0442                                         \u2193                                  Azure, \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0438\u043a\u0430\u043a\u0438\u0445 <code>MemoryStream<\/code>, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0445 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u2014 \u0431\u0430\u0439\u0442\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439.<\/p>\n<hr\/>\n<h3>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u044f: SpeechRecognizer<\/h3>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0431\u0435\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0441\u043f\u0438\u043a\u0435\u0440\u0430\u043c.<\/p>\n<pre><code>var speechConfig = SpeechConfig.FromSubscription(settings.Key, settings.Region);speechConfig.SpeechRecognitionLanguage = settings.SpeechLanguage;speechConfig.SetProperty(    PropertyId.SpeechServiceResponse_PostProcessingOption,    \"TrueText\");speechConfig.SetProfanity(    options.EnableProfanityFilter        ? ProfanityOption.Masked        : ProfanityOption.Raw);if (options.EnableWordLevelTimestamps)    speechConfig.RequestWordLevelTimestamps();_recognizer = new SpeechRecognizer(speechConfig, audioConfig);_recognizer.Recognizing += OnRecognizing;   \/\/ \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b_recognizer.Recognized  += OnRecognized;    \/\/ \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442_recognizer.Canceled    += OnCanceled;await _recognizer.StartContinuousRecognitionAsync();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 <code>PostProcessingOption = \"TrueText\"<\/code> \u2014 \u044d\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430: \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u043a\u0438 \u043f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f, \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u043b\u043e\u0432\u0430-\u043f\u0430\u0440\u0430\u0437\u0438\u0442\u044b, \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u0430. \u0411\u0435\u0437 \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0441\u0442\u0435\u043d\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0443\u0434\u0430.<\/p>\n<p>\u0414\u0432\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u2014 <code>Recognizing<\/code> \u0438 <code>Recognized<\/code> \u2014 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><code>Recognizing<\/code> \u2014 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435, \u00ab\u0436\u0438\u0432\u043e\u0435\u00bb \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430.<\/p>\n<\/li>\n<li>\n<p><code>Recognized<\/code> \u2014 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u0430\u0443\u0437\u044b \u0432 \u0440\u0435\u0447\u0438. \u0415\u0433\u043e \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/p>\n<\/li>\n<\/ul>\n<pre><code>private void OnRecognized(object? sender, SpeechRecognitionEventArgs e){    if (e.Result.Reason == ResultReason.RecognizedSpeech        &amp;&amp; !string.IsNullOrWhiteSpace(e.Result.Text))    {        var segment = new TranscriptionSegment        {            Text      = e.Result.Text,            Timestamp = DateTime.Now,            Duration  = e.Result.Duration,        };        _transcriptionDocument.Segments.Add(segment);        OnTranscriptionUpdated?.Invoke(this, new TranscriptionSegmentEventArgs(segment));    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<hr\/>\n<h3>\u0414\u0438\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043f\u0438\u043a\u0435\u0440\u043e\u0432: ConversationTranscriber<\/h3>\n<p>\u0412\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0435\u0441\u0435\u043b\u044c\u0435. \u0425\u043e\u0442\u0438\u0442\u0435 \u0437\u043d\u0430\u0442\u044c, \u043a\u0442\u043e \u0438\u0437 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0445 \u0447\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u043b? \u041d\u0443\u0436\u0435\u043d <code>ConversationTranscriber<\/code>.<\/p>\n<pre><code>\/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u0438\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0438speechConfig.SetProperty(    PropertyId.SpeechServiceResponse_DiarizeIntermediateResults,    \"true\");_conversationTranscriber = new ConversationTranscriber(speechConfig, audioConfig);_conversationTranscriber.Transcribing += OnConversationTranscribing;_conversationTranscriber.Transcribed  += OnConversationTranscribed;_conversationTranscriber.Canceled     += OnConversationCanceled;await _conversationTranscriber.StartTranscribingAsync();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0438 <code>Transcribed<\/code>: \u0443 <code>ConversationTranscriptionEventArgs<\/code> \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0435 <code>SpeakerId<\/code>.<\/p>\n<pre><code>private void OnConversationTranscribed(object? sender, ConversationTranscriptionEventArgs e){    if (e.Result.Reason == ResultReason.RecognizedSpeech        &amp;&amp; !string.IsNullOrWhiteSpace(e.Result.Text))    {        var segment = new TranscriptionSegment        {            Text      = e.Result.Text,            Timestamp = DateTime.Now,            Duration  = e.Result.Duration,            SpeakerId = e.Result.SpeakerId   \/\/ &lt;-- \u0432\u043e\u0442 \u043e\u043d\u043e        };    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>SpeakerId<\/code> \u2014 \u043d\u0435 \u0438\u043c\u044f \u0438 \u043d\u0435 \u043d\u043e\u043c\u0435\u0440 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u0442\u043a\u0430 \u0432\u0438\u0434\u0430 <code>Guest-1<\/code>, <code>Guest-2<\/code>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0430\u043a\u0443\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0433\u043e\u043b\u043e\u0441\u0430. \u041f\u0440\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u043c \u0430\u0443\u0434\u0438\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c <code>Unknown<\/code>. \u042d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u2014 \u0434\u0438\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0435 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044f\u0445 \u043e\u0442 30 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<blockquote>\n<p><strong>\u0412\u0430\u0436\u043d\u043e \u0434\u043b\u044f 2025\u20132026 \u0433\u043e\u0434\u043e\u0432<\/strong>: \u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0434\u0432\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 deprecation: <code>Conversation Transcription Multichannel Diarization<\/code> (retired \u043c\u0430\u0440\u0442 2025) \u2014 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0443\u0434\u0438\u043e \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0438 <code>Speaker Recognition<\/code> (retiring \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2025) \u2014 \u0441\u0435\u0440\u0432\u0438\u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439. \u0422\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 <code>ConversationTranscriber<\/code> \u0441 \u043c\u043e\u043d\u043e-\u0430\u0443\u0434\u0438\u043e \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432 \u2014 \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f.<\/p>\n<\/blockquote>\n<hr\/>\n<h3>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438: TranslationRecognizer<\/h3>\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u0435\u0439 \u0438\u043b\u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u043d\u0435\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u043e\u0434. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>SpeechTranslationConfig<\/code>:<\/p>\n<pre><code>var config = SpeechTranslationConfig.FromSubscription(settings.Key, settings.Region);config.SpeechRecognitionLanguage = sourceLanguage;config.AddTargetLanguage(targetLanguage);_audioStream = AudioInputStream.CreatePushStream(audioFormat);var audioConfig = AudioConfig.FromStreamInput(_audioStream);_recognizer = new TranslationRecognizer(config, audioConfig);_recognizer.Recognized += (s, e) =&gt;{    if (e.Result.Reason == ResultReason.TranslatedSpeech        &amp;&amp; e.Result.Translations.ContainsKey(targetLanguage))    {        var translatedText = e.Result.Translations[targetLanguage];        OnTranslationUpdated?.Invoke(this, new TranslationResultEventArgs(new TranslationResult        {            OriginalText   = e.Result.Text,            TranslatedText = translatedText,            TargetLanguage = targetLanguage,            Timestamp      = DateTime.Now        }));    }};await _recognizer.StartContinuousRecognitionAsync();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u044e\u0430\u043d\u0441\u043e\u0432:<\/p>\n<ol>\n<li>\n<p><code>AddTargetLanguage()<\/code> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 <strong>\u043a\u043e\u0434 \u044f\u0437\u044b\u043a\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430<\/strong>, \u0430 \u043d\u0435 BCP-47 \u043a\u043e\u0434 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u044d\u0442\u043e <code>ru<\/code>, \u0434\u043b\u044f \u0438\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u043e\u0433\u043e \u2014 <code>it<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>e.Result.Translations<\/code> \u2014 \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0438 Azure Speech SDK \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 <code>AddTargetLanguage()<\/code>. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><strong>\u042f\u0437\u044b\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/strong> (<code>SpeechRecognitionLanguage<\/code>) <strong>\u0436\u0451\u0441\u0442\u043a\u043e \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d \u2014 \u0442\u043e\u043b\u044c\u043a\u043e <\/strong><code><strong>en-US<\/strong><\/code> (\u0441\u043c. <code>SupportedLanguages.SpeechRecognitionLanguages<\/code>). \u0413\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e-\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0426\u0435\u043b\u0435\u0432\u043e\u0439 \u044f\u0437\u044b\u043a<\/strong> \u2014 \u043e\u0434\u0438\u043d, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438\u0437 9 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 (ru, fr\u2026).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 <code>ResultReason<\/code> \u043d\u0435 <code>TranslatedSpeech<\/code> \u2014 \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u0431\u043b\u0430\u043a\u043e \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0442\u0438\u0448\u0438\u043d\u0430 \u0438\u043b\u0438 \u0448\u0443\u043c.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u044f\u0437\u044b\u043a\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435:<\/p>\n<pre><code>{ \"es\", \"Spanish\" }, { \"fr\", \"French\" }, { \"de\", \"German\" },{ \"it\", \"Italian\" }, { \"pt\", \"Portuguese\" }, { \"ja\", \"Japanese\" },{ \"ko\", \"Korean\" }, { \"zh-Hans\", \"Chinese (Simplified)\" }, { \"ru\", \"Russian\" }<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<hr\/>\n<h3>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 API-\u043a\u043b\u044e\u0447\u0430: DPAPI \u0432\u043c\u0435\u0441\u0442\u043e plaintext<\/h3>\n<p>\u0425\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043b\u044e\u0447 Azure \u043f\u0440\u044f\u043c\u043e \u0432 <code>settings.json<\/code> \u2014 \u0438\u0434\u0435\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u0430\u044f, \u043a\u0430\u043a \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043f\u043e\u0447\u0442\u044b \u043d\u0430 \u0441\u0442\u0438\u043a\u0435\u0440\u0435 \u043d\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0435. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0447\u0435\u0440\u0435\u0437 Windows Data Protection API (DPAPI):<\/p>\n<pre><code>\/\/ \u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 (SettingsService)if (OperatingSystem.IsWindows() &amp;&amp; !string.IsNullOrEmpty(settings.Key)){    var keyBytes = Encoding.UTF8.GetBytes(settings.Key);    var encryptedBytes = ProtectedData.Protect(        keyBytes,        _entropy,                         \/\/ \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f entropy        DataProtectionScope.CurrentUser); \/\/ \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c    settingsData.EncryptedKey = Convert.ToBase64String(encryptedBytes);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>DPAPI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u043b\u044e\u0447\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e Windows \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0412 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0442 \u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. <code>DataProtectionScope.CurrentUser<\/code> \u2014 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a.<\/p>\n<p><code>_entropy<\/code> \u2014 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0439\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 DPAPI \u043f\u0440\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u042d\u0442\u043e \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u043c\u0443 key management, \u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<hr\/>\n<h3>\u0424\u043e\u0440\u043c\u0430\u0442\u044b \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430: \u043e\u0442 plain text \u0434\u043e SRT<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f:<\/p>\n<p><strong>TXT<\/strong> \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0438\u0434\u0430:<\/p>\n<pre><code>[14:32:05] Speaker Guest-1: Hello, how are you?[14:32:07] Speaker Guest-2: Fine, thanks.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>JSON<\/strong> \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 <code>TranscriptionDocument<\/code> \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p><strong>SRT<\/strong> \u2014 \u0444\u043e\u0440\u043c\u0430\u0442 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432 \u0441 \u0442\u0430\u0439\u043c\u043a\u043e\u0434\u0430\u043c\u0438 \u0438 \u0441\u043f\u0438\u043a\u0435\u0440\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043a\u0430\u043c\u0438 (\u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435)<\/p>\n<hr\/>\n<h3>ReactiveUI \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 SDK<\/h3>\n<p>ViewModel \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 <code>Observable.FromEventPattern<\/code>. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u043c\u043e\u0449\u044c Rx: <code>ObserveOn(RxApp.MainThreadScheduler)<\/code> \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0430 UI-\u043f\u043e\u0442\u043e\u043a \u0431\u0435\u0437 \u0440\u0443\u0447\u043d\u044b\u0445 <code>Dispatcher.Invoke<\/code>.<\/p>\n<pre><code>Observable.FromEventPattern&lt;    EventHandler&lt;TranscriptionSegmentEventArgs&gt;,    TranscriptionSegmentEventArgs&gt;(        h =&gt; _transcriptionService.OnTranscriptionUpdated += h,        h =&gt; _transcriptionService.OnTranscriptionUpdated -= h)    .Select(e =&gt; e.EventArgs)    .ObserveOn(RxApp.MainThreadScheduler)    .Subscribe(        HandleTranscriptionUpdated,        ex =&gt; _logger.Log($\"Error in transcription subscription: {ex.Message}\"))    .DisposeWith(disposables);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c <code>disposables<\/code> \u2014 \u044d\u0442\u043e <code>CompositeDisposable<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 ReactiveUI \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432 \u0431\u043b\u043e\u043a <code>this.WhenActivated(disposables =&gt; { ... })<\/code>. \u0412\u0441\u0451, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0447\u0435\u0440\u0435\u0437 <code>.DisposeWith(disposables)<\/code>, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 View \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f (\u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f). \u042d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0432 ReactiveUI \u2014 \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0437\u043e\u0432\u0430 <code>.Dispose()<\/code> \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435:<\/p>\n<pre><code>\/\/ \u0422\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442this.WhenActivated(disposables =&gt;{    \/\/ \u0412\u0441\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0436\u0438\u0432\u0443\u0442 \u0440\u043e\u0432\u043d\u043e \u0441\u0442\u043e\u043b\u044c\u043a\u043e,    \/\/ \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u0430 View. \u041f\u0440\u0438 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f.    Observable.FromEventPattern(...)        .Subscribe(HandleTranscriptionUpdated)        .DisposeWith(disposables); \/\/ &lt;-- \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043e\u0442\u043f\u0438\u0441\u043a\u0438});<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code><strong>WhenAnyValue<\/strong><\/code><strong> \u2014 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432.<\/strong> \u0418\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u044f\u0437\u044c \u0441 <code>[Reactive]<\/code>-\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0449\u0443\u0442\u0438\u043c\u043e\u0439. <code>WhenAnyValue<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 <code>IObservable&lt;T&gt;<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e ViewModel. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0444\u043b\u0430\u0433\u043e\u0432 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430:<\/p>\n<pre><code>\/\/ \u041f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u044f\u0437\u044b\u043a \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044ethis.WhenAnyValue(x =&gt; x.EnableTranslation)    .Subscribe(enabled =&gt;    {        if (enabled &amp;&amp; string.IsNullOrEmpty(SelectedTargetLanguage))            SelectedTargetLanguage = \"it\";    });\/\/ \u041f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u044f\u0437\u044b\u043a\u0430 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u2014 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043a\u043e\u043b\u043e\u043d\u043a\u0438this.WhenAnyValue(x =&gt; x.SelectedTargetLanguage, x =&gt; x.EnableTranslation)    .Subscribe(tuple =&gt;    {        var (lang, enabled) = tuple;        TranslationHeader = !enabled            ? \"Translation (Disabled)\"            : $\"Translation ({SupportedLanguages.LanguageNames.GetValueOrDefault(lang, lang)})\";    });<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>WhenAnyValue<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e <code>EnableTranslation<\/code>, <code>SelectedTargetLanguage<\/code> \u0438 <code>TranslationHeader<\/code> \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u044b <code>[Reactive]<\/code> \u2014 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <code>OnPropertyChanged<\/code> \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 observable \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0441\u043f\u0443\u0441\u043a\u0430\u0435\u0442.<\/p>\n<p><code><strong>ReactiveCommand<\/strong><\/code><strong> \u0441 <\/strong><code><strong>canExecute<\/strong><\/code> \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u0442\u043e\u0439 \u0436\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0438. <code>StartCommand<\/code> \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 <code>IsRecording == false<\/code>, \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e <code>button.IsEnabled = ...<\/code>:<\/p>\n<pre><code>var canStart = this.WhenAnyValue(x =&gt; x.IsRecording, isRecording =&gt; !isRecording);StartCommand = ReactiveCommand.CreateFromTask(StartRecordingAsync, canStart);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 <code>.Skip(1)<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445:<\/p>\n<pre><code>this.WhenAnyValue(x =&gt; x.IncludeTimestamps)    .Skip(1)    .Where(_ =&gt; !IsRecording)    .Subscribe(_ =&gt; RefreshTranscriptDisplay());<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>WhenAnyValue<\/code> \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 <strong>\u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435<\/strong> \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0431\u0430\u0433, \u0430 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435: \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0445\u043e\u043b\u043e\u0441\u0442\u043e\u0439 \u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 ViewModel \u2014 <code>RefreshTranscriptDisplay()<\/code> \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0447\u0435\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c. <code>.Skip(1)<\/code> \u043e\u0442\u0441\u0435\u043a\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u0437\u043e\u0432, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.<\/p>\n<hr\/>\n<h3>\u0427\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u0432 Azure Speech SDK<\/h3>\n<p><strong>\u0420\u0435\u0431\u0440\u0435\u043d\u0434\u0438\u043d\u0433.<\/strong> \u0421\u0435\u0440\u0432\u0438\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>Azure AI Speech<\/strong>, \u043e\u0434\u043d\u0430\u043a\u043e NuGet-\u043f\u0430\u043a\u0435\u0442 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0436\u0438\u0432\u0451\u0442 \u043f\u043e\u0434 \u0441\u0442\u0430\u0440\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c <code>Microsoft.CognitiveServices.Speech<\/code>.<\/p>\n<p><strong>\u0414\u0432\u0430 deprecation.<\/strong> <strong>Conversation Transcription Multichannel Audio Diarization<\/strong> \u2014 retired <strong>28 \u043c\u0430\u0440\u0442\u0430 2025 \u0433\u043e\u0434\u0430<\/strong>. \u042d\u0442\u043e \u0431\u044b\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0443\u0434\u0438\u043e, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e mic array \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 AzioSpeech \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442. <strong>Speaker Recognition (voice profiles \/ voice signatures)<\/strong> \u2014 retiring <strong>30 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f 2025 \u0433\u043e\u0434\u0430<\/strong>. \u042d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043b\u044e\u0434\u0435\u0439 \u043f\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u043c. <strong>\u0422\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/strong> \u2014 <code>ConversationTranscriber<\/code> \u0441 \u043c\u043e\u043d\u043e-\u0430\u0443\u0434\u0438\u043e \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432 \u2014 \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043d\u0438 \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u044d\u0442\u0438\u0445 deprecation. \u041e\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 generic \u043c\u0435\u0442\u043a\u0438 <code>Guest-1<\/code>, <code>Guest-2<\/code> \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0430\u043a\u0443\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043f\u0440\u044f\u043c\u043e \u0432 \u043f\u043e\u0442\u043e\u043a\u0435, \u0438 \u044d\u0442\u043e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p><strong>Pricing.<\/strong> Free tier (F0) \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0434\u0430\u0451\u0442 5 \u0447\u0430\u0441\u043e\u0432 \u0432 \u043c\u0435\u0441\u044f\u0446 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 5 \u0447\u0430\u0441\u043e\u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0440\u0435\u0447\u0438. \u041b\u0438\u043c\u0438\u0442 \u0432 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0443 Cognitive Services Translator (\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434) \u2014 \u043d\u0435 \u043f\u0443\u0442\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0441\u043e Speech Translation. \u0412 2025 \u0433\u043e\u0434\u0443 Microsoft \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0446\u0435\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u044f\u0434\u0430 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0446\u0435\u043d\u044b \u0432 \u0441\u0432\u043e\u0451\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435 \u043f\u0435\u0440\u0435\u0434 \u0434\u0435\u043f\u043b\u043e\u0435\u043c.<\/p>\n<hr\/>\n<h3>\u0413\u0434\u0435 \u0437\u0430\u0440\u044b\u0442\u044b \u0433\u0440\u0430\u0431\u043b\u0438: \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b<\/h3>\n<p><strong>1. <\/strong><code><strong>ConfigureAwait(false)<\/strong><\/code><strong> \u2014 \u0432\u0435\u0437\u0434\u0435.<\/strong> \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u044d\u0442\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0432 Avalonia \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0435\u0434\u043b\u043e\u043a \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 async-\u043a\u043e\u0434\u0430 \u0438\u0437 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.<\/p>\n<p><strong>2. <\/strong><code><strong>SemaphoreSlim<\/strong><\/code><strong> \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0441\u0442\u0430\u0440\u0442\u0430\/\u0441\u0442\u043e\u043f\u0430.<\/strong> <code>AudioCaptureService<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <code>SemaphoreSlim(1,1)<\/code> \u0432\u043e\u043a\u0440\u0443\u0433 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u0442\u0430\u0440\u0442\u0430 \u0438 \u0441\u0442\u043e\u043f\u0430 \u0437\u0430\u0445\u0432\u0430\u0442\u0430. \u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u201cStart\u201d \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0432\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 <code>WaveInEvent<\/code> \u2014 \u0438 \u043d\u0438 \u043e\u0434\u0438\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.<\/p>\n<p>**3. <code>NAudio MmException<\/code> \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u0438\u0437 \u0442\u0440\u0451\u0445: \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d, Windows \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0441\u0442\u0438, \u0438\u043b\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0430\u0443\u0434\u0438\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p><strong>4. <\/strong><code><strong>TrueText<\/strong><\/code><strong> \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435.<\/strong> \u0415\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u043f\u043e\u0441\u0442\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433 <code>TrueText<\/code>, \u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043b\u043e\u0432\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u00abfour\u00bb \u2192 \u00ab4\u00bb). \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u043e\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0441\u0442\u0435\u043d\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c.<\/p>\n<hr\/>\n<h3>\u0418\u0442\u043e\u0433\u0438<\/h3>\n<p>\u041f\u0430\u0442\u0442\u0435\u0440\u043d NAudio WaveInEvent \u2192 PushAudioInputStream \u2192 Azure Speech SDK \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u0445\u043e\u0442\u044f \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u0441\u0442\u0440\u0438\u043c\u043e\u0432. \u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 <code>AudioCaptureService<\/code>, <code>TranscriptionService<\/code> \u0438 <code>TranslationService<\/code> \u0441 \u0448\u0438\u043d\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c: \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0444\u0430\u0439\u043b\u0430 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 <code>AudioCaptured<\/code> \u0435\u0449\u0451 \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u043c.<\/p>\n<p>\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/TheMysteriousStranger90\/AzureSpeechProject\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>, \u0430 \u0441\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u0432 MS Store: <a href=\"https:\/\/apps.microsoft.com\/detail\/9PFV5DG73198\" rel=\"noopener noreferrer nofollow\">AzioSpeech Recognition and Translation<\/a>.<\/p>\n<hr\/>\n<p><em>P.S. \u041d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043e\u0442\u0440\u044b\u0432\u043e\u043a \u0438\u0437 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430 \u041c\u0438\u0445\u0430\u0438\u043b\u0430 \u041b\u0435\u0440\u043c\u043e\u043d\u0442\u043e\u0432\u0430 \u00ab\u0424\u0430\u0442\u0430\u043b\u0438\u0441\u0442\u00bb \u0438\u0437 \u0441\u0431\u043e\u0440\u043d\u0438\u043a\u0430 \u00abRussian Short Stories from Pushkin to Buida\u00bb (\u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e Penguin Classics) \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0420\u043e\u0431\u0435\u0440\u0442\u0430 \u0427\u0430\u043d\u0434\u043b\u0435\u0440\u0430.<\/em><\/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\/articles\/1034136\/\">https:\/\/habr.com\/ru\/articles\/1034136\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azio-Speech.png\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435: \u0437\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439: \u0432\u044b \u0432\u0435\u0434\u0451\u0442\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0443 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0441 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438, \u0438 \u043a\u0442\u043e-\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u043d\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u0441\u043f\u0438\u043a\u0435\u0440\u0430\u043c \u2014 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043d\u043d\u0443\u044e, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043d\u0430 \u0438\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u0438\u0439. \u0418\u043b\u0438 \u0432\u044b \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u0443\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0434\u043b\u044f \u0441\u0442\u0430\u0442\u044c\u0438. \u0418\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 Azure Speech Services.\u0412\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043c\u043e\u0442\u0438\u0432\u043e\u0432 \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 AzioSpeech \u2014 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 Windows-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 C# \/ .NET 9, \u0441 UI \u043d\u0430 Avalonia UI, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0435\u0442:\u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0430\u0443\u0434\u0438\u043e \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 NAudio;\u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0447\u044c \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0447\u0435\u0440\u0435\u0437 Azure Cognitive Services Speech SDK;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c, \u043a\u0442\u043e \u0438\u0437 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0445 \u0447\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u043b (speaker diarization);\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 9 \u044f\u0437\u044b\u043a\u043e\u0432;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 .txt, .json \u0438\u043b\u0438 .srt.\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0435\u043a: \u0447\u0442\u043e \u0432\u0437\u044f\u043b\u0438 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443.NET 9 + Avalonia 11 + NAudio + ReactiveUI + Microsoft.CognitiveServices.SpeechAvalonia \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u043e WPF \u0438\u043b\u0438 WinUI \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u043e: UI-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 Linux \u0438 macOS, \u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u0446\u0435\u043b\u0435\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 \u2014 \u0437\u0430\u0445\u0432\u0430\u0442 \u0437\u0432\u0443\u043a\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0447\u0435\u0440\u0435\u0437 NAudio \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c WinMM API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 Windows.NAudio \u2014 \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0441\u0430\u043c\u0430\u044f \u0437\u0440\u0435\u043b\u0430\u044f \u0430\u0443\u0434\u0438\u043e\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 .NET. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0441\u044b\u0440\u043e\u0433\u043e PCM-\u043f\u043e\u0442\u043e\u043a\u0430 \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441 WaveInEvent, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0432\u0435\u0440\u0445 Windows Multimedia API (WinMM). \u042d\u0442\u043e \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 Windows-\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u2014 \u0442\u043e\u043b\u044c\u043a\u043e waveInOpen \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c. \u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 WaveInEvent \u0441 \u0435\u0433\u043e WinMM-\u0431\u044d\u043a\u0435\u043d\u0434\u043e\u043c \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0433\u043e Win-only, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 Avalonia \u0432 \u0441\u0442\u0435\u043a\u0435.ReactiveUI \u2014 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 MVVM-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 ReactiveUI.Fody \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e INotifyPropertyChanged. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 [Reactive] \u043d\u0430\u0434 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u2014 Fody \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 IL-\u043a\u043e\u0434 \u0441\u0431\u043e\u0440\u043a\u0438, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0432\u0441\u044e \u043e\u0431\u0432\u044f\u0437\u043a\u0443 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:\/\/ TranscriptionViewModel.cs \u2014 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 ViewModel \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 INotifyPropertyChanged[Reactive] public string CurrentTranscript { get; private set; } = string.Empty;[Reactive] public string CurrentTranslation { get; private set; } = string.Empty;[Reactive] public bool IsRecording { get; set; }[Reactive] public bool EnableTranslation { get; set; }[Reactive] public string Status { get; set; } = &#171;Ready to record&#187;;\u042d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043c\u0430\u0433\u0438\u044f: \u0432 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 Fody \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0435\u0441\u044c OnPropertyChanged-\u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u0430 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0447\u0438\u0441\u0442\u044b\u0439 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434. \u041d\u0430 \u044d\u0442\u0438\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0437\u0430\u0442\u0435\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 WhenAnyValue \u2014 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e ReactiveUI \u043d\u0438\u0436\u0435.\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434: \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043b\u044e\u0447\u0438 Azure Speech Service\u0412\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u043a\u0440\u0443\u0433 \u0434\u0432\u0443\u0445 \u0441\u0442\u0440\u043e\u043a \u2014 \u043a\u043b\u044e\u0447\u0430 \u0438 \u0440\u0435\u0433\u0438\u043e\u043d\u0430 Azure Speech Service. \u0411\u0435\u0437 \u043d\u0438\u0445 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u0430 \u0432\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u043d\u0438\u0436\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u044f\u0442\u0441\u044f \u0432 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e, \u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0442\u0435\u043e\u0440\u0438\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u2014 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0435\u043b\u043e, \u043f\u043e\u0442\u043e\u043c \u043a\u043e\u0434.\u0428\u0430\u0433 1. \u0410\u043a\u043a\u0430\u0443\u043d\u0442 Azure\u0415\u0441\u043b\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0435\u0449\u0451 \u043d\u0435\u0442 \u2014 azure.microsoft.com\/free \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441 $200 \u043a\u0440\u0435\u0434\u0438\u0442\u0430 \u043d\u0430 30 \u0434\u043d\u0435\u0439. \u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u043d\u043e \u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u043c\u0438\u0442\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.\u0428\u0430\u0433 2. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0440\u0435\u0441\u0443\u0440\u0441 Speech Service\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 portal.azure.com\u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u00bb \u2192 \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 Marketplace \u043f\u0438\u0448\u0435\u043c Speech \u2192 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 Azure services only \u2014 \u0431\u0435\u0437 \u043d\u0435\u0451 \u043f\u043e\u0438\u0441\u043a \u0432\u044b\u0434\u0430\u0451\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 SaaS-\u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u0430 \u043d\u0435 Microsoft-\u0440\u0435\u0441\u0443\u0440\u0441Azure_Speech.png\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c Speech \u043e\u0442 Microsoft (Azure Service) \u2192 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c CreateAzure_Speech_2.png\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443 Create Speech Services: Subscription \u2014 \u0432\u0430\u0448\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430Resource Group \u2014 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0438\u043b\u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044eRegion \u2014 \u0432\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0440\u0435\u0433\u0438\u043e\u043d (westeurope, eastus, eastasia \u0438 \u0442.\u0434.). \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 Region \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044fName \u2014 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430Pricing tier \u2014 Free F0 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438: 5 \u0447\u0430\u0441\u043e\u0432 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 5 \u0447\u0430\u0441\u043e\u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0440\u0435\u0447\u0438 \u0432 \u043c\u0435\u0441\u044f\u0446 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. Standard S0 \u2014 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430, \u043e\u043f\u043b\u0430\u0442\u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044fAzure_Speech_3.png\u00abReview + create\u00bb \u2192 Create \u2192 \u0436\u0434\u0451\u043c \u0434\u0435\u043f\u043b\u043e\u044f (\u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b) \u2192 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Go to resource\u0428\u0430\u0433 3. \u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043b\u044e\u0447 \u0438 \u0440\u0435\u0433\u0438\u043e\u043d\u041f\u043e\u0441\u043b\u0435 \u0434\u0435\u043f\u043b\u043e\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 Overview \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u043d\u0438\u0437 \u0434\u043e \u0441\u0435\u043a\u0446\u0438\u0438 Keys and endpoint:\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Show Keys \u2192 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c KEY 1 \u2014 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 KeyLocation\/Region \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0434 \u043a\u043b\u044e\u0447\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 eastus \u0438\u043b\u0438 westeurope \u2014 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 RegionEndpoint \u2014 \u0434\u043b\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438: https:\/\/eastus.api.cognitive.microsoft.com\/Azure_Speech_4.pngAzio_Speech_2.png\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u043a\u043b\u044e\u0447 \u2014 \u044d\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0443. \u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 git. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 AzioSpeech \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 DPAPI \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u2014 \u043e\u0431 \u044d\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0433\u043b\u0430\u0432\u0430 \u043d\u0438\u0436\u0435.\u0426\u0435\u043d\u043d\u0438\u043a: \u0447\u0442\u043e \u0436\u0434\u0451\u0442 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 Free tier\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044fF0 (Free)S0 (Standard)\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u04385 \u0447\/\u043c\u0435\u0441~$1 \u0437\u0430 \u0447\u0430\u0441 \u0430\u0443\u0434\u0438\u043e\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0440\u0435\u0447\u04385 \u0447\/\u043c\u0435\u0441~$2.50 \u0437\u0430 \u0447\u0430\u0441 \u0430\u0443\u0434\u0438\u043eSpeaker Diarization\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430\u0426\u0435\u043d\u044b \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f (\u043c\u0430\u0439 2026), \u043d\u043e Azure \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u0442\u0430\u0440\u0438\u0444\u044b \u2014 \u0441\u0432\u0435\u0440\u044f\u0439\u0442\u0435\u0441\u044c \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u043a\u0442\u043e \u043a\u043e\u043c\u0443 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0421\u0445\u0435\u043c\u0430:[Microphone]     |     \u25bcAudioCaptureService (NAudio WaveInEvent)     |  event AudioCaptured(byte[])     \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510     \u25bc                          \u25bcTranscriptionService      TranslationService(PushAudioInputStream     (PushAudioInputStream \u2192 SpeechRecognizer \/      \u2192 TranslationRecognizer)   ConversationTranscriber)     |                          |     \u25bc                          \u25bcevent OnTranscriptionUpdated   event OnTranslationUpdated     |                          |     \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518                  |                  \u25bc         TranscriptionViewModel (ReactiveUI)                  |                  \u25bc             TranscriptionView (Avalonia)\u0421\u0443\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430: AudioCaptureService \u2014 \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0437\u0432\u0443\u043a\u0430. TranscriptionService \u0438 TranslationService \u043e\u0431\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0435\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 AudioCaptured \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0431\u0430\u0439\u0442\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:\/\/ TranscriptionService \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438_audioCapture.AudioCaptured += OnAudioCaptured;\/\/ TranslationService \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430_audioCaptureService.AudioCaptured += OnAudioCaptured;\u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a OnAudioCaptured \u0438 \u043f\u0438\u0448\u0435\u0442 \u0431\u0430\u0439\u0442\u044b \u0432 \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 PushAudioInputStream. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 \u043d\u0435\u0442 \u2014 \u043e\u043d\u0438 \u043e\u0431\u0449\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u044f AudioCaptureService.\u0412\u0430\u0436\u043d\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c: AudioCapturedEventArgs \u043e\u0442\u0434\u0430\u0451\u0442 \u043a\u043e\u043f\u0438\u044e \u0431\u0443\u0444\u0435\u0440\u0430, \u0430 \u043d\u0435 \u0441\u0441\u044b\u043b\u043a\u0443:public byte[] GetAudioDataArray(){    var copy = new byte[_audioData.Length];    Array.Copy(_audioData, copy, _audioData.Length);    return copy;}NAudio \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0431\u0443\u0444\u0435\u0440 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0435 DataAvailable. \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0443, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u043e\u0433 \u0431\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0443\u0436\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u2014 \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c.NAudio: \u0437\u0430\u0445\u0432\u0430\u0442 \u0437\u0432\u0443\u043a\u0430 \u043a\u0430\u043a \u043f\u043e\u0442\u043e\u043a \u0431\u0430\u0439\u0442NAudio \u2014 \u0434\u0435-\u0444\u0430\u043a\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0443\u0434\u0438\u043e \u0432 .NET. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 WaveInEvent, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u043e\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 DataAvailable._waveIn = new WaveInEvent{    WaveFormat = new WaveFormat(settings.SampleRate, settings.BitsPerSample, settings.Channels),    BufferMilliseconds = 50  \/\/ AudioConstants.BufferMilliseconds};_waveIn.DataAvailable += WaveIn_DataAvailable;_waveIn.StartRecording();\u0422\u0440\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0434\u043b\u044f Azure Speech SDK:Sample Rate: 16000 \u0413\u0446 \u2014 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 SDK \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438 8000 \u0413\u0446, \u0438 24000, \u0438 48000 \u0413\u0446, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u043c\u0435\u043d\u043d\u043e 16k \u2014 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0430\u043b\u0430\u043d\u0441 \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u0431\u044a\u0451\u043c\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041c\u043e\u0434\u0435\u043b\u0438 Speech Service \u043e\u0431\u0443\u0447\u0435\u043d\u044b \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 16 kHz-\u0430\u0443\u0434\u0438\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0440\u0443\u0433\u0438\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u0430\u0434\u0443\u0442 \u043b\u0438\u0431\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0443\u044e \u043f\u043e\u043b\u043e\u0441\u0443 (48k), \u043b\u0438\u0431\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u0443\u044e \u043f\u043e\u0442\u0435\u0440\u044e \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (8k \u0432\u043d\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430).Bits Per Sample: 16-bit PCM \u2014 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u043b\u044f raw PCM \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433\u0430 \u0447\u0435\u0440\u0435\u0437 PushAudioInputStream. Azure Speech SDK \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 32-bit float (IeeeFloat WaveFormat): \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435. (SDK \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u0436\u0430\u0442\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u2014 MP3, FLAC, Opus \u2014 \u0447\u0435\u0440\u0435\u0437 AudioStreamFormat.GetCompressedFormat(), \u043d\u043e \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c, \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u044b\u0439 \u043a \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043d\u043e\u043c\u0443 \u0437\u0430\u0445\u0432\u0430\u0442\u0443.)Channels: \u0441\u0442\u0440\u043e\u0433\u043e 1 (\u043c\u043e\u043d\u043e) \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430. Azure Speech SDK \u0432 \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u043c\u043e\u043d\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a. \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u0442\u0435\u0440\u0435\u043e-\u043f\u043e\u0442\u043e\u043a\u0430 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c: SDK \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0438\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0432 \u043c\u043e\u043d\u043e \u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438, \u0430 \u043d\u0435 \u043d\u0430\u0434\u0435\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u00ab\u0430\u0432\u043e\u0441\u044c \u043f\u0440\u043e\u0433\u043b\u043e\u0442\u0438\u0442\u00bb. (\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: ConversationTranscriber \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 multi-channel audio \u0434\u043e 8 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441 \u0434\u0438\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u043a\u0430\u043d\u0430\u043b\u0430\u043c, \u043d\u043e \u044d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043c\u043d\u043e\u0433\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0430 \u043d\u0435 \u0436\u0438\u0432\u043e\u0433\u043e \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430.)\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a DataAvailable:private void WaveIn_DataAvailable(object? sender, WaveInEventArgs e){    var audioData = new byte[e.BytesRecorded];    Array.Copy(e.Buffer, audioData, e.BytesRecorded);    Interlocked.Add(ref _totalBytesProcessed, e.BytesRecorded);    AudioCaptured?.Invoke(this, new AudioCapturedEventArgs(audioData));}e.BytesRecorded \u043d\u0435 \u0440\u0430\u0432\u043d\u043e e.Buffer.Length \u2014 \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0445\u0432\u043e\u0441\u0442 \u0441\u0442\u0430\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u043e \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430.\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e BufferMilliseconds = 50: \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10 \u043c\u0441), \u0431\u0443\u0434\u0435\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u043f\u043e\u0442\u043e\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 (500+ \u043c\u0441) \u2014 Azure \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u00ab\u0436\u0435\u0432\u0430\u0442\u044c\u00bb \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0440\u0430\u0437. 50 \u043c\u0441 \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.\u041c\u043e\u0441\u0442 \u043c\u0435\u0436\u0434\u0443 NAudio \u0438 Azure: PushAudioInputStream\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0435\u0439 \u0432\u0441\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u2014 \u043a\u043b\u0430\u0441\u0441 PushAudioInputStream. \u042d\u0442\u043e \u0431\u0443\u0444\u0435\u0440, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0438\u0448\u0435\u043c PCM-\u0431\u0430\u0439\u0442\u044b \u0438\u0437 NAudio, \u0430 Azure Speech SDK \u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u0437 \u043d\u0435\u0433\u043e \u0432 \u0441\u0432\u043e\u0451\u043c \u0442\u0435\u043c\u043f\u0435.\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0434\u0432\u0430 \u044d\u0442\u0430\u043f\u0430, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 _audioInputStream.\u042d\u0442\u0430\u043f 1 \u2014 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u0438var audioFormat = AudioStreamFormat.GetWaveFormatPCM(    (uint)settings.SampleRate,    (byte)settings.BitsPerSample,    (byte)settings.Channels);_audioInputStream = AudioInputStream.CreatePushStream(audioFormat);var audioConfig = AudioConfig.FromStreamInput(_audioInputStream);\/\/ audioConfig \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 new SpeechRecognizer(speechConfig, audioConfig)\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0431\u0430\u0439\u0442\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0443\u0441\u0442\u0443\u044e \u00ab\u0442\u0440\u0443\u0431\u0443\u00bb (_audioInputStream) \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a \u043d\u0435\u0439&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-479415","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479415","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=479415"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479415\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}