Recording
# support
g
Can I get a real time recording by chunks while the call is still in progress ?
v
@Ghassen Yes, you can receive real-time audio recordings in chunks while the call is in progress. This feature allows you to process the audio as it's being recorded. However, please note that if HIPAA compliance is required (
hipaaEnabled
is set to
true
), recordings will not be stored. Would you like to proceed with real-time recording in chunks, and is HIPAA compliance a concern for you?
You can continue this conversation by mentioning me in the message.
g
yes continue please
@Vapi can you tell me how to do it
v
@Ghassen Certainly! To receive real-time audio recordings in chunks while the call is still in progress, you would typically need to use a streaming API provided by the voice service. Here's a general outline of the steps you might follow: 1. **Initiate a Voice Call**: Start a voice call using the API, which should have the capability to stream audio in real-time. 2. **Enable Streaming**: Ensure that the API call includes parameters to enable real-time streaming of the audio. This might involve setting a specific flag or parameter in the API request that initiates the call. 3. **Handle Audio Chunks**: Implement a callback or a webhook on your server to handle incoming audio chunks. The voice service will send audio data to this endpoint as it becomes available. 4. **Process Audio Chunks**: As you receive the audio chunks, you can process them according to your needs. This could include transcription, sentiment analysis, or any other form of real-time analysis. 5. **Finalize Recording**: Once the call is complete, you may need to handle any finalization steps required by the API, such as closing the audio stream or confirming receipt of all audio chunks. Please note that the exact implementation details will depend on the specific voice API you are using. If you are referring to a specific API or service, please provide more details or the name of the service, and I can give you more tailored instructions. If you need assistance with a particular voice service's API, please let me know, and I can help guide you through the process.
s
@Ghassen checkout this doc with example, to get live call audio in realtime using websocket which you will then to formulate into audio from buffer https://docs.vapi.ai/calls/call-features#example-saving-audio-data-from-a-live-call
Do let me know if you require further help.
2 Views