MCPcopy Create free account
hub / github.com/HumeAI/hume-api-examples / save_transcript_to_file

Function save_transcript_to_file

evi/evi-python-webhooks/utils.py:38–43  ·  view source on GitHub ↗

Saves the given transcript to a .txt file named by chat ID.

(transcript: str, chat_id: str)

Source from the content-addressed store, hash-verified

36
37
38def save_transcript_to_file(transcript: str, chat_id: str) -> None:
39 """Saves the given transcript to a .txt file named by chat ID."""
40 transcript_file_name = f"transcript_{chat_id}.txt"
41 with open(transcript_file_name, "w", encoding="utf-8") as f:
42 f.write(transcript)
43 print(f"Transcript saved to {transcript_file_name}")
44
45
46async def get_chat_transcript(client: AsyncHumeClient, chat_id: str) -> None:

Callers 1

get_chat_transcriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected