How can I calculate the percentage of two individuals voices in IOS?

Calculate percentage of two individuals voices in IOS

I am looking for a code / API for voice recognition in IOS.
The aim of the project is to analyze a recording of a discussion between 2 individuals.
Then give me the speech percentage time of each one in the recording.

For example the recording is 10 minutes.
One person spoke for 4 minutes and the other one spoke for 6 minutes.
Then the response will be:
A: 40%
B: 60%

So for that I need a voice recognition code that can distinguish between voices or something like that.
I don?t need a voice to text.
Is there any code / API that knows how to handle this?

Thank you.
Re: Calculate percentage of two individuals voices in IOS

Hopefully, someone will be along to answer your question soon. In the meantime, enjoy the rest of the iMore Forums.
Re: Calculate percentage of two individuals voices in IOS

Moved to developer forum...

Original thread: https://forums.imore.com/threads/how-can-i-calculate-the-percentage-of-two-individuals-voices-in-ios.330433/