Speaker Diarization is the process of identifying and separating speakers in an audio recording. This is a challenging task in audio machine learning, requiring the use of deep learning techniques. In this problem, we will use a simple speaker diarization model to identify the speakers in a given audio recording.
**Example:** Given an audio recording of two speakers, the model should be able to identify the speakers and return their corresponding labels.
**Constraints:** The audio recording is 10 seconds long, and there are only two speakers.
**Goal:** Write a function that takes an audio recording as input and returns the speaker labels for each time frame.
Test Cases
Test Case 1
Input:
audio_recording.wavExpected:
[0, 0, 1, 1, 0, 0, 1, 1]Test Case 2
Input:
audio_recording2.wavExpected:
[1, 1, 0, 0, 1, 1, 0, 0]+ 3 hidden test cases