Spaces:
Runtime error
Runtime error
Implement transcript with speakers in AssemblyAI
Browse files- engines.py +3 -2
engines.py
CHANGED
@@ -53,8 +53,9 @@ class AssemblyAI:
|
|
53 |
polling_response = requests.get(polling_endpoint, headers=headers)
|
54 |
status = polling_response.json()['status']
|
55 |
|
56 |
-
|
57 |
-
|
|
|
58 |
|
59 |
|
60 |
class GoogleCloud:
|
|
|
53 |
polling_response = requests.get(polling_endpoint, headers=headers)
|
54 |
status = polling_response.json()['status']
|
55 |
|
56 |
+
return '\n'.join(
|
57 |
+
f'{utterance["speaker"]}: {utterance["text"]}' for utterance in polling_response.json()['utterances']
|
58 |
+
)
|
59 |
|
60 |
|
61 |
class GoogleCloud:
|