PageSourceSearch

https://olibr.com/_next/static/chunks/280-108a398b2874f11f.js

js olibr.com collected 2026-09-24 13:16:48 UTC 7,340 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[280],{25485:(e,o,n)=>{"use strict";n.d(o,{a1:()=>i,m_:()=>t,om:()=>s});var r=n(99738);let l=null,a="",t=async function(e){var o,n;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",s="6kO8tQc4BDReApX7LlZINBfpIW1mdzG79io9v74V7gqU3yRvGQZ7JQQJ99BBACYeBjFXJ3w3AAAYACOGbVBV",c="eastus";if(!s||!c)return console.error("STT: Speech SDK keys not configured. Set NEXT_PUBLIC_SPEECH_KEY and NEXT_PUBLIC_SPEECH_REGION in .env.local"),null===(o=e.onError)||void 0===o||o.call(e,"Speech SDK keys not configured"),!1;l&&(console.log("STT: Stopping previous recognizer before starting new one"),await i());try{console.log("STT: Creating speech config...",{region:c,language:t});let o=r.SpeechConfig.fromSubscription(s,c);o.speechRecognitionLanguage=t;let n=r.AudioConfig.fromDefaultMicrophoneInput();return l=new r.SpeechRecognizer(o,n),a="",l.recognizing=(o,n)=>{if(n.result.reason===r.ResultReason.RecognizingSpeech){var l;let o=a?"".concat(a," ").concat(n.result.text):n.result.text;console.log("STT recognizing (partial):",n.result.text),null===(l=e.onRecognizing)||void 0===l||l.call(e,o)}},l.recognized=(o,n)=>{if(n.result.reason===r.ResultReason.RecognizedSpeech){let o=n.result.text.trim();if(o){var l;a=a?"".concat(a," ").concat(o):o,console.log("STT recognized (final):",o),console.log("STT accumulated:",a),null===(l=e.onRecognized)||void 0===l||l.call(e,a)}}else n.result.reason===r.ResultReason.NoMatch&&console.log("STT: No speech could be recognized (NoMatch)")},l.canceled=(o,n)=>{if(n.reason===r.CancellationReason.Error){var l;console.error("STT Cancelled — Error:",n.errorCode,n.errorDetails),null===(l=e.onError)||void 0===l||l.call(e,"STT Error (".concat(n.errorCode,"): ").concat(n.errorDetails))}else console.log("STT Cancelled — Reason:",r.CancellationReason[n.reason])},l.sessionStarted=()=>{console.log("STT: ✅ Session started — microphone is now listening")},l.sessionStopped=()=>{var o;console.log("STT: Session stopped"),null===(o=e.onSessionStopped)||void 0===o||o.call(e)},l.speechStartDetected=()=>{console.log("STT: \uD83C\uDFA4 Speech start detected — user is speaking")},l.speechEndDetected=()=>{console.log("STT: Speech end detected — user stopped speaking")},await new Promise((e,o)=>{l.startContinuousRecognitionAsync(()=>{console.log("STT: ✅ Continuous recognition started successfully"),e()},e=>{console.error("STT: ❌ Failed to start continuous recognition:",e),o(e)})}),!0}catch(o){return console.error("STT: ❌ Failed to start speech recognition:",o),null===(n=e.onError)||void 0===n||n.call(e,o instanceof Error?o.message:"Failed to start recognition"),!1}},i=async()=>{let e=a;if(l)try{await new Promise(e=>{l.stopContinuousRecognitionAsync(()=>{console.log("STT: Recognition stopped");try{null==l||l.close()}catch(e){}l=null,e()},o=>{console.warn("STT: Error stopping recognition:",o);try{null==l||l.close()}catch(e){}l=null,e()})})}catch(e){try{null==l||l.close()}catch(e){}l=null}return e},s=()=>{a=""}},20862:(e,o,n)=>{"use strict";n.d(o,{A:()=>c,p:()=>s});var r=n(99738);let l={"English (US) - Guy":"en-US-GuyNeural","English (US) - Jenny":"en-US-JennyNeural","English (UK) - Ryan":"en-GB-RyanNeural","English (UK) - Sonia":"en-GB-SoniaNeural",English:"en-US-JennyNeural",Hindi:"hi-IN-SwaraNeural",Spanish:"es-ES-ElviraNeural",French:"fr-FR-DeniseNeural",German:"de-DE-KatjaNeural","Mandarin Chinese":"zh-CN-XiaoxiaoNeural",Arabic:"ar-SA-ZariyahNeural",Japanese:"ja-JP-NanamiNeural",Portuguese:"pt-BR-FranciscaNeural",Russian:"ru-RU-SvetlanaNeural",Turkish:"tr-TR-AhmetNeural",Tamil:"ta-IN-PallaviNeural",Telugu:"te-IN-MohanNeural",Kannada:"kn-IN-GaganNeural",Malayalam:"ml-IN-SobhanaNeural",Marathi:"mr-IN-AarohiNeural",Gujarati:"gu-IN-DhwaniNeural",Bengali:"bn-IN-TanishaaNeural",Punjabi:"pa-IN-SimranNeural",Urdu:"ur-PK-AsadNeural"},a=e=>e?e.includes("Neural")?e:l[e]||"en-US-GuyNeural":"en-US-GuyNeural",t=null,i=null,s=()=>{if(t&&(t.pause(),t.removeAttribute("src"),t=null),i){try{i.close()}catch(e){}i=null}},c=async(e,o,n)=>{s();let l="6kO8tQc4BDReApX7LlZINBfpIW1mdzG79io9v74V7gqU3yRvGQZ7JQQJ99BBACYeBjFXJ3w3AAAYACOGbVBV",c="eastus";if(!l||!c)return console.warn("Speech SDK keys not configured, skipping TTS"),await new Promise(e=>setTimeout(e,2e3)),o(),!1;let u=r.SpeechConfig.fromSubscription(l,c);if(!u)return o(),!1;u.speechSynthesisVoiceName=a(n);let d=new r.SpeechSynthesizer(u,null);return i=d,new Promise(n=>{d.speakTextAsync(e,async e=>{if(i!==d){d.close(),n(!1);return}if(e.reason===r.ResultReason.SynthesizingAudioCompleted)try{let r=e.audioData;if(!r||0===r.byteLength){console.error("No audio data received from TTS"),o(),n(!1);return}let l=new Blob([r],{type:"audio/wav"}),a=URL.createObjectURL(l),i=new Audio;t=i,i.onended=()=>{URL.revokeObjectURL(a),t===i&&(t=null),o()},i.onerror=()=>{console.error("Audio playback error"),URL.revokeObjectURL(a),t===i&&(t=null),o(),n(!1)},i.src=a;try{if(t!==i){URL.revokeObjectURL(a),n(!1);return}await i.play(),n(!0)}catch(e){console.error("Audio play failed:",e),URL.revokeObjectURL(a),t===i&&(t=null),o(),n(!1)}}catch(e){console.error("Audio processing error:",e),o(),n(!1)}else console.error("Speech synthesis failed, reason:",e.reason),o(),n(!1);d.close(),i===d&&(i=null)},e=>{console.error("Speech synthesis error:",e),d.close(),i===d&&(i=null),o(),n(!1)})})}},72177:(e,o,n)=>{"use strict";n.d(o,{K3:()=>u,Ww:()=>d,k3:()=>p});let r=null,l=[],a=null,t=null,i="video/webm",s=()=>{for(let e of["video/webm;codecs=vp9,opus","video/webm;codecs=vp8,opus","video/webm;codecs=vp9","video/webm;codecs=vp8","video/webm","video/mp4"])if(MediaRecorder.isTypeSupp
1orted(e))return e;return""},c=e=>e&&e.split(";")[0].trim()||"video/webm",u=async e=>{try{let o;await d(),e&&e.active?(o=e,a=null):a=o=await navigator.mediaDevices.getUserMedia({video:{width:640,height:480,facingMode:"user"},audio:!0}),l=[];let n=s();i=c(n);let u={videoBitsPerSecond:1e6};return n&&(u.mimeType=n),r=new MediaRecorder(o,u),console.log("MediaRecorder created with mimeType:",r.mimeType,"→ clean type for blob:",i),r.ondataavailable=e=>{e.data&&e.data.size>0&&l.push(e.data)},r.onstop=()=>{let e=new Blob(l,{type:i});console.log("MediaRecorder stopped. Blob size:",e.size,"type:",e.type,"chunks:",l.length),l=[],t&&(t(e),t=null)},r.onerror=e=>{console.error("MediaRecorder error:",e),t&&(t(null),t=null)},r.start(1e3),console.log("Video recording started successfully"),!0}catch(e){return console.error("Failed to start recording:",e),!1}},d=()=>new Promise(e=>{if(!r||"inactive"===r.state){r=null,a&&(a.getTracks().forEach(e=>e.stop()),a=null),e(null);return}t=o=>{r=null,a&&(a.getTracks().forEach(e=>e.stop()),a=null),e(o)},r.stop(),setTimeout(()=>{if(t){console.warn("MediaRecorder onstop timeout — resolving with available chunks");let e=l.length>0?new Blob(l,{type:i}):null;l=[],t(e),t=null,r=null}},3e3)}),p=()=>null!==r&&"recording"===r.state},52785:e=>{e.exports={tallScreenLayout:"interview-screen_tallScreenLayout__0B1kb",tallScreenVideos:"interview-screen_tallScreenVideos__fap3l",candidateVideoTall:"interview-screen_candidateVideoTall__k7E6G",tallScreenAnswer:"interview-screen_tallScreenAnswer__M4jqn",candidateVideoOverlay:"interview-screen_candidateVideoOverlay__tas6_"}},26308:()=>{},42250:()=>{},29645:()=>{},88632:()=>{},13678:()=>{},44573:()=>{},10952:()=>{}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.