{"id":488516,"date":"2026-07-25T08:06:49","date_gmt":"2026-07-25T08:06:49","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=488516"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=488516","title":{"rendered":"\u0420\u043e\u0431\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0432\u043e\u043d\u0438\u0442 \u0432 WhatsApp: \u043a\u0430\u043a \u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u0442\u043e, \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0432 \u043e\u0434\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0440\u043e\u0431\u043e\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0430\u043c \u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043b\u044e\u0434\u044f\u043c \u0432 WhatsApp, \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0438 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u0441 \u0432\u0435\u0440\u0434\u0438\u043a\u0442\u043e\u043c \u00ab\u0434\u0430 \/ \u043d\u0435\u0442 \/ \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438\u00bb.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0423 WhatsApp \u043d\u0435\u0442 API \u0434\u043b\u044f \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432: Business API \u0443\u043c\u0435\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u0443\u043c\u0435\u044e\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438, \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u043d\u0430\u0433\u043b\u0443\u0445\u043e. \u0413\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c\u0433\u0438, \u043d\u0438 \u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0434\u0435\u043d\u044c\u0433\u0438.<\/p>\n<p>\u0417\u0430\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0443\u043c\u0435\u0435\u0442. \u0418 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430 \u0440\u0443\u043a\u0443.<\/p>\n<p>\u042d\u0442\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e: \u0441 \u0447\u0435\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0443\u043c\u0435\u0440\u043b\u0438 \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435, \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043b\u043e\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u043e\u0442 CDP \u0434\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u0443\u0434\u0438\u043e\u043a\u0430\u0431\u0435\u043b\u0435\u0439 \u2014 \u0438 \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u043a \u043f\u0440\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u0440\u043a\u043d\u0443\u043b \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0443\u0436\u0435 \u043d\u0430 \u0436\u0438\u0432\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u0430\u0445.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c: \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u044d\u0442\u043e \u0441\u0435\u0440\u0430\u044f \u0437\u043e\u043d\u0430, \u0438 \u044f \u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u044d\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c. \u041c\u043d\u0435 \u0437\u0434\u0435\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0447\u0438\u0441\u0442\u0430\u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u044f \u2014 \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0438 \u0440\u0438\u0441\u043a\u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435.<\/p>\n<p>\u041a\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e. \u0412\u0441\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0436\u0438\u0432\u0451\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c I. \u0421 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c<\/h3>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: \u043e\u0431\u044b\u0447\u043d\u044b\u0439 SIP<\/h4>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e WhatsApp \u043d\u0435 \u0431\u044b\u043b\u043e. \u0411\u044b\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0434\u043e\u0432 \u0438\u0437 \u0431\u0430\u0437\u044b: \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c, \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u00ab\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 1\u00bb. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0432\u0442\u043e\u043e\u0431\u0437\u0432\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f SIP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0437\u0430 HTTP, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043f\u043e\u043b\u0442\u043e\u0440\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code>export class SipVoiceProvider implements VoiceCallProvider {  readonly name = 'sip' as const;  async call(req: VoiceCallRequest): Promise&lt;VoiceCallResult&gt; {    const res = await fetch(`${this.cfg.baseUrl.replace(\/\\\/$\/, '')}\/calls`, {      method: 'POST',      headers: {        'content-type': 'application\/json',        authorization: `Bearer ${this.cfg.token}`,      },      body: JSON.stringify({        phone: req.phone,        audio_url: req.audioPath,        callback_id: String(req.leadId),      }),    });    \/\/ \u2026  }}<\/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>\u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0418 \u0443\u043f\u0451\u0440\u043b\u043e\u0441\u044c \u043d\u0435 \u0432 \u0442\u0435\u0445\u043d\u0438\u043a\u0443, \u0430 \u0432 \u043b\u044e\u0434\u0435\u0439.<\/p>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438 <strong>\u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0431\u0435\u0440\u0451\u0442 \u0442\u0440\u0443\u0431\u043a\u0443 \u0441 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/strong>. \u041d\u0435 \u00ab\u043d\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c\u00bb, \u0430 \u043d\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0430 \u0442\u0440\u0443\u0431\u043a\u0443 \u0432\u043e\u043e\u0431\u0449\u0435: \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0437\u0432\u043e\u043d\u0438\u0442, \u043d\u043e\u043c\u0435\u0440 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439, \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442. \u041a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0442\u043e\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0431\u0438\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u043b\u044e\u0434\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u043d\u0430 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435. \u0422\u0430\u043c \u043d\u0435\u0442 \u043e\u0431\u0435\u0437\u043b\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u2014 \u0442\u0430\u043c \u0430\u0432\u0430\u0442\u0430\u0440, \u0438\u043c\u044f, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u041f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a.<\/p>\n<h4>\u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: \u043a\u0430\u0441\u043a\u0430\u0434<\/h4>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435:<\/p>\n<pre><code>CSV\/Excel  \u2192  SIP-\u0437\u0432\u043e\u043d\u043e\u043a  \u2192  WhatsApp Desktop-\u0437\u0432\u043e\u043d\u043e\u043a  \u2192  STT + \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f  \u2192  \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432 Telegram               (DTMF 1\/2)      (greeting WAV \u2192 \u043e\u0442\u0432\u0435\u0442)      (whisper medium)       (\u043b\u0438\u0434 + \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442)<\/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\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a. \u041d\u0435 \u0432\u0437\u044f\u043b\u0438 \u0442\u0440\u0443\u0431\u043a\u0443 \u2014 \u0442\u0435\u043c \u0436\u0435 \u043b\u044e\u0434\u044f\u043c \u0443\u0445\u043e\u0434\u0438\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0447\u0435\u0440\u0435\u0437 WhatsApp. \u042d\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430, \u0430 <strong>\u0434\u043e\u0431\u043e\u0440 \u043e\u0445\u0432\u0430\u0442\u0430 \u0441\u0432\u0435\u0440\u0445\u0443<\/strong>: \u043c\u044b \u0434\u043e\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0434\u043e \u0442\u0435\u0445, \u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0442\u0435\u0440\u044f\u0435\u0442, \u043d\u0435 \u043a\u0430\u043d\u043d\u0438\u0431\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044f \u0435\u0433\u043e.<\/p>\n<p>\u0411\u044b\u043b \u0435\u0449\u0451 \u0442\u0440\u0435\u0442\u0438\u0439, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u2014 <code>wa_text<\/code>, follow-up \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043e\u0442\u0432\u0435\u0442\u0430. \u0415\u0433\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0432\u044b\u0440\u0435\u0437\u0430\u043b\u0438: \u043e\u043d \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u043b \u0444\u043e\u043a\u0443\u0441 \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443, \u0430 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u0432 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0438 \u0431\u0435\u0437 \u043d\u0430\u0441. \u0420\u0435\u0436\u0438\u043c \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0447\u0438\u0441\u0442\u043e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u043c.<\/p>\n<p>\u041e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u0438\u0442\u044c.<\/p>\n<h4>\u0420\u0430\u0437\u0432\u0435\u0434\u043a\u0430: \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c<\/h4>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u043a\u043e\u0434, \u0430 \u0432\u0441\u043a\u0440\u044b\u0442\u0438\u0435. \u0412 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043b\u0435\u0436\u0430\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430: <code>inspect_<\/code><a href=\"http:\/\/wa.py\" rel=\"noopener noreferrer nofollow\"><code>wa.py<\/code><\/a>, <code>probe_call_<\/code><a href=\"http:\/\/window.py\" rel=\"noopener noreferrer nofollow\"><code>window.py<\/code><\/a>, <code>probe-call-button.ts<\/code>, <code>wa-desktop-inspect-header.ts<\/code>, <code>wa-desktop-inspect-menu.ts<\/code>. \u0421\u043a\u0440\u0438\u043f\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442 \u2014 \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0434\u044f\u0442 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438 \u043f\u0435\u0447\u0430\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0432\u0438\u0434\u044f\u0442.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u044d\u0442\u0430\u043f\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u043e \u0432\u0441\u044e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443.<\/p>\n<p><strong>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 WhatsApp Desktop (Beta) \u043f\u043e\u0434 Windows \u2014 \u044d\u0442\u043e \u043d\u0435 Electron \u0438 \u043d\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/strong> \u042d\u0442\u043e WinUI3-\u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0436\u0438\u0432\u0451\u0442 WebView2, \u0430 \u0432 \u043d\u0451\u043c \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <a href=\"http:\/\/web.whatsapp.com\" rel=\"noopener noreferrer nofollow\"><code>web.whatsapp.com<\/code><\/a>.<\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 \u0431\u0440\u0430\u0443\u0437\u0435\u0440. \u0410 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c: <strong>\u043e\u043a\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u2014 \u0443\u0436\u0435 \u043d\u0435 \u0432\u0435\u0431<\/strong>. \u042d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 WinUI3-\u043e\u043a\u043d\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 DOM \u043d\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435.<\/p>\n<p>\u0422\u0430\u043a \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0434\u0432\u0430 \u0441\u043b\u043e\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438: \u0432\u0435\u0431-\u0447\u0430\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Playwright \u0438 \u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Windows UI Automation. \u0410 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0443\u0436\u0435\u043d \u0435\u0449\u0451 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u043b\u043e\u0439 \u2014 \u0437\u0432\u0443\u043a.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c II. \u0421\u043b\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439: WebView2 \u0438 CDP<\/h3>\n<p>WebView2 \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS=--remote-debugging-port=9222 --remote-allow-origins=*<\/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>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u2014 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<pre><code>const browser = await chromium.connectOverCDP('http:\/\/127.0.0.1:9222');<\/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<h4>\u0413\u0440\u0430\u0431\u043b\u044f: \u043f\u043e\u0440\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 WhatsApp<\/h4>\n<p>\u042d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f <strong>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/strong>. \u041e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u043d\u0435 \u0434\u043b\u044f WhatsApp, \u0430 \u0434\u043b\u044f <em>\u043a\u0430\u0436\u0434\u043e\u0433\u043e<\/em> WebView2-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041d\u0430 9222 \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u2014 \u0432\u0438\u0434\u0436\u0435\u0442, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a, \u043b\u044e\u0431\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0442\u0435\u043a\u0435. \u0412\u0437\u044f\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0435\u043b\u044c\u0437\u044f:<\/p>\n<pre><code>\/** * Find the WhatsApp page across all of a browser's contexts. The global * WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS env var opens the same debug port * for EVERY WebView2 app, so a non-WhatsApp app could be the one answering * on this port \u2014 we only accept a browser that actually exposes a * web.whatsapp.com page (stable or beta, consumer or business). *\/private static findWhatsAppPage(browser: Browser): { ctx: BrowserContext; page: Page } | null {  for (const ctx of browser.contexts()) {    const page = ctx.pages().find((p) =&gt; p.url().includes('web.whatsapp.com'));    if (page) return { ctx, page };  }  return null;}<\/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>\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0434\u0430\u0451\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 WhatsApp. \u0418 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0440\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u2014 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0438 \u0431\u0435\u0442\u0430 \u043c\u0430\u043f\u044f\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f: \u043e\u043a\u043d\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u043a\u043b\u0438\u043a\u0430\u0442\u044c\u0441\u044f<\/h4>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u0436\u0438\u0432\u0451\u0442 \u0432 DOM, \u0437\u043d\u0430\u0447\u0438\u0442 \u043a\u043b\u0438\u043a\u0430\u0435\u0442\u0441\u044f Playwright&#8217;\u043e\u043c. \u0422\u0430\u043a \u044f \u0434\u0443\u043c\u0430\u043b.<\/p>\n<p>\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043a\u043b\u0438\u043a \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b, \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043e\u043a\u043d\u043e WhatsApp \u0431\u044b\u043b\u043e \u043d\u0430 \u043f\u0435\u0440\u0435\u0434\u043d\u0435\u043c \u043f\u043b\u0430\u043d\u0435. \u0421\u0442\u043e\u0438\u043b\u043e \u0443\u0432\u0435\u0441\u0442\u0438 \u0444\u043e\u043a\u0443\u0441 \u2014 \u0432\u044b\u0437\u043e\u0432 \u043c\u043e\u043b\u0447\u0430 \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0441\u044f: \u0432 \u043b\u043e\u0433\u0430\u0445 <a href=\"http:\/\/page.click\" rel=\"noopener noreferrer nofollow\"><code>page.click<\/code><\/a><code> failed, falling back to clickByRect<\/code>, \u0444\u043b\u0430\u0433 <code>everSawWindow:false<\/code>, \u043e\u043a\u043d\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c.<\/p>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f Chromium. WebView2 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0447\u0442\u043e \u043e\u043a\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0442\u043e, \u0438 <strong>\u0442\u0440\u043e\u0442\u0442\u043b\u0438\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433<\/strong>: \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c layout, \u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u0430\u0439\u043c\u0435\u0440\u044b, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0432 \u0444\u043e\u043d. Playwright, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0434 \u043a\u043b\u0438\u043a\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0432 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0431\u0435\u0441\u0441\u0438\u043b\u0435\u043d.<\/p>\n<p>\u041b\u0435\u0447\u0438\u0442\u0441\u044f \u043d\u0435 \u043a\u043e\u0434\u043e\u043c, \u0430 \u0444\u043b\u0430\u0433\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<pre><code>--disable-features=CalculateNativeWinOcclusion,CalculateNativeWinOcclusionTracking--disable-backgrounding-occluded-windows--disable-renderer-backgrounding--disable-background-timer-throttling<\/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\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435 \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443: \u0437\u0430\u043a\u0440\u044b\u0442\u044c WhatsApp, <strong>\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c explorer.exe<\/strong> (\u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435), \u0437\u0430\u043d\u043e\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0438 \u043f\u043e \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043e\u043a\u043d\u0443 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442. \u041d\u043e \u043d\u0435 \u043f\u043e <strong>\u0441\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u043c\u0443<\/strong>: \u0443 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u044b 0\u00d70, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0434\u043b\u044f \u043a\u043b\u0438\u043a\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0442. \u041e\u0442\u0441\u044e\u0434\u0430 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443: \u043e\u043a\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0447\u0435\u043c \u0443\u0433\u043e\u0434\u043d\u043e, \u043d\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f: React \u043d\u0435 \u0432\u0435\u0440\u0438\u0442 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u043b\u0438\u043a\u0430\u043c<\/h4>\n<p>\u041e\u0431\u044b\u0447\u043d\u044b\u0439 <a href=\"http:\/\/page.click\" rel=\"noopener noreferrer nofollow\"><code>page.click<\/code><\/a><code>()<\/code> \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0430 React-\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 WhatsApp \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u0433\u043e\u043b\u044b\u0439 <code>dispatchEvent(new MouseEvent('click'))<\/code> \u2014 \u0438\u043c \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439:<\/p>\n<pre><code>(sel) =&gt; {  const btn = document.querySelector(sel);  if (!btn) throw new Error('forceClick: not found: ' + sel);  const r = btn.getBoundingClientRect();  const x = r.left + r.width \/ 2;  const y = r.top + r.height \/ 2;  const opts = { bubbles: true, cancelable: true, composed: true, view: window,                 clientX: x, clientY: y, button: 0, buttons: 1 };  btn.dispatchEvent(new PointerEvent('pointerdown', opts));  btn.dispatchEvent(new MouseEvent('mousedown', opts));  btn.dispatchEvent(new PointerEvent('pointerup', opts));  btn.dispatchEvent(new MouseEvent('mouseup', opts));  btn.dispatchEvent(new MouseEvent('click', opts));}<\/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: \u044d\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f <strong>\u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430<\/strong>, \u0430 \u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f: \u0441\u0431\u043e\u0440\u0449\u0438\u043a (esbuild\/tsx) \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0445\u0435\u043b\u043f\u0435\u0440\u043e\u043c <code><strong>name<\/strong><\/code><strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 <\/strong><code><strong>page.evaluate()<\/strong><\/code><strong> \u2014 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 <\/strong><code>name is not defined<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 WhatsApp. \u0421\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u043a\u0430\u043a \u0435\u0441\u0442\u044c.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f: \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441\u0430\u043c\u0430 \u0441\u0435\u0431\u044f<\/h4>\n<p>\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0447\u0430\u0442\u0430 \u2014 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e deep-link \u0441 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430. \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u0435\u043b\u0430\u043b\u0430 \u0442\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043f\u043e 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0436\u0435: \u043d\u0435 \u0434\u043e\u0436\u0434\u0430\u043b\u0438\u0441\u044c \u2014 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c.<\/p>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442:<\/p>\n<pre><code>\/\/ When the linked account is under heavy parallel call load, each deep-link\/\/ navigation reloads WA Web into its \"downloading messages\" sync screen, which\/\/ can take longer to settle. Re-navigating RESTARTS that sync from scratch, so\/\/ too many short attempts prevent it from ever completing. We therefore give a\/\/ single long header wait and only one safety re-navigation.const CHAT_OPEN_TIMEOUT_MS = 60_000;const CHAT_OPEN_ATTEMPTS = 2;<\/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>\u041f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043a\u0430\u0436\u0434\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0440\u043e\u043d\u044f\u0435\u0442 WA Web \u0432 \u044d\u043a\u0440\u0430\u043d \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f <strong>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u044d\u0442\u0443 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0437\u0430\u043d\u043e\u0432\u043e<\/strong>. \u0422\u0440\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430. \u041e\u0434\u043d\u043e \u0434\u043b\u0438\u043d\u043d\u043e\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0451\u0445 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u2014 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438\u0441\u0447\u0435\u0437\u043b\u0430.<\/p>\n<h4>\u0415\u0449\u0451 \u043e\u0434\u043d\u0430: \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445<\/h4>\n<p>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 WebView2 \u043e\u0434\u043d\u0430, \u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0435\u0439 \u0445\u043e\u0442\u044f\u0442 \u0432\u0441\u0435: \u043d\u0430\u0431\u043e\u0440 \u043d\u043e\u043c\u0435\u0440\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u043f\u0440\u043e\u0441 \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445. \u0417\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e, \u043e\u043d\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u0447\u0430\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0441\u0440\u0435\u0434\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043c\u0438\u0441-\u0446\u0435\u043f\u043e\u0447\u043a\u0443:<\/p>\n<pre><code>async runExclusive&lt;T&gt;(fn: () =&gt; Promise&lt;T&gt;): Promise&lt;T&gt; {  const next = this.chain.then(fn, fn);  \/\/ keep the chain alive even if `fn` throws  this.chain = next.catch(() =&gt; undefined);  return next;}<\/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\u043e\u043d\u043a\u043e\u0441\u0442\u044c \u0432 <code>then(fn, fn)<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c <code>.catch()<\/code>: \u0443\u043f\u0430\u0432\u0448\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0440\u0432\u0430\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0441\u044f.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c III. \u0421\u043b\u043e\u0439 \u0432\u0442\u043e\u0440\u043e\u0439: \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 UI Automation<\/h3>\n<p>\u041a\u043b\u0438\u043a \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0437\u0432\u043e\u043d\u043e\u043a \u0443\u0445\u043e\u0434\u0438\u0442. \u0418 \u0442\u0443\u0442 WebView2 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f: \u043e\u043a\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u2014 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435, Playwright \u043e \u043d\u0451\u043c \u043d\u0435 \u0437\u043d\u0430\u0435\u0442.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439 \u2014 Python-\u0441\u0430\u0439\u0434\u043a\u0430\u0440 \u043d\u0430 <code>pywinauto<\/code> \u043f\u043e\u0432\u0435\u0440\u0445 UI Automation. \u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u0442\u0440\u0438 \u0432\u0435\u0449\u0438: \u043d\u0430\u0439\u0442\u0438 \u043e\u043a\u043d\u043e \u0437\u0432\u043e\u043d\u043a\u0430, \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0442\u0440\u0443\u0431\u043a\u0443 \u043f\u043e\u0434\u043d\u044f\u043b\u0438, \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0451.<\/p>\n<h4>\u041a\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u0442\u0432\u0435\u0442\u0438\u043b<\/h4>\n<p>\u041d\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043d\u0438 \u043a\u043e\u043b\u0431\u044d\u043a\u0430, \u043d\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0430. \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0440\u0435\u0432\u043e UIA. \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b <code>CallStatusText<\/code> \u0438 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u043b\u0430 \u0435\u0433\u043e.<\/p>\n<p>\u041d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"python\"># Re-find the window and re-walk its text controls FRESH every tick. A# cached UIA element handle goes stale when WhatsApp rebuilds the call# window on pickup \u2014 it then returns a frozen \"Calling...\" forever, so the# answer is never seen. find_call_window is cheap (~0.17s), and the call# window's subtree is tiny, so a fresh walk per tick is fast enough.<\/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>\u041f\u0440\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0438 \u0442\u0440\u0443\u0431\u043a\u0438 WhatsApp <strong>\u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u043a\u043d\u043e \u0437\u0432\u043e\u043d\u043a\u0430<\/strong>. \u0417\u0430\u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0445\u044d\u043d\u0434\u043b \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u0435\u0442 \u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0432\u0440\u0435\u043c\u0451\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u0430\u043c\u043e\u0440\u043e\u0436\u0435\u043d\u043d\u043e\u0435 \u00abCalling\u2026\u00bb. \u0420\u043e\u0431\u043e\u0442 \u0441\u0447\u0438\u0442\u0430\u043b, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0438, \u043f\u043e\u043a\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432 \u0442\u0440\u0443\u0431\u043a\u0443.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043a \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u0438 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c <em>\u0432\u0441\u0435<\/em> \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u2014 \u043d\u0435 \u043e\u0434\u0438\u043d \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439, \u0430 \u0432\u0441\u0451 \u043f\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u043e. \u041f\u043e\u0438\u0441\u043a \u043e\u043a\u043d\u0430 \u0441\u0442\u043e\u0438\u0442 ~0.17 \u0441, \u043f\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u043e \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u043e\u0435, 0.3 \u0441 \u043d\u0430 \u0442\u0438\u043a \u0445\u0432\u0430\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u0434\u0432\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u0430. \u041f\u0435\u0440\u0432\u044b\u0439: \u0442\u0430\u0439\u043c\u0435\u0440 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 <code>M:SS<\/code>. \u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e:<\/p>\n<pre><code class=\"python\"># Connected indicators: on WhatsApp Beta the call window stops showing a# reliable M:SS timer once the recipient picks up \u2014 instead the in-call# controls appear, whose labels (\"Muted\"\/\"Mute\"\/\"Unmute\" and RU equivalents)# are present ONLY after pickup (verified: absent during a ringing-only call,# present on an answered one). Used as a pickup signal alongside the timer.CONNECTED_RE = re.compile(    r\"(Mute|Unmute|Muted|Speaker|\u0411\u0435\u0437 \u0437\u0432\u0443\u043a\u0430|\u0412\u044b\u043a\u043b.*\u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d|\u0412\u043a\u043b.*\u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d|\u0414\u0438\u043d\u0430\u043c\u0438\u043a)\",    re.IGNORECASE,)<\/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\u0430 \u0431\u0435\u0442\u0435 \u0442\u0430\u0439\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442\u044c \u0432\u043e\u0432\u0441\u0435, \u0437\u0430\u0442\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043d\u0435\u0442.<\/p>\n<h4>\u0421\u0430\u043c\u0430\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h4>\n<p>WhatsApp \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 <code>0:00<\/code>, \u043f\u043e\u043a\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u0432\u044f\u0437\u0438 \u0435\u0449\u0451 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 \u2014 \u0434\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0443 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0448\u0451\u043b \u0433\u0443\u0434\u043e\u043a.<\/p>\n<p>\u0420\u043e\u0431\u043e\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b \u044d\u0442\u043e \u0437\u0430 \u043e\u0442\u0432\u0435\u0442. \u041d\u0430\u0447\u0438\u043d\u0430\u043b \u0438\u0433\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0432 \u043f\u0443\u0441\u0442\u043e\u0442\u0443 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0433\u0443\u0434\u043a\u0438. \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 <code>faster-whisper<\/code> \u043f\u043e\u043a\u043e\u0440\u043d\u043e <strong>\u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u0437 \u0433\u0443\u0434\u043a\u043e\u0432 \u00ab\u0410\u043b\u043b\u043e\u00bb<\/strong> \u0438 \u00ab\u0430 \u0430 \u0430\u00bb \u2014 \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0447\u0438\u0442\u0430\u043b \u0437\u0432\u043e\u043d\u043e\u043a \u0441\u043e\u0441\u0442\u043e\u044f\u0432\u0448\u0438\u043c\u0441\u044f, \u0430 \u043b\u0438\u0434 \u0436\u0438\u0432\u044b\u043c.<\/p>\n<p>\u041b\u0435\u0447\u0438\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c: \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u0443 \u0432\u0435\u0440\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043b\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u00ab\u0437\u0432\u043e\u043d\u0438\u0442\u00bb.<\/p>\n<pre><code class=\"python\"># A timer in CallStatusText means connected. Once the recipient# has been rung (ringing_seen), even \"00:00\" is a real pickup \u2014# the transient \"0:00\" that warranted a &gt;=1s guard only appears# during the earlier \"Calling...\" routing phase, before ringing.if secs is not None and (secs &gt;= PICKUP_MIN_TIMER_SEC or                         (secs &gt;= 0 and ringing_seen)):    payload = {\"result\": \"answered\", \"lastStatus\": txt,               \"timerSec\": secs, \"timerSource\": aid}<\/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>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f: <code>answered<\/code>, <code>no_answer<\/code> (\u043e\u043a\u043d\u043e \u0432\u0438\u0441\u0435\u043b\u043e \u0434\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0430), <code>ended<\/code> (\u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0438 \u0438\u0441\u0447\u0435\u0437\u043b\u043e \u2014 \u0441\u0431\u0440\u043e\u0441\u0438\u043b\u0438) \u0438 <code>no_window<\/code> (\u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0432\u0441\u0435). \u0412 <code>no_answer<\/code> \u043a\u043b\u0430\u0434\u0451\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0443\u0432\u0438\u0434\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u2014 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u043e\u043c \u043f\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u043e\u043a\u043d\u043e.<\/p>\n<h4>\u041a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0442\u0440\u0443\u0431\u043a\u0443<\/h4>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043e\u043a\u043d\u043e \u2014 \u0447\u0442\u043e \u0442\u0443\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e.<\/p>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u044d\u0442\u043e\u0442 \u0431\u0438\u043b\u0434 WinUI3 <strong>\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 <\/strong><code><strong>WM_CLOSE<\/strong><\/code>. \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0438\u043b \u0438 \u0437\u0430\u0431\u044b\u043b\u00bb: \u0438\u0441\u043a\u0430\u043b\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e \u0442\u043e\u0447\u043d\u043e\u043c\u0443 <code>NewEndCallButton<\/code>, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0441\u043b\u0430\u043b\u0430 \u043e\u0434\u0438\u043d <code>WM_CLOSE<\/code> \u0438 \u0440\u0430\u043f\u043e\u0440\u0442\u043e\u0432\u0430\u043b\u0430 \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0435, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044f. \u0418\u0442\u043e\u0433 \u2014 \u043e\u043a\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u0438\u0441\u0435\u0442\u044c, \u0438 <strong>\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043a\u043e\u043b\u043b\u0438\u0434\u0438\u043b \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c<\/strong>.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0447\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u2014 \u044d\u0441\u043a\u0430\u043b\u0430\u0446\u0438\u044f \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439:<\/p>\n<pre><code class=\"python\"># End-call button identifiers. The primary control is the WinUI3# NewEndCallButton, but on some window states (still-ringing \/ re-laid-out# window) the automation_id or accessible name differs, so we also accept a# set of known ids and a name regex covering EN + RU labels. Matching the# REAL end-call button \u2014 rather than falling straight to WM_CLOSE \u2014 is what# actually ends the call on this build; WM_CLOSE alone often does not.END_CALL_AUTO_IDS = (\"NewEndCallButton\", \"EndCallButton\", \"HangUpButton\", \"EndCall\")END_CALL_NAME_RE = re.compile(    r\"(End call|Hang ?up|Decline|Leave call|\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c|\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c|\u0417\u0430\u0432\u0435\u0440\u0448|\u041e\u0442\u0431\u043e\u0439)\",    re.IGNORECASE,)_WM_CLOSE = 0x0010_WM_SYSCOMMAND = 0x0112_SC_CLOSE = 0xF060<\/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>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0442\u0430\u043a\u043e\u0439: \u0438\u0449\u0435\u043c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u2014 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c <code>automation_id<\/code> \u0438 \u043f\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u043d\u0430 \u0434\u0432\u0443\u0445 \u044f\u0437\u044b\u043a\u0430\u0445, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u0445 \u043e\u043a\u043d\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f. \u0416\u043c\u0451\u043c \u0435\u0451 \u0447\u0435\u0440\u0435\u0437 UIA <code>Invoke<\/code>, \u0437\u0430\u0442\u0435\u043c \u043c\u044b\u0448\u044c\u044e. \u041d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u2014 \u043f\u043e\u0441\u0442\u0438\u043c \u0432 \u0442\u043e\u043f-\u043b\u0435\u0432\u0435\u043b HWND <strong>\u0438<\/strong> <code>SC_CLOSE<\/code> (\u043f\u0443\u043d\u043a\u0442 \u00ab\u0417\u0430\u043a\u0440\u044b\u0442\u044c\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e), <strong>\u0438<\/strong> <code>WM_CLOSE<\/code>: \u0447\u0430\u0441\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 WinUI3 \u0433\u043b\u043e\u0442\u0430\u0435\u0442 \u0433\u043e\u043b\u044b\u0439 <code>WM_CLOSE<\/code>, \u043d\u043e \u0447\u0435\u0441\u0442\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443.<\/p>\n<p>\u0418 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e <strong>\u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c, \u0438\u0441\u0447\u0435\u0437\u043b\u043e \u043b\u0438 \u043e\u043a\u043d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435<\/strong>, \u0434\u043e \u0442\u0440\u0451\u0445 \u0440\u0430\u0443\u043d\u0434\u043e\u0432, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 <code>closed<\/code> \/ <code>not_closed<\/code> \/ <code>no_window<\/code>. \u0418\u043c\u0435\u043d\u043d\u043e \u043a\u043b\u0438\u043a \u043f\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0435, \u0430 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u043a\u043d\u0443, \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430 \u044d\u0442\u043e\u043c \u0431\u0438\u043b\u0434\u0435.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c IV. \u0421\u043b\u043e\u0439 \u0442\u0440\u0435\u0442\u0438\u0439: \u0437\u0432\u0443\u043a, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0432 API<\/h3>\n<p>\u0417\u0432\u043e\u043d\u043e\u043a \u0438\u0434\u0451\u0442, \u0442\u0440\u0443\u0431\u043a\u0443 \u043f\u043e\u0434\u043d\u044f\u043b\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0438 \u0441\u043d\u044f\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a.<\/p>\n<p>\u0423 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u00ab\u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0439\u0442\u0435 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 WAV \u0432 \u0437\u0432\u043e\u043d\u043e\u043a\u00bb. \u0414\u043b\u044f WhatsApp \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438. \u0417\u043d\u0430\u0447\u0438\u0442, \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<h4>\u0421\u0445\u0435\u043c\u0430 \u043d\u0430 \u0434\u0432\u0443\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u044f\u0445<\/h4>\n<pre><code>greeting.wav  \u2500Python sounddevice\u2500\u25ba  Hi-Fi Cable Input  \u2500loop\u2500\u25ba  Hi-Fi Cable Output  \u2500\u25ba  WhatsApp (\u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d)                                                                                              \u2193                                                                                     WhatsApp (\u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438)                                                                                              \u2193\u0440\u0435\u0447\u044c \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430  \u25c4\u2500STT listener\u2500  CABLE Output  \u25c4\u2500loop\u2500  CABLE Input  \u25c4\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<\/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>\u0414\u0432\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u044f VB-Audio, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043f\u0430\u0440\u043e\u0439 \u0432\u0445\u043e\u0434\/\u0432\u044b\u0445\u043e\u0434. \u0412 \u043e\u0434\u0438\u043d \u043c\u044b \u0438\u0433\u0440\u0430\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435, \u0438 WhatsApp \u0432\u0438\u0434\u0438\u0442 \u0435\u0433\u043e \u043a\u0430\u043a \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d. \u0418\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043d\u0438\u043c\u0430\u0435\u043c \u0442\u043e, \u0447\u0442\u043e WhatsApp \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u00ab\u0432 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438\u00bb.<\/p>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f Windows.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f: \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0443\u0448\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e<\/h4>\n<p>\u041d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 \u0442\u043e\u0433\u0434\u0430 \u0432\u0435\u0441\u044c \u0437\u0432\u0443\u043a \u043c\u0430\u0448\u0438\u043d\u044b \u0443\u0435\u0434\u0435\u0442 \u0432 \u043a\u0430\u0431\u0435\u043b\u044c, \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0432\u043e\u043e\u0431\u0449\u0435. \u041d\u0443\u0436\u0435\u043d <strong>per-app routing<\/strong>: \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0443 WhatsApp \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438 \u0441\u0432\u043e\u0438, \u0443 \u0432\u0441\u0435\u0439 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0435.<\/p>\n<p>Windows \u044d\u0442\u043e \u0443\u043c\u0435\u0435\u0442, \u043d\u043e \u0441 \u0444\u043e\u043a\u0443\u0441\u043e\u043c:<\/p>\n<pre><code class=\"powershell\"># Watch for a WA Desktop active audio session, then pin per-app routing# the moment one appears. SVV \/SetAppDefault only takes effect when the# target app has an active audio session (Windows Audio Policy registers# apps lazily). The pin then persists in registry across future calls.<\/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>Windows Audio Policy \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043b\u0435\u043d\u0438\u0432\u043e<\/strong> \u2014 \u043e\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a\u0430\u043a \u0430\u0443\u0434\u0438\u043e\u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0432\u0443\u043a. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a WhatsApp \u00ab\u0437\u0430\u0440\u0430\u043d\u0435\u0435\u00bb \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e: \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u043e\u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.<\/p>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u0441\u043a\u0440\u0438\u043f\u0442-\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c: \u043e\u043d \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 \u0446\u0438\u043a\u043b\u0435, \u0434\u0430\u043c\u043f\u0438\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0430\u0443\u0434\u0438\u043e\u0441\u0435\u0441\u0441\u0438\u0438 \u0432 JSON \u0438 \u0436\u0434\u0451\u0442, \u043a\u043e\u0433\u0434\u0430 \u0441\u0440\u0435\u0434\u0438 \u043d\u0438\u0445 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f WhatsApp. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u0432 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043d\u0430\u0436\u0430\u0442\u044c \u00ab\u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u00bb \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435:<\/p>\n<pre><code class=\"powershell\">while ((Get-Date) -lt $deadline) {  &amp; $svv \/sjson $tmp  Start-Sleep -Milliseconds 200  $rows = Get-Content $tmp -Raw | ConvertFrom-Json  $waSessions = $rows | Where-Object {    $_.Type -eq \"Application\" -and $_.Name -like \"*$ProcessHint*\"  }  if ($waSessions) {    $pid_ = ($waSessions | Select-Object -First 1).\"Process ID\"    &amp; $svv \/SetAppDefault $capId \"Capture\" $pid_    &amp; $svv \/SetAppDefault $renId \"Render\"  $pid_    $pinned = $true    break  }  Start-Sleep -Milliseconds 300}<\/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>\u041f\u043e\u0439\u043c\u0430\u043b\u0438 \u0441\u0435\u0441\u0441\u0438\u044e \u2014 \u043f\u0440\u0438\u0431\u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u0435\u0451 PID. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 <strong>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435<\/strong> \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0437\u0432\u043e\u043d\u043a\u043e\u0432.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0442\u0442\u0440\u0430\u043a\u0446\u0438\u043e\u043d \u2014 \u0433\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e Windows \u044d\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442:<\/p>\n<pre><code class=\"powershell\">$base = \"HKCU:\\Software\\Microsoft\\Internet Explorer\\LowRegistry\\Audio\\PolicyConfig\\PropertyStore\"<\/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>\u0414\u0430, \u043f\u0435\u0440-\u0430\u043f\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0430\u0443\u0434\u0438\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 Windows \u0436\u0438\u0432\u0443\u0442 \u0432 \u0432\u0435\u0442\u043a\u0435 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 Internet Explorer. \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u0443 \u0432\u0435\u0442\u043a\u0443 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u043e WhatsApp \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u2014 \u0438\u043d\u0430\u0447\u0435 \u00ab\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u043e\u0448\u043b\u0430, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c\u00bb \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u043e\u0441\u044c \u0431\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u0437\u0432\u043e\u043d\u043a\u0435.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f: \u043e\u0434\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/h4>\n<p>\u0412 Windows \u043e\u0434\u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u043d\u043e \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 host API \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u0438 \u043e\u043d\u0438 \u043d\u0435 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b:<\/p>\n<pre><code class=\"python\"># When several devices match, prefer WASAPI &gt; WDM-KS &gt; DirectSound &gt; MME# (lower latency, and MME picks up a 44.1 kHz path even when the device's# native mix is 48 kHz).api_priority_by_name = {\"wasapi\": 0, \"wdm-ks\": 1, \"directsound\": 2, \"mme\": 3}<\/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>\u041f\u0443\u0441\u0442\u0438\u0442\u0435 \u0437\u0432\u0443\u043a \u0447\u0435\u0440\u0435\u0437 MME \u2014 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u043b\u0447\u0430 \u0432\u043e\u0437\u044c\u043c\u0451\u0442 \u043f\u0443\u0442\u044c \u043d\u0430 44.1 \u043a\u0413\u0446 \u0442\u0430\u043c, \u0433\u0434\u0435 \u0440\u043e\u0434\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 48 \u043a\u0413\u0446, \u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u043f\u0435\u0440\u0435\u0441\u044d\u043c\u043f\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 host API \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u0440\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430 \u0445\u043e\u0441\u0442\u0430\u0445 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043a\u0430\u0431\u0435\u043b\u044f\u043c\u0438 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c\u0438, \u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0435\u0442.<\/p>\n<p>\u0421\u0430\u043c\u043e \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0438\u0433\u0440\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 MME, 8 \u043a\u0413\u0446 \u043c\u043e\u043d\u043e, <code>blocksize<\/code> 4096 \u0444\u0440\u0435\u0439\u043c\u043e\u0432 \u2014 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u0430\u044f \u043f\u043e\u043b\u043e\u0441\u0430, \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u0431\u0443\u0444\u0435\u0440, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u043a \u0440\u044b\u0432\u043a\u0430\u043c. \u041a\u0440\u0430\u0441\u0438\u0432\u043e\u0439 \u0442\u0435\u043e\u0440\u0438\u0438 \u0442\u0443\u0442 \u043d\u0435\u0442, \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u044d\u043c\u043f\u0438\u0440\u0438\u043a\u0430.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f: WebRTC \u0441\u044a\u0435\u0434\u0430\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043b\u043e\u0432<\/h4>\n<p>\u042d\u0442\u043e \u043c\u043e\u044f \u043b\u044e\u0431\u0438\u043c\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u043a\u0430 \u0432\u043e \u0432\u0441\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435.<\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043d\u043e \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u044b \u0436\u0430\u043b\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u0441\u043b\u044b\u0448\u0430\u0442 \u043e\u0431\u0440\u044b\u0432\u043a\u0438. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 <strong>VAD \u0432 WebRTC-\u0441\u0442\u0435\u043a\u0435 WhatsApp<\/strong>. \u041e\u043d \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u0442\u0438\u0448\u0438\u043d\u0430 \u0432 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0435 = \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u043b\u0447\u0438\u0442, \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043a. \u041a\u043e\u0433\u0434\u0430 \u0440\u0435\u0447\u044c \u0432\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u043e\u0441\u044b\u043f\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0438 \u0441\u0440\u0435\u0437\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0435 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u0440\u0430\u044f \u0441\u043b\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0443\u0437\u044b \u0432 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0448\u0442\u0430\u0442\u043d\u043e, \u043e\u043d\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043a\u0430\u043d\u0430\u043b \u043e\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0442\u0438\u0448\u0438\u043d\u044b. \u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0448\u0430 \u00ab\u0442\u0438\u0448\u0438\u043d\u0430\u00bb \u2014 \u044d\u0442\u043e \u043f\u0430\u0443\u0437\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u0440\u0430\u0437\u044b.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 <strong>\u0440\u043e\u0437\u043e\u0432\u044b\u0439 \u0448\u0443\u043c \u043d\u0430 \u221245 dBFS<\/strong> \u0432 \u0442\u043e\u0442 \u0436\u0435 \u043a\u0430\u0431\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u0441\u0451\u0442 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435. \u0414\u043b\u044f VAD \u043a\u0430\u043d\u0430\u043b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043c\u043e\u043b\u0447\u0438\u0442, \u0433\u0435\u0439\u0442 \u043d\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442, \u0441\u043b\u043e\u0432\u0430 \u0434\u043e\u0445\u043e\u0434\u044f\u0442 \u0446\u0435\u043b\u0438\u043a\u043e\u043c. \u0414\u043b\u044f \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430 \u221245 dBFS \u2014 \u044d\u0442\u043e \u0447\u0443\u0442\u044c \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0439 \u0444\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u043e\u043c \u0437\u0432\u043e\u043d\u043a\u0435 \u0437\u0432\u0443\u0447\u0438\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<pre><code>\/** * Long-running pink-noise sidecar. Plays a continuous low-level signal * into the same cable that carries the greeting so WhatsApp's WebRTC * voice-activity detector never gates transmission during silent gaps * in our pre-recorded WAV. *\/export class NoiseFloorSidecar {<\/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\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u0439\u0434\u043a\u0430\u0440 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435\u043c stdin \u2014 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u043d\u0438\u043c \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0441\u0430\u043c, \u0431\u0435\u0437 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430:<\/p>\n<pre><code>async stop(): Promise&lt;void&gt; {  \/\/ Close stdin -&gt; the python script watches stdin and exits cleanly  try { proc.stdin?.end(); } catch { \/* ignore *\/ }  \/\/ \u2026\u0441 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u043e\u043c \u043d\u0430 SIGTERM, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0432\u044b\u0448\u0435\u043b \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443}<\/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<h4>\u0413\u0440\u0430\u0431\u043b\u044f, \u0441\u0442\u043e\u0438\u0432\u0448\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u0441 \u043a\u043e\u0434\u043e\u043c<\/h4>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u2014 \u0447\u0435\u0440\u0435\u0437 RDP.<\/p>\n<p><strong>\u041f\u043e\u0434 RDP \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u0430\u0431\u0435\u043b\u0438 VB-Audio \u043d\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f.<\/strong> \u041e\u043d\u0438 \u0432\u0438\u0434\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 WDM-KS, \u0430 RDP-\u0441\u0435\u0441\u0441\u0438\u044f \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 \u0430\u0443\u0434\u0438\u043e\u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u044d\u0442\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442. \u0421\u043a\u0440\u0438\u043f\u0442 \u0447\u0435\u0441\u0442\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u043b, \u0447\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0435\u0442. \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043e\u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0432 \u0442\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c: \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b \u043d\u0430 RustDesk, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0432\u0435\u0440\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0430\u0443\u0434\u0438\u043e\u0441\u0442\u0435\u043a \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u0442.<\/p>\n<p>\u041c\u043e\u0440\u0430\u043b\u044c: \u0435\u0441\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u0443\u043a\u0430\u043c\u0438 \u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e \u2014 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u0439\u0442\u0435 \u043d\u0435 \u043a\u043e\u0434, \u0430 \u0441\u0435\u0441\u0441\u0438\u044e.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c V. \u0421\u043b\u043e\u0439 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0439: \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430<\/h3>\n<p>\u0417\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 WAV \u043d\u0430\u0434\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u0442\u0435\u043a\u0441\u0442. \u0417\u0434\u0435\u0441\u044c <code>faster-whisper<\/code>, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0431\u0435\u0437 \u043e\u0431\u043b\u0430\u043a\u043e\u0432 \u2014 \u0437\u0430\u043f\u0438\u0441\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043b\u044e\u0434\u0435\u0439 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0435 \u0443\u0445\u043e\u0434\u044f\u0442, \u0438 \u044d\u0442\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442, \u0430 \u043d\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f.<\/p>\n<h4>\u041a\u0430\u043a \u043d\u0435 \u043d\u0430\u0434\u043e<\/h4>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u0435\u043b\u0430\u043b\u0430 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435: \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u0441\u043f\u0430\u0432\u043d\u0438\u043b\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0440\u0443\u0437\u0438\u043b \u043c\u043e\u0434\u0435\u043b\u044c, \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u0443\u043c\u0438\u0440\u0430\u043b.<\/p>\n<p>\u041d\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 <code>small<\/code> \u044d\u0442\u043e \u0442\u0435\u0440\u043f\u0438\u043c\u043e. \u041d\u0430 <code>medium<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0442\u043e\u0447\u043d\u0435\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u2014 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0430: \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u043e\u0434 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0435\u0439 \u0437\u0430 CPU \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u043b\u0430\u0441\u044c \u0434\u043e <strong>\u0431\u043e\u043b\u044c\u0448\u0435 120 \u0441\u0435\u043a\u0443\u043d\u0434<\/strong>, \u0441\u0430\u0439\u0434\u043a\u0430\u0440 \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0441\u044f \u043f\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0443, \u0430 \u043b\u0438\u043d\u0438\u044f \u0432\u0441\u0451 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043d\u044f\u0442\u043e\u0439. \u0420\u043e\u0431\u043e\u0442 \u0434\u0435\u0440\u0436\u0430\u043b \u0436\u0438\u0432\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043d\u0430 \u043b\u0438\u043d\u0438\u0438, \u043f\u043e\u043a\u0430 \u0432 \u0444\u043e\u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u0432\u0435\u0441\u0430.<\/p>\n<h4>\u0422\u0451\u043f\u043b\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0434\u0435\u043b\u0438<\/h4>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0438 \u0436\u0438\u0432\u0451\u0442, \u043e\u0431\u0449\u0430\u044f\u0441\u044c \u0441 Node \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u043c JSON \u043f\u043e stdin\/stdout:<\/p>\n<pre><code>Protocol (one JSON object per line, newline-terminated):  Request  (stdin):    {\"id\": 7, \"wav\": \"\u2026\/rec.wav\", \"language\": \"ru\", \"vad\": false}  Response (stdout, exactly one line per request):    {\"result\":\"ok\",\"id\":7,\"text\":\"\u2026\",\"segments\":[\u2026],     \"filtered\":[\u2026],\"language\":\"ru\",\"language_probability\":0.98,     \"duration\":12.0,\"inferenceSec\":3.9}    {\"result\":\"error\",\"id\":7,\"error\":\"&lt;message&gt;\"}<\/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>\u0414\u0432\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435: \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f <strong>\u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<\/strong>, \u0430 \u043d\u0435 \u0440\u043e\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041e\u0434\u0438\u043d \u0431\u0438\u0442\u044b\u0439 WAV \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u0431\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c:<\/p>\n<pre><code class=\"python\">for line in sys.stdin:    try:        req = json.loads(line)    except json.JSONDecodeError as e:        emit({\"result\": \"error\", \"error\": f\"bad request json: {e}\"})        continue    try:        emit(transcribe_one(model, req, args.language))    except Exception as e:  # never let one bad WAV kill the loop        emit({\"result\": \"error\", \"id\": req.get(\"id\"), \"error\": repr(e)})<\/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>\u0412\u0442\u043e\u0440\u043e\u0435: \u043c\u0430\u0440\u043a\u0435\u0440 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f \u0432 <strong>stderr<\/strong>, \u0447\u0442\u043e\u0431\u044b stdout \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0447\u0438\u0441\u0442\u044b\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432. \u041c\u0435\u043b\u043e\u0447\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0447\u0430\u0441\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<\/p>\n<h4>Whisper, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e YouTube<\/h4>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440 \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439. Whisper \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0442\u0438\u0448\u0438\u043d\u0443 \u0438\u043b\u0438 \u0448\u0443\u043c, \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u0432\u044b\u0434\u0430\u0451\u0442 \u0442\u0438\u0442\u0440\u044b \u0438\u0437 \u0440\u043e\u043b\u0438\u043a\u043e\u0432:<\/p>\n<pre><code class=\"python\">HALLUCINATION_RE = re.compile(\"|\".join([    r\"\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\\s+\u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432\",    r\"\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043e\u0440\\s+\",    r\"\u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b\\s+(?:\u0441\u0434\u0435\u043b\u0430\u043b|\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b|\u0434\u043e\u0431\u0430\u0432\u0438\u043b|\u043e\u0442\\s+\u043f\u043e\u0434\u043f\u0438\u0441\u0447)\",    r\"\u0441\u043f\u0430\u0441\u0438\u0431\u043e\\s+\u0437\u0430\\s+\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\",    r\"\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\\s+\u0441\u043b\u0435\u0434\u0443\u0435\u0442\",    r\"\u043f\u043e\u0434\u043f\u0438\u0441(?:\u044b\u0432|\u043a\u0430)\\w*\\s+\u043d\u0430\\s+\u043a\u0430\u043d\u0430\u043b\",    r\"\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e\\s+\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430\",    r\"\\[\\s*\u043c\u0443\u0437\u044b\u043a\u0430\\s*\\]\",    r\"\\[\\s*\u0442\u0438\u0448\u0438\u043d\u0430\\s*\\]\",    r\"Subtitles?\\s+by\",]), re.IGNORECASE)<\/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 \u043d\u0435 \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u2014 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0432\u0448\u0438\u0435 \u0438\u0437 \u0442\u0438\u0448\u0438\u043d\u044b \u043d\u0430 \u043b\u0438\u043d\u0438\u0438. \u0411\u0435\u0437 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043b\u0438\u0434\u043e\u0432, \u0433\u0434\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u044f\u043a\u043e\u0431\u044b \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043b \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0438 \u043f\u0440\u043e\u0441\u0438\u043b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043d\u0430\u043b.<\/p>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u0430: \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0431\u0443\u0447\u0430\u043b\u0430\u0441\u044c \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0430 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u0430\u0445, \u0438 \u043d\u0430 \u043d\u0438\u0437\u043a\u043e\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0445\u043e\u0434\u0435 \u0441\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0430\u043c\u044b\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u044b\u0435 \u0444\u0440\u0430\u0437\u044b \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438. \u041b\u0435\u0447\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c VI. \u0414\u0435\u043d\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u0441\u0451 \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c: \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u0447\u0430\u0441\u0442\u044c, \u0440\u0430\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u0435\u043b \u044d\u0442\u043e \u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e \u0432\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0417\u0430\u0447\u0435\u043c \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043b\u0438\u043d\u0438\u044e, \u043f\u043e\u043a\u0430 \u0438\u0434\u0451\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435? \u0417\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0430\u0443\u0434\u0438\u043e \u0436\u0438\u0432\u044c\u0451\u043c, <strong>\u0441\u0440\u0430\u0437\u0443 \u043a\u043b\u0430\u0434\u0451\u043c \u0442\u0440\u0443\u0431\u043a\u0443<\/strong>, \u0430 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u0443\u0435\u043c \u0432 \u0444\u043e\u043d\u0435, \u043f\u043e\u043a\u0430 \u0440\u043e\u0431\u043e\u0442 \u0443\u0436\u0435 \u0437\u0432\u043e\u043d\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440, \u043f\u043e\u043b\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>\u042d\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435.<\/p>\n<h4>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e<\/h4>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u2014 Intel i7-6600U: <strong>2 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u044f\u0434\u0440\u0430, 4 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445<\/strong>. \u0414\u0430\u0436\u0435 \u0432 \u043f\u043e\u043a\u043e\u0435 \u0445\u043e\u0441\u0442 \u0441\u0438\u0434\u0435\u043b \u043d\u0430 ~57% CPU.<\/p>\n<p>\u0424\u043e\u043d\u043e\u0432\u0430\u044f \u0438\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f <code>medium<\/code> \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c ~49 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0432\u0441\u0435 \u044f\u0434\u0440\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u0418 \u043e\u043d\u0430 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u043d\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0443 \u2014 \u0430 \u044d\u0442\u043e <strong>\u0440\u0435\u0430\u043b\u0442\u0430\u0439\u043c\u043e\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430<\/strong>: 8 \u0441\u0435\u043a\u0443\u043d\u0434 \u0437\u0432\u0443\u043a\u0430 \u043d\u0430\u0434\u043e \u043e\u0442\u0434\u0430\u0442\u044c \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0440\u043e\u0432\u043d\u043e \u0437\u0430 8 \u0441\u0435\u043a\u0443\u043d\u0434, \u0431\u0435\u0437 \u043f\u0440\u0430\u0432\u0430 \u043e\u043f\u043e\u0437\u0434\u0430\u0442\u044c.<\/p>\n<p>\u042f\u0434\u0435\u0440 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e, \u0431\u0443\u0444\u0435\u0440 \u043d\u0435 \u0443\u0441\u043f\u0435\u0432\u0430\u043b \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f, \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438\u0441\u044c underrun&#8217;\u044b. \u0410\u0431\u043e\u043d\u0435\u043d\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0441\u043b\u044b\u0448\u0430\u043b \u0440\u0432\u0430\u043d\u0438\u043d\u0443.<\/p>\n<p>\u0425\u0443\u0436\u0435 \u0432\u0441\u0435\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e: <a href=\"http:\/\/sd.play\" rel=\"noopener noreferrer nofollow\"><code>sd.play<\/code><\/a><code>()<\/code> \u0438\u0437 <code>sounddevice<\/code> \u043f\u0440\u043e underrun&#8217;\u044b \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442. \u0412 \u043b\u043e\u0433\u0430\u0445 \u0447\u0438\u0441\u0442\u043e, \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u0435, \u0437\u0432\u043e\u043d\u043a\u0438 \u0438\u0434\u0443\u0442.<\/p>\n<h4>\u041a\u0430\u043a \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u043e\u0441\u044c<\/h4>\n<p>\u041d\u0435 \u043f\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0443. \u041f\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430\u043c.<\/p>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442\u0430\u0445 \u043b\u044e\u0434\u0435\u0439 \u0441\u0442\u0430\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u00ab\u0447\u0442\u043e-\u0442\u043e \u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c?\u00bb, \u00ab\u0430\u043b\u043b\u043e, \u043d\u0435 \u0441\u043b\u044b\u0448\u043d\u043e\u00bb, \u00ab\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435\u00bb. \u041b\u044e\u0434\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 \u043d\u0435 \u043d\u0430 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435, \u0430 \u043d\u0430 \u0435\u0433\u043e \u043e\u0431\u0440\u044b\u0432\u043a\u0438. \u041a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u0435\u043b \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0438\u0446\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0432\u0441\u0451 \u0432 \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u0439 \u0443\u0449\u0435\u0440\u0431 \u0431\u044b\u043b \u0435\u0449\u0451 \u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0437\u0433\u0440\u0435\u0431\u0430\u043b \u043c\u0443\u0441\u043e\u0440.<\/p>\n<p>\u042d\u0442\u043e, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0432\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430: <strong>\u0432 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u2014 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u044f<\/strong>. \u041b\u044e\u0434\u0438 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u044e\u0442 \u0432\u0430\u043c \u0432\u0430\u0448\u0438 \u0431\u0430\u0433\u0438, \u0435\u0441\u043b\u0438 \u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0442\u0438\u0432 \u0438\u043d\u0441\u0442\u0438\u043d\u043a\u0442\u0430<\/h4>\n<p>\u041a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u043d \u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c:<\/p>\n<pre><code>dial \u2192 greeting \u2192 capture \u2192 HANGUP (\u043b\u0438\u043d\u0438\u044f \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430) \u2192transcribe \u043d\u0430 \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0432\u0448\u0435\u043c\u0441\u044f CPU \u2192 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432 Telegram \u2192 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440<\/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\u0447\u0435\u0440\u0435\u0434\u044c \u0440\u0430\u0431\u043e\u0442 \u0441 concurrency = 1. \u0422\u0440\u0443\u0431\u043a\u0430 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043a\u043b\u0430\u0434\u0451\u0442\u0441\u044f \u0434\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 whisper \u043c\u043e\u043b\u043e\u0442\u0438\u0442 \u0443\u0436\u0435 \u043f\u0440\u0438 \u0440\u0430\u0437\u043e\u0440\u0432\u0430\u043d\u043d\u043e\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438 \u0438 \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u0440\u0436\u0438\u0442. \u041d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0433\u043e\u0442\u043e\u0432 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430. \u0418\u043d\u0444\u0435\u0440\u0435\u043d\u0441 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u0443\u0435\u0442 \u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>\u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0430\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u0436\u0435. \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u00ab\u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043d\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u0440\u0447\u0435\u043d\u0430\u00bb \u2014 \u044d\u0442\u043e \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041d\u0430 \u0441\u043b\u0430\u0431\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440, \u0433\u0434\u0435 \u0440\u0435\u0430\u043b\u0442\u0430\u0439\u043c\u043e\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0434\u0435\u043b\u0438\u0442 \u044f\u0434\u0440\u0430 \u0441 \u0442\u044f\u0436\u0451\u043b\u044b\u043c \u0441\u0447\u0451\u0442\u043e\u043c, \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c.<\/p>\n<p>\u041f\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0437\u043d\u0430\u0442\u044c: HTTP-\u0440\u0443\u0447\u043a\u0430 \u00ab\u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441\u00bb \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430 \u043f\u0440\u043e\u0442\u0435\u043a\u0430\u0435\u0442 \u043d\u0430\u0440\u0443\u0436\u0443 \u0432 API \u2014 \u044d\u0442\u043e \u0446\u0435\u043d\u0430, \u0438 \u0435\u0451 \u043d\u0430\u0434\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u043e.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c VII. \u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u0446\u0438\u0444\u0440\u0430\u0445<\/h3>\n<p>\u0421 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u0430:<\/p>\n<ul>\n<li>\n<p>\u0442\u0435\u043c\u043f \u2014 <strong>~83 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430 \u0437\u0432\u043e\u043d\u043e\u043a<\/strong> \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043e\u0442 \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0432 Telegram;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 <code>medium<\/code> \u2014 <strong>~49 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c<\/strong>, \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 168 \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0434 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0435\u0439 \u0437\u0430 CPU;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u2014 <strong>147 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/strong>, \u0434\u0430\u043b\u044c\u0448\u0435 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u0440\u0430\u0437\u0431\u043e\u0440 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0446\u0435\u043b\u0435\u0432\u044b\u0435 <strong>300 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c<\/strong> \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0442\u0435\u043c\u043f\u0435 \u0443\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 7\u20138 \u0447\u0430\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u2014 \u044d\u0442\u043e \u0431\u044b\u043b\u0430 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0430\u044f \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0441\u043b\u0430\u0431\u043e\u0435 \u0437\u0432\u0435\u043d\u043e \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440. \u041e\u043d \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0445: \u043b\u043e\u0432\u0438\u0442 \u044f\u0432\u043d\u044b\u0435 \u00ab\u0434\u0430\u00bb \u0438 \u00ab\u043d\u0435\u0442\u00bb, \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 <code>unknown<\/code> \u0438 \u043d\u0430 \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c. \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 LLM \u043e\u0434\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f (\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <code>Classifier<\/code> \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u043d), \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0432\u043e\u043f\u0440\u043e\u0441 \u0431\u044e\u0434\u0436\u0435\u0442\u0430, \u0430 \u043d\u0435 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u0438.<\/p>\n<p>\u0427\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0432 Telegram \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u043a\u0443: \u043b\u0438\u0434 \u0438 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u044f, \u0432\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0438\u0437 \u0438\u043c\u043f\u043e\u0440\u0442\u0430, \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u0430, \u0432\u0435\u0440\u0434\u0438\u043a\u0442 \u0438 \u043f\u0443\u0442\u044c \u043a \u0437\u0430\u043f\u0438\u0441\u0438. \u0421\u043b\u0443\u0448\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u2014 \u0432 \u044d\u0442\u043e\u043c \u0438 \u0431\u044b\u043b \u0441\u043c\u044b\u0441\u043b.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c VIII. \u0413\u0440\u0430\u0431\u043b\u044f \u043d\u0435 \u043f\u043e \u0442\u0435\u043c\u0435, \u0441\u044a\u0435\u0432\u0448\u0430\u044f \u0432\u0435\u0447\u0435\u0440<\/h3>\n<p>\u0411\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 watchdog-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0435. \u041f\u043e\u0441\u043b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u043d \u043c\u043e\u043b\u0447\u0430 \u043d\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0441\u044f. \u041d\u0438 \u043e\u0448\u0438\u0431\u043a\u0438, \u043d\u0438 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 \u043b\u043e\u0433\u0435 \u2014 \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u043c\u0438\u0440\u0430\u043b \u0440\u0430\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0443\u0441\u043f\u0435\u0432\u0430\u043b \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430: \u0432 PowerShell-\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0431\u044b\u043b\u0438 \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u0442\u0438\u0440\u0435 <code>\u2014<\/code>, \u0430 \u0444\u0430\u0439\u043b \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d \u0432 <strong>UTF-8 \u0431\u0435\u0437 BOM<\/strong>. Windows PowerShell 5.1 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0441 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u043e\u0439 cp1251 \u0431\u0435\u0437 BOM \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u043e\u0434\u043d\u043e\u0431\u0430\u0439\u0442\u043e\u0432\u044b\u043c, \u0441\u043f\u043e\u0442\u044b\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u043d\u043e\u0433\u043e\u0431\u0430\u0439\u0442\u043e\u0432\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0435 \u0438 \u043f\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u2014 \u0434\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e \u043b\u044e\u0431\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u041b\u0435\u0447\u0435\u043d\u0438\u0435: \u0432\u0435\u0441\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043d \u0432 \u0447\u0438\u0441\u0442\u044b\u0439 ASCII, \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u0442\u0438\u0440\u0435 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 \u0434\u0435\u0444\u0438\u0441\u044b. \u0415\u0441\u043b\u0438 \u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0435-ASCII \u2014 \u0442\u043e\u043b\u044c\u043a\u043e UTF-8 <strong>\u0441 BOM<\/strong>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u0430 \u0432 \u043b\u043e\u0433\u0430\u0445 \u043f\u0443\u0441\u0442\u043e \u2014 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u0439\u0442\u0435 \u043d\u0435 \u043b\u043e\u0433\u0438\u043a\u0443, \u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443.<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044c IX. \u0427\u0435\u0441\u0442\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0420\u0430\u0437 \u0443\u0436 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0439, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0436\u0435 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p><strong>\u041d\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e.<\/strong> \u041e\u0434\u0438\u043d \u0430\u043a\u043a\u0430\u0443\u043d\u0442 WhatsApp = \u043e\u0434\u043d\u0430 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430. \u041d\u0443\u0436\u043d\u0430 \u0436\u0438\u0432\u0430\u044f Windows-\u0441\u0435\u0441\u0441\u0438\u044f \u0441 \u043d\u0435\u0437\u0430\u0441\u0432\u0451\u0440\u043d\u0443\u0442\u044b\u043c \u043e\u043a\u043d\u043e\u043c. \u0414\u043b\u044f \u043e\u0431\u044a\u0451\u043c\u0430 \u043d\u0443\u0436\u0435\u043d \u043f\u0443\u043b \u043c\u0430\u0448\u0438\u043d \u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u2014 \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u043f\u043e \u0436\u0435\u043b\u0435\u0437\u0443.<\/p>\n<\/li>\n<li>\n<p><strong>Linux \u0438 headless \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435.<\/strong> \u041d\u0443\u0436\u0435\u043d \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0434\u0435\u0441\u043a\u0442\u043e\u043f \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0430\u0443\u0434\u0438\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 CPU \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/strong> \u041d\u0430 \u0434\u0432\u0443\u0445 \u044f\u0434\u0440\u0430\u0445 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043e\u0431\u044f\u0437\u0430\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c; \u043d\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0442\u0435\u043c\u043f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/strong> \u041c\u0435\u043d\u044f\u044e\u0442\u0441\u044f <code>automation_id<\/code>, \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0451\u0440\u0441\u0442\u043a\u0430, \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u0442\u0430\u0439\u043c\u0435\u0440. \u0427\u0430\u0441\u0442\u044c \u0437\u0430\u0449\u0438\u0442\u044b \u0443\u0436\u0435 \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u0430 (\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u043d\u0430 \u0434\u0432\u0443\u0445 \u044f\u0437\u044b\u043a\u0430\u0445, \u0434\u0432\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043f\u0438\u043a\u0430\u043f\u0430), \u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0438\u0441\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0435\u0440\u0430\u044f \u0437\u043e\u043d\u0430 \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<\/strong> \u0412 README \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044d\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u044f\u043c\u043e: \u043d\u0435 \u0434\u043b\u044f \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0445 \u0431\u0430\u0437, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f. \u041d\u0438 \u043e\u0434\u0438\u043d \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u044e\u043a \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0442\u043e \u0431\u044b \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0438\u043d\u0430\u0447\u0435, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0437\u0430\u043d\u043e\u0432\u043e: \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043b\u043e\u0436\u0438\u043b \u0431\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0438 \u043d\u0435 \u0442\u0440\u0430\u0442\u0438\u043b \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e\u00bb \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u0435 \u0431\u044b\u043b\u0430 \u043e\u0431\u0440\u0435\u0447\u0435\u043d\u0430. \u0418 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0431\u044b \u0444\u0438\u043b\u044c\u0442\u0440 \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439 \u2014 \u043d\u0430 \u043d\u0435\u0433\u043e \u0443\u0448\u043b\u043e \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0443\u043c\u0435\u043d\u0438\u044f.<\/p>\n<hr\/>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0441\u0432\u044f\u0437\u043a\u0430 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0441\u043b\u043e\u0451\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u043b\u0435\u0437\u0435\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u0443\u0440\u043e\u0432\u043d\u0435:<\/p>\n<ol>\n<li>\n<p><strong>Playwright \u043f\u043e CDP<\/strong> \u2014 \u0432 WebView2 \u0432\u043d\u0443\u0442\u0440\u0438 WinUI3-\u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438: \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e \u0447\u0430\u0442\u0430\u043c, \u043a\u043b\u0438\u043a \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u0437\u0432\u043e\u043d\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>Python + pywinauto (UI Automation)<\/strong> \u2014 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u0437\u0432\u043e\u043d\u043a\u0430: \u0434\u0435\u0442\u0435\u043a\u0442 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u044f \u0442\u0440\u0443\u0431\u043a\u0438 \u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0443\u0434\u0438\u043e\u043a\u0430\u0431\u0435\u043b\u0438 VB-Audio<\/strong> \u2014 \u0432\u043c\u0435\u0441\u0442\u043e \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u043e\u0432, \u0441 per-app \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 \u0430\u0443\u0434\u0438\u043e\u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 Windows \u0438 \u0448\u0443\u043c\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u043e\u043c \u043f\u0440\u043e\u0442\u0438\u0432 VAD.<\/p>\n<\/li>\n<li>\n<p><strong>faster-whisper \u0442\u0451\u043f\u043b\u044b\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c<\/strong> \u2014 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0446\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u044f \u0432\u044b\u043d\u0435\u0441, \u043b\u0435\u0436\u0438\u0442 \u043d\u0435 \u0432 \u043a\u043e\u0434\u0435: \u0437\u0430\u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 UI-\u0445\u044d\u043d\u0434\u043b \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u0435\u0442 \u043c\u043e\u043b\u0447\u0430, \u0440\u0435\u0430\u043b\u0442\u0430\u0439\u043c\u043e\u0432\u044b\u0439 \u0437\u0432\u0443\u043a \u043d\u0435 \u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043f\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0443, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u044e\u0442 \u0432\u0430\u043c \u0432\u0430\u0448\u0438 \u0431\u0430\u0433\u0438, \u0430 PowerShell \u043d\u0435 \u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f BOM.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 WinUI3-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 UIA \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a \u0432\u044b \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435\u0441\u044c \u0441 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u043c\u0438 \u043e\u043a\u043d\u0430\u043c\u0438 \u0438 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u043c\u0438 <code>automation_id<\/code> \u043c\u0435\u0436\u0434\u0443 \u0441\u0431\u043e\u0440\u043a\u0430\u043c\u0438. \u0418 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e, \u043b\u043e\u0432\u0438\u043b \u043b\u0438 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0435\u0449\u0451 \u0433\u0435\u0439\u0442\u0438\u043d\u0433 WebRTC VAD \u043d\u0430 \u043f\u043e\u0434\u0430\u0447\u0435 \u043f\u0440\u0435\u0434\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u0443\u0434\u0438\u043e \u0438 \u0440\u0435\u0448\u0430\u043b \u043b\u0438 \u044d\u0442\u043e \u0438\u043d\u0430\u0447\u0435, \u0447\u0435\u043c \u0448\u0443\u043c\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u043e\u043c.<\/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\/1062882\/\">https:\/\/habr.com\/ru\/articles\/1062882\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0432 \u043e\u0434\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0440\u043e\u0431\u043e\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0430\u043c \u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043b\u044e\u0434\u044f\u043c \u0432 WhatsApp, \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0438 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u0441 \u0432\u0435\u0440\u0434\u0438\u043a\u0442\u043e\u043c \u00ab\u0434\u0430 \/ \u043d\u0435\u0442 \/ \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438\u00bb.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0423 WhatsApp \u043d\u0435\u0442 API \u0434\u043b\u044f \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432: Business API \u0443\u043c\u0435\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u0443\u043c\u0435\u044e\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438, \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u043d\u0430\u0433\u043b\u0443\u0445\u043e. \u0413\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c\u0433\u0438, \u043d\u0438 \u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0434\u0435\u043d\u044c\u0433\u0438.\u0417\u0430\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0443\u043c\u0435\u0435\u0442. \u0418 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430 \u0440\u0443\u043a\u0443.\u042d\u0442\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e: \u0441 \u0447\u0435\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0443\u043c\u0435\u0440\u043b\u0438 \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435, \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043b\u043e\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u043e\u0442 CDP \u0434\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u0443\u0434\u0438\u043e\u043a\u0430\u0431\u0435\u043b\u0435\u0439 \u2014 \u0438 \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u043a \u043f\u0440\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u0440\u043a\u043d\u0443\u043b \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0443\u0436\u0435 \u043d\u0430 \u0436\u0438\u0432\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u0430\u0445.\u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c: \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u044d\u0442\u043e \u0441\u0435\u0440\u0430\u044f \u0437\u043e\u043d\u0430, \u0438 \u044f \u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u044d\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c. \u041c\u043d\u0435 \u0437\u0434\u0435\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0447\u0438\u0441\u0442\u0430\u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u044f \u2014 \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0438 \u0440\u0438\u0441\u043a\u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435.\u041a\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e. \u0412\u0441\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0436\u0438\u0432\u0451\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445.\u0427\u0430\u0441\u0442\u044c I. \u0421 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: \u043e\u0431\u044b\u0447\u043d\u044b\u0439 SIP\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e WhatsApp \u043d\u0435 \u0431\u044b\u043b\u043e. \u0411\u044b\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0434\u043e\u0432 \u0438\u0437 \u0431\u0430\u0437\u044b: \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c, \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u00ab\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 1\u00bb. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0432\u0442\u043e\u043e\u0431\u0437\u0432\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f SIP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439.\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0437\u0430 HTTP, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043f\u043e\u043b\u0442\u043e\u0440\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:export class SipVoiceProvider implements VoiceCallProvider {  readonly name = &#8216;sip&#8217; as const;  async call(req: VoiceCallRequest): Promise&lt;VoiceCallResult&gt; {    const res = await fetch(`${this.cfg.baseUrl.replace(\/\\\/$\/, &#187;)}\/calls`, {      method: &#8216;POST&#8217;,      headers: {        &#8216;content-type&#8217;: &#8216;application\/json&#8217;,        authorization: `Bearer ${this.cfg.token}`,      },      body: JSON.stringify({        phone: req.phone,        audio_url: req.audioPath,        callback_id: String(req.leadId),      }),    });    \/\/ \u2026  }}\u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0418 \u0443\u043f\u0451\u0440\u043b\u043e\u0441\u044c \u043d\u0435 \u0432 \u0442\u0435\u0445\u043d\u0438\u043a\u0443, \u0430 \u0432 \u043b\u044e\u0434\u0435\u0439.\u0417\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0431\u0435\u0440\u0451\u0442 \u0442\u0440\u0443\u0431\u043a\u0443 \u0441 \u043d\u0435\u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432. \u041d\u0435 \u00ab\u043d\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c\u00bb, \u0430 \u043d\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0430 \u0442\u0440\u0443\u0431\u043a\u0443 \u0432\u043e\u043e\u0431\u0449\u0435: \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0437\u0432\u043e\u043d\u0438\u0442, \u043d\u043e\u043c\u0435\u0440 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439, \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442. \u041a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0442\u043e\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0431\u0438\u0442\u044c.\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u043b\u044e\u0434\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u043d\u0430 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435. \u0422\u0430\u043c \u043d\u0435\u0442 \u043e\u0431\u0435\u0437\u043b\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u2014 \u0442\u0430\u043c \u0430\u0432\u0430\u0442\u0430\u0440, \u0438\u043c\u044f, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u041f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a.\u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: \u043a\u0430\u0441\u043a\u0430\u0434\u041e\u0442\u0441\u044e\u0434\u0430 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435:CSV\/Excel  \u2192  SIP-\u0437\u0432\u043e\u043d\u043e\u043a  \u2192  WhatsApp Desktop-\u0437\u0432\u043e\u043d\u043e\u043a  \u2192  STT + \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f  \u2192  \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432 Telegram               (DTMF 1\/2)      (greeting WAV \u2192 \u043e\u0442\u0432\u0435\u0442)      (whisper medium)       (\u043b\u0438\u0434 + \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442)\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a. \u041d\u0435 \u0432\u0437\u044f\u043b\u0438 \u0442\u0440\u0443\u0431\u043a\u0443 \u2014 \u0442\u0435\u043c \u0436\u0435 \u043b\u044e\u0434\u044f\u043c \u0443\u0445\u043e\u0434\u0438\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0447\u0435\u0440\u0435\u0437 WhatsApp. \u042d\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430, \u0430 \u0434\u043e\u0431\u043e\u0440 \u043e\u0445\u0432\u0430\u0442\u0430 \u0441\u0432\u0435\u0440\u0445\u0443: \u043c\u044b \u0434\u043e\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0434\u043e \u0442\u0435\u0445, \u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0442\u0435\u0440\u044f\u0435\u0442, \u043d\u0435 \u043a\u0430\u043d\u043d\u0438\u0431\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044f \u0435\u0433\u043e.\u0411\u044b\u043b \u0435\u0449\u0451 \u0442\u0440\u0435\u0442\u0438\u0439, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u2014 wa_text, follow-up \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043e\u0442\u0432\u0435\u0442\u0430. \u0415\u0433\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0432\u044b\u0440\u0435\u0437\u0430\u043b\u0438: \u043e\u043d \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u043b \u0444\u043e\u043a\u0443\u0441 \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443, \u0430 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u0432 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0438 \u0431\u0435\u0437 \u043d\u0430\u0441. \u0420\u0435\u0436\u0438\u043c \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0447\u0438\u0441\u0442\u043e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u043c.\u041e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u0438\u0442\u044c.\u0420\u0430\u0437\u0432\u0435\u0434\u043a\u0430: \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c\u041f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u043a\u043e\u0434, \u0430 \u0432\u0441\u043a\u0440\u044b\u0442\u0438\u0435. \u0412 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043b\u0435\u0436\u0430\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430: inspect_wa.py, probe_call_window.py, probe-call-button.ts, wa-desktop-inspect-header.ts, wa-desktop-inspect-menu.ts. \u0421\u043a\u0440\u0438\u043f\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442 \u2014 \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0434\u044f\u0442 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438 \u043f\u0435\u0447\u0430\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0432\u0438\u0434\u044f\u0442.\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u044d\u0442\u0430\u043f\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u043e \u0432\u0441\u044e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443.\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 WhatsApp Desktop (Beta) \u043f\u043e\u0434 Windows \u2014 \u044d\u0442\u043e \u043d\u0435 Electron \u0438 \u043d\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c. \u042d\u0442\u043e WinUI3-\u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0436\u0438\u0432\u0451\u0442 WebView2, \u0430 \u0432 \u043d\u0451\u043c \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 web.whatsapp.com.\u0422\u043e \u0435\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 \u0431\u0440\u0430\u0443\u0437\u0435\u0440. \u0410 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c.\u0412\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c: \u043e\u043a\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u2014 \u0443\u0436\u0435 \u043d\u0435 \u0432\u0435\u0431. \u042d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 WinUI3-\u043e\u043a\u043d\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 DOM \u043d\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435.\u0422\u0430\u043a \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0434\u0432\u0430 \u0441\u043b\u043e\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438: \u0432\u0435\u0431-\u0447\u0430\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Playwright \u0438 \u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Windows UI Automation. \u0410 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0443\u0436\u0435\u043d \u0435\u0449\u0451 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u043b\u043e\u0439 \u2014 \u0437\u0432\u0443\u043a.\u0427\u0430\u0441\u0442\u044c II. \u0421\u043b\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439: WebView2 \u0438 CDPWebView2 \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS=&#8212;remote-debugging-port=9222 &#8212;remote-allow-origins=*\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u2014 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430:const browser = await chromium.connectOverCDP(&#8216;http:\/\/127.0.0.1:9222&#8217;);\u0413\u0440\u0430\u0431\u043b\u044f: \u043f\u043e\u0440\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 WhatsApp\u042d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u043d\u0435 \u0434\u043b\u044f WhatsApp, \u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e WebView2-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041d\u0430 9222 \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u2014 \u0432\u0438\u0434\u0436\u0435\u0442, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a, \u043b\u044e\u0431\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0442\u0435\u043a\u0435. \u0412\u0437\u044f\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0435\u043b\u044c\u0437\u044f:\/** * Find the WhatsApp page across all of a browser&#8217;s contexts. The global * WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS env var opens the same debug port * for EVERY WebView2 app, so a non-WhatsApp app could be the one answering * on this port \u2014 we only accept a browser that actually exposes a * web.whatsapp.com page (stable or beta, consumer or business). *\/private static findWhatsAppPage(browser: Browser): { ctx: BrowserContext; page: Page } | null {  for (const ctx of browser.contexts()) {    const page = ctx.pages().find((p) =&gt; p.url().includes(&#8216;web.whatsapp.com&#8217;));    if (page) return { ctx, page };  }  return null;}\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0434\u0430\u0451\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 WhatsApp. \u0418 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0440\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u2014 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0438 \u0431\u0435\u0442\u0430 \u043c\u0430\u043f\u044f\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435.\u0413\u0440\u0430\u0431\u043b\u044f: \u043e\u043a\u043d\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u043a\u043b\u0438\u043a\u0430\u0442\u044c\u0441\u044f\u041a\u043d\u043e\u043f\u043a\u0430 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u0436\u0438\u0432\u0451\u0442 \u0432 DOM, \u0437\u043d\u0430\u0447\u0438\u0442 \u043a\u043b\u0438\u043a\u0430\u0435\u0442\u0441\u044f Playwright&#8217;\u043e\u043c. \u0422\u0430\u043a \u044f \u0434\u0443\u043c\u0430\u043b.\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043a\u043b\u0438\u043a \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b, \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043e\u043a\u043d\u043e WhatsApp \u0431\u044b\u043b\u043e \u043d\u0430 \u043f\u0435\u0440\u0435\u0434\u043d\u0435\u043c \u043f\u043b\u0430\u043d\u0435. \u0421\u0442\u043e\u0438\u043b\u043e \u0443\u0432\u0435\u0441\u0442\u0438 \u0444\u043e\u043a\u0443\u0441 \u2014 \u0432\u044b\u0437\u043e\u0432 \u043c\u043e\u043b\u0447\u0430 \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0441\u044f: \u0432 \u043b\u043e\u0433\u0430\u0445 page.click failed, falling back to clickByRect, \u0444\u043b\u0430\u0433 everSawWindow:false, \u043e\u043a\u043d\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c.\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f Chromium. WebView2 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0447\u0442\u043e \u043e\u043a\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0442\u043e, \u0438 \u0442\u0440\u043e\u0442\u0442\u043b\u0438\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433: \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c layout, \u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u0430\u0439\u043c\u0435\u0440\u044b, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0432 \u0444\u043e\u043d. Playwright, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0434 \u043a\u043b\u0438\u043a\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0432 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0431\u0435\u0441\u0441\u0438\u043b\u0435\u043d.\u041b\u0435\u0447\u0438\u0442\u0441\u044f \u043d\u0435 \u043a\u043e\u0434\u043e\u043c, \u0430 \u0444\u043b\u0430\u0433\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:&#8212;disable-features=CalculateNativeWinOcclusion,CalculateNativeWinOcclusionTracking&#8212;disable-backgrounding-occluded-windows&#8212;disable-renderer-backgrounding&#8212;disable-background-timer-throttling\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435 \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443: \u0437\u0430\u043a\u0440\u044b\u0442\u044c WhatsApp, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c explorer.exe (\u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435), \u0437\u0430\u043d\u043e\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0438 \u043f\u043e \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043e\u043a\u043d\u0443 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442. \u041d\u043e \u043d\u0435 \u043f\u043e \u0441\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u043c\u0443: \u0443 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u044b 0\u00d70, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0434\u043b\u044f \u043a\u043b\u0438\u043a\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0442. \u041e\u0442\u0441\u044e\u0434\u0430 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443: \u043e\u043a\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0447\u0435\u043c \u0443\u0433\u043e\u0434\u043d\u043e, \u043d\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c.\u0413\u0440\u0430\u0431\u043b\u044f: React \u043d\u0435 \u0432\u0435\u0440\u0438\u0442 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u043b\u0438\u043a\u0430\u043c\u041e\u0431\u044b\u0447\u043d\u044b\u0439 page.click() \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0430 React-\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 WhatsApp \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u0433\u043e\u043b\u044b\u0439 dispatchEvent(new MouseEvent(&#8216;click&#8217;)) \u2014 \u0438\u043c \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439:(sel) =&gt; {  const btn = document.querySelector(sel);  if (!btn) throw new Error(&#8216;forceClick: not found: &#8216; + sel);  const r = btn.getBoundingClientRect();  const x = r.left + r.width \/ 2;  const y = r.top + r.height \/ 2;  const opts = { bubbles: true, cancelable: true, composed: true, view: window,                 clientX: x, clientY: y, button: 0, buttons: 1 };  btn.dispatchEvent(new PointerEvent(&#8216;pointerdown&#8217;, opts));  btn.dispatchEvent(new MouseEvent(&#8216;mousedown&#8217;, opts));  btn.dispatchEvent(new PointerEvent(&#8216;pointerup&#8217;, opts));  btn.dispatchEvent(new MouseEvent(&#8216;mouseup&#8217;, opts));  btn.dispatchEvent(new MouseEvent(&#8216;click&#8217;, opts));}\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u044d\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430, \u0430 \u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f: \u0441\u0431\u043e\u0440\u0449\u0438\u043a (esbuild\/tsx) \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0445\u0435\u043b\u043f\u0435\u0440\u043e\u043c name, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 page.evaluate() \u2014 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 name is not defined \u0432\u043d\u0443\u0442\u0440\u0438 WhatsApp. \u0421\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u043a\u0430\u043a \u0435\u0441\u0442\u044c.\u0413\u0440\u0430\u0431\u043b\u044f: \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441\u0430\u043c\u0430 \u0441\u0435\u0431\u044f\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0447\u0430\u0442\u0430 \u2014 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e deep-link \u0441 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430. \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u0435\u043b\u0430\u043b\u0430 \u0442\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043f\u043e 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0436\u0435: \u043d\u0435 \u0434\u043e\u0436\u0434\u0430\u043b\u0438\u0441\u044c \u2014 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c.\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442:\/\/ When the linked account is under heavy parallel call load, each deep-link\/\/ navigation reloads WA Web into its &#171;downloading messages&#187; sync screen, which\/\/ can take longer to settle. Re-navigating RESTARTS that sync from scratch, so\/\/ too many short attempts prevent it from ever completing. We therefore give a\/\/ single long header wait and only one safety re-navigation.const CHAT_OPEN_TIMEOUT_MS = 60_000;const CHAT_OPEN_ATTEMPTS = 2;\u041f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043a\u0430\u0436\u0434\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0440\u043e\u043d\u044f\u0435\u0442 WA Web \u0432 \u044d\u043a\u0440\u0430\u043d \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u044d\u0442\u0443 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0437\u0430\u043d\u043e\u0432\u043e. \u0422\u0440\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430. \u041e\u0434\u043d\u043e \u0434\u043b\u0438\u043d\u043d\u043e\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0440\u0451\u0445 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u2014 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438\u0441\u0447\u0435\u0437\u043b\u0430.\u0415\u0449\u0451 \u043e\u0434\u043d\u0430: \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 WebView2 \u043e\u0434\u043d\u0430, \u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0435\u0439 \u0445\u043e\u0442\u044f\u0442 \u0432\u0441\u0435: \u043d\u0430\u0431\u043e\u0440 \u043d\u043e\u043c\u0435\u0440\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u043f\u0440\u043e\u0441 \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445. \u0417\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e, \u043e\u043d\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u0447\u0430\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0441\u0440\u0435\u0434\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043c\u0438\u0441-\u0446\u0435\u043f\u043e\u0447\u043a\u0443:async runExclusive&lt;T&gt;(fn: () =&gt; Promise&lt;T&gt;): Promise&lt;T&gt; {  const next = this.chain.then(fn, fn);  \/\/ keep the chain alive even if `fn` throws  this.chain = next.catch(() =&gt; undefined);  return next;}\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u044c \u0432 then(fn, fn) \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c .catch(): \u0443\u043f\u0430\u0432\u0448\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0440\u0432\u0430\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u0441\u044f.\u0427\u0430\u0441\u0442\u044c III. \u0421\u043b\u043e\u0439 \u0432\u0442\u043e\u0440\u043e\u0439: \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 UI Automation\u041a\u043b\u0438\u043a \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0437\u0432\u043e\u043d\u043e\u043a \u0443\u0445\u043e\u0434\u0438\u0442. \u0418 \u0442\u0443\u0442 WebView2 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f: \u043e\u043a\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u2014 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435, Playwright \u043e \u043d\u0451\u043c \u043d\u0435 \u0437\u043d\u0430\u0435\u0442.\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439 \u2014 Python-\u0441\u0430\u0439\u0434\u043a\u0430\u0440 \u043d\u0430 pywinauto \u043f\u043e\u0432\u0435\u0440\u0445 UI Automation. \u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u0442\u0440\u0438 \u0432\u0435\u0449\u0438: \u043d\u0430\u0439\u0442\u0438 \u043e\u043a\u043d\u043e&#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-488516","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/488516","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=488516"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/488516\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}