Split audio into segments by given array of phrases
Split audio into segments using given audio model. There would be an array of audio segments, and you need to find a continuous sequence of segments that contain this phrase. Join audio segments and return to the user
Algorithm test cases:
{
"test_cases": [
{
"phrases": [
"The headache won't go away. She's taking medicine but even that didn't help.",
"The monster's throbbing in her head continued.",
"This happened to her only once before in her life and she realized that only one thing could be happening."
],
"to_find": "she realized that only one thing could be happening",
"answer": [
2
]
},
{
"phrases": [
"The headache won't go away. She's taking medicine but even that didn't help.",
"The monster's throbbing in her head continued.",
"This happened to her only once before in her life and she realized that only one thing could be happening."
],
"to_find": "she has taken medicine",
"answer": [
1
]
},
{
"phrases": [
"The headache won't go away. She's taking medicine but even that didn't help.",
"The monster's throbbing in her head continued.",
"This happened to her only once before in her life and she realized that only one thing could be happening."
],
"to_find": "throbbing in her head continued this happened to her",
"answer": [
2,
3
]
},
{
"phrases": [
"the",
"headache",
"won't",
"go",
"away",
"she's",
"taking",
"medicine",
"but",
"even",
"that",
"didn't",
"help",
"the",
"monster",
"a",
"throbbing",
"in",
"her",
"head",
"continued",
"had",
"this",
"happen",
"to",
"her",
"own",
"once",
"before",
"in",
"her",
"life",
"and",
"she",
"realized",
"that",
"only",
"one",
"thing",
"could",
"be",
"happening"
],
"to_find": "she realized that only one thing could be happening",
"answer": [
33,
34,
35,
36,
37,
38,
39,
40,
41
]
}
]
}
Edited by Anton Kudryavtsev