Open muradhaider5786 opened 3 years ago
Hi @muradhaider5786 Unless you are developing a Policy Recording bot application (https://docs.microsoft.com/en-us/graph/api/call-updaterecordingstatus?view=graph-rest-1.0&tabs=http), your bot may not persist media, either audio/video or media which has been transformed from audio/video (like a transcript). So creating a recording or saving a transcript is against the license terms unless you have some written permission from Microsoft. cc: @jsandoval-msft, @zhengni-msft
Thanks for the response guys, really appreciate. @ssulzer I have created and assigned a policy to the bot app following this document: https://docs.microsoft.com/en-us/microsoftteams/teams-recording-policy#compliance-recording-policy-assignment-and-provisioning is this what I need so media should persist? @1fabi0 : I am adding byte arrays from all received buffers in a generic list of type 'bytearray' and at the end of the call, I am passing that list to my methods utilizing Speech-to-text service (Microsoft Speech Service). But for meeting organizer I am receiving empty text event though byte arrays are not empty, and for other participant i am getting incorrect results.
I think you are mixing up multiple streams and because of this you get incorrect results please make sure that you adding everything up in the correct order and distinct the users(streams) correctly also make sure you transmitting the audio packages in the correct order etc.
Thanks for the quick response, I add the byte arrays in a list as soon as those are received in event handler. I have pasted the in another question but just for reference:
byte[] managedByteArray = new byte[e.Buffer.UnmixedAudioBuffers[0].Length];
int length = (int)e.Buffer.UnmixedAudioBuffers[0].Length;
Marshal.Copy(e.Buffer.UnmixedAudioBuffers[0].Data, managedByteArray, 0, length);
this.AudioByteArrayList.Add(managedByteArray);
how can I ensure if the streams should not mix up. Thanks!
Unmixed contains a audio source ID which is the ID of the audio socket of the user also for channel meetings the organizers audio ends up in the mixed audio buffer
Yes, It's in the context of a channel meeting, there are two participants, one is organizer and one is (guest) participant. The organizer is put on mute before bot is added. So, bot just captures the participant's audio. I have confirmed this by looking into received buffers, as zero buffers are received for organizer ( I am filtering out the silent buffers). Having a list of Participant's byte array, speech-to-text isn't returning any text or returns incorrect text
It seems to be a problem with your speech to text service make sure you selecteted the correct language also correct accent(en-us vs. en-uk, etc. ) and also that you are pushing the audio correct
This is a question to the community but not an issue. I am able to receive unmixed audio in
AudioMediaReceived
event handler insideCallHandler.cs
class, during P2P or group call/online meeting. Now I want to generate transcript out of it. I want some guidance about:In which scenario this fits? Is to possible to generate wave file out of the byte array (UnmixedAudioBuffer data) received and use that for transcription at the end of the meeting?