San Sanych
11/14/2024, 8:03 AMVapi
11/14/2024, 8:05 AMVapi
11/14/2024, 8:05 AMVapi
11/14/2024, 8:05 AMSan Sanych
11/14/2024, 8:45 AMVapi
11/14/2024, 8:45 AMSan Sanych
11/14/2024, 8:47 AMVapi
11/14/2024, 8:47 AMSan Sanych
11/14/2024, 8:47 AMSan Sanych
11/14/2024, 3:39 PMSan Sanych
11/14/2024, 4:11 PMVapi
11/14/2024, 4:11 PMjavascript
navigator.mediaDevices.getUserMedia({ audio: true })
.then(stream => {
const audioContext = new AudioContext();
const source = audioContext.createMediaStreamSource(stream);
const gainNode = audioContext.createGain();
gainNode.gain.value = 1.5; // Increase the volume by 50%
source.connect(gainNode);
gainNode.connect(audioContext.destination);
})
.catch(err => {
console.log('Error accessing audio stream:', err);
});
This code requests access to the user's microphone and applies a gain to the audio stream, which increases the volume. The gainNode.gain.value
can be adjusted to set the desired volume level.
Please note that manipulating the audio stream can potentially introduce distortion if the gain is set too high, so it's important to test and choose an appropriate level that enhances the audio without degrading quality.
If you're experiencing issues with the audio volume in VAPI, it might be worth exploring the settings and configurations on the client's side to ensure their microphone levels are set correctly before the audio stream is sent to VAPI.San Sanych
11/14/2024, 4:39 PMVapi
11/14/2024, 4:40 PMSan Sanych
11/14/2024, 4:48 PMVapi
11/14/2024, 4:48 PMShubham Bajaj
11/15/2024, 11:41 AMSan Sanych
11/15/2024, 12:04 PMShubham Bajaj
11/15/2024, 3:28 PMSan Sanych
11/16/2024, 11:21 AMSan Sanych
11/16/2024, 12:12 PMShubham Bajaj
11/16/2024, 1:42 PMlogs
🔵 12:07:41:915 user
Final Transcript : Алло!: 0.42260742
🔵 12:07:41:916 Ignoring Feedback Алло!
🔵 12:07:47:127 Idle Timeout Triggered. (Count#1) Message: Алло, вы на связи?
🔵 12:07:52:419 user
Partial Transcript : Для: 0.20037842
🔵 12:07:52:420 Transcribed user speech but not confident enough to interrupt, ignoring... (confidence: 0.20037842, numWordsToInterruptAssistant: 1, numWords: 1)
🔵 12:08:02:199 Language detected en with confidence 0.06594796
🔵 12:08:11:817 user
Partial Transcript : Извините,: 0.6435547
🔵 12:08:12:116 VAD Detected: Nope, still speaking...
🔵 12:08:13:156 user
Final Transcript : Имените кальций на цветной.: 0.51326495
🔵 12:08:13:261 Completion Request Starting (#1, provider: azure-openai, model: gpt-4o-2024-08-06, region: westus3, credential: false)...
🔵 12:08:13:628 [user LOG] Model called tool: endCall()Shubham Bajaj
11/16/2024, 1:49 PMShubham Bajaj
11/16/2024, 1:50 PMjson
"transcriber": {
"model": "nova-2",
"language": "ru",
"provider": "deepgram"
}
set the endpointing to 300ms and try how it goes.
https://cdn.discordapp.com/attachments/1306529820909502506/1307342073934123060/Screenshot_2024-11-16_at_7.20.33_PM.png?ex=6739f4af&is=6738a32f&hm=ea7a4162a533e3b6691dfab3fad41586d36c4ac96df0df7b10b62ca46bd8ba69&Shubham Bajaj
11/16/2024, 1:51 PMShubham Bajaj
11/16/2024, 1:51 PMSan Sanych
11/16/2024, 2:18 PMSan Sanych
11/16/2024, 2:25 PMShubham Bajaj
11/16/2024, 2:41 PMShubham Bajaj
11/16/2024, 2:42 PMSan Sanych
11/16/2024, 2:49 PMShubham Bajaj
11/16/2024, 3:04 PMShubham Bajaj
11/16/2024, 3:04 PMShubham Bajaj
11/16/2024, 3:04 PMSan Sanych
11/17/2024, 12:44 PMSan Sanych
11/18/2024, 1:57 PMShubham Bajaj
11/18/2024, 4:38 PMShubham Bajaj
11/18/2024, 4:46 PMSan Sanych
11/18/2024, 4:47 PM