Need you act as a senior developer. we use AWS, angular with EC2. We have a coaching…
- User
Need you act as a senior developer. we use AWS, angular with EC2. We have a coaching tool that places images on screen of particpants and uses webRTC for communications, we will aso be adding lines from twilio for VOIP.
we currently have API for google and have trasncription working. and use GPT to analyze call.
I have a few questions
- Assistant
Of course, I'll be glad to help you as a senior developer with your questions related to AWS, Angular, EC2, WebRTC, Twilio, and GPT. Please feel free to ask your questions and I'll do my best to provide you with the information you need.
- User
we have used the built in voice text options on PC when on calls, that seems to work. I think it's webspeech API?
- Assistant
Yes, you're correct. The Web Speech API is a browser-based API that enables speech recognition and speech synthesis (Text-to-Speech) features in web applications. The API consists of two main components: the SpeechRecognition interface for speech-to-text and the SpeechSynthesis interface for text-to-speech.
If you're using the Web Speech API for real-time transcription during calls, it's likely that you're utilizing the SpeechRecognition interface. This API is supported by some major browsers like Google Chrome and Microsoft Edge, but it's important to note that support may be limited or unavailable in other browsers.
For a more comprehensive and consistent solution, you might want to consider using a dedicated speech-to-text service, such as Google Cloud Speech-to-Text, Amazon Transcribe, or another similar service. These services often provide better accuracy and broader compatibility across different platforms and devices.
- User
We would like to give the moderator (care coach) the option to use their built in PC system or a service like google.
the question i have is if the participant, a patient is using a mobile device, we find the webspeech not to be stable. can the care coach, perosn on the PC, take the inbound webrtc signal from the patient and run it thorugh their local pc to transcription ?
- Assistant
Yes, it is possible for the care coach (moderator) to take the inbound WebRTC audio stream from the patient (participant) and process it through their local PC for transcription using the Web Speech API or another service like Google Cloud Speech-to-Text. Here's an outline of how you could implement this:
- Establish a WebRTC connection between the care coach's PC and the patient's mobile device.
- Capture the inbound audio stream from the patient's device at the care coach's PC.
- Process the captured audio stream through the Web Speech API or another transcription service (such as Google Cloud Speech-to-Text) on the care coach's PC.
- Display the transcription results to the care coach in real-time.
Keep in mind that using the Web Speech API on the care coach's PC might still be subject to the same browser compatibility limitations mentioned earlier. If you decide to use a service like Google Cloud Speech-to-Text, you'll need to configure the care coach's PC to stream the audio data to the service, receive the transcription results, and display them in real-time.
It's worth noting that processing the audio stream and transcription on the care coach's PC could increase the load on their system, potentially affecting performance. Be sure to test this implementation thoroughly to ensure it works smoothly across different devices and network conditions.
- User
I am guessing there is a code check we can perform to see if the PC an handle transcriptoin.
Using angular how would we do the following check to see if it's available and working capture inbound audio and convert to text as well as the carecoach
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.