Spaces:
Running
Running
ai: Simplify HTML audio tag.
Browse files
src/client/responses/audio.py
CHANGED
@@ -46,8 +46,8 @@ async def audio_integration(
|
|
46 |
"role": "system",
|
47 |
"content": (
|
48 |
"Audio generation result:\n\n" + audio_generation_content + "\n\n\n"
|
49 |
-
"Show the audio using the following HTML audio tag format, where '{audio_link}' is the URL of the generated audio:\n\n"
|
50 |
-
"<audio
|
51 |
"Please replace '{audio_link}' with the actual audio URL provided in the context.\n\n"
|
52 |
"Then, describe the generated audio based on the above information.\n\n\n"
|
53 |
"Use the same language as the previous user input or user request.\n"
|
|
|
46 |
"role": "system",
|
47 |
"content": (
|
48 |
"Audio generation result:\n\n" + audio_generation_content + "\n\n\n"
|
49 |
+
"Show and render the audio using the following HTML audio tag format, where '{audio_link}' is the URL of the generated audio:\n\n"
|
50 |
+
"<audio src='{audio_link}' controls style='width: 100%;'></audio>\n\n"
|
51 |
"Please replace '{audio_link}' with the actual audio URL provided in the context.\n\n"
|
52 |
"Then, describe the generated audio based on the above information.\n\n\n"
|
53 |
"Use the same language as the previous user input or user request.\n"
|