MCPcopy Create free account

hub / github.com/HumeAI/hume-api-examples / functions

Functions590 in github.com/HumeAI/hume-api-examples

↓ 1 callersMethodhandleRequest
( req: http.IncomingMessage, res: http.ServerResponse, currentState: State, )
evi/evi-typescript-proxy/app/api.ts:27
↓ 1 callersFunctionhandleSimulateClose
( closeType: "abnormal_disconnect" | "intentional_close", )
evi/evi-typescript-proxy/web/WebSocketControls.tsx:66
↓ 1 callersFunctionhandleSimulateError
(errorCode: string, shouldClose: boolean)
evi/evi-typescript-proxy/web/WebSocketControls.tsx:71
↓ 1 callersFunctionhandleStartConversation
()
tts/tts-next-js-agora/components/ConversationComponent.tsx:263
↓ 1 callersFunctionhandleSubmit
(e: FormEvent<HTMLFormElement>)
tts/tts-next-js-vercel-ai-sdk/src/components/TtsForm.tsx:23
↓ 1 callersMethodhandleSubscribeAppEvent
( req: http.IncomingMessage, res: http.ServerResponse, currentState: State, )
evi/evi-typescript-proxy/app/api.ts:70
↓ 1 callersMethodhandleTextMessage
( message: IUserTranscription )
tts/tts-next-js-agora/lib/message.ts:170
↓ 1 callersFunctionhandleToolCallMessage
( toolCallMessage: Hume.empathicVoice.ToolCallMessage, socket: Hume.empathicVoice.chat.ChatSocket | null)
evi/evi-typescript-function-calling/src/handleToolCall.ts:38
↓ 1 callersFunctionhandle_media_stream
(ws)
evi/evi-python-phone-calling-proxy-server/app.py:63
↓ 1 callersFunctionhandle_messages
()
evi/evi-python-control-plane/main.py:297
↓ 1 callersFunctionhandle_messages
()
evi/evi-python-quickstart/quickstart.py:53
↓ 1 callersFunctionhandle_messages
()
tts/tts-python-quickstart/test_app.py:209
↓ 1 callersFunctionhandle_messages
()
tts/tts-python-quickstart/app.py:158
↓ 1 callersFunctionhandle_tool_call
Handles tool calls from EVI.
evi/evi-python-phone-calling-proxy-server/app.py:127
↓ 1 callersMethodhandle_tool_call
Functionality which executes when a tool call is invoked. Args: message (ToolCallMessage): The message sent when a tool c
evi/evi-python-function-calling/main.py:35
↓ 1 callersMethodhasAPIEvents
()
evi/evi-typescript-proxy/app/api.ts:22
↓ 1 callersFunctionhumeClientWithApiKey
()
evi/evi-react-native/App.tsx:35
↓ 1 callersFunctioninteractive_repl
Prompt the user for text, synthesize it, and play back audio. Reuses a single aiohttp session across multiple requests. Exit on blank inp
tts/tts-python-livekit/src/standalone_tts/main.py:37
↓ 1 callersFunctioninterpolatePoint
(a: Point2D, x: Point2D, t: number)
tts/tts-typescript-lipsync/mouth.ts:122
↓ 1 callersFunctioninterpolateShape
(a: MouthShape, x: MouthShape, t: number)
tts/tts-typescript-lipsync/mouth.ts:125
↓ 1 callersFunctionisExpressionColor
( color: string, )
evi/evi-next-js-app-router-quickstart/utils/expressionColors.ts:59
↓ 1 callersFunctionisExpressionColor
( color: string, )
evi/evi-next-js-pages-router-quickstart/utils/expressionColors.ts:59
↓ 1 callersFunctionisExpressionColor
( color: string, )
evi/evi-next-js-function-calling/utils/expressionColors.ts:59
↓ 1 callersMethodleave
()
tts/tts-next-js-agora/types/agora-rtc-react.d.ts:22
↓ 1 callersFunctionlistVoices
()
tts/tts-next-js-vercel-ai-sdk/src/actions/list-voices.ts:9
↓ 1 callersMethodlist_audio_devices
List available audio input and output devices. Args: pyaudio (PyAudio): An instance of PyAudio to interact with the audi
evi/evi-python-raw-api/src/devices.py:12
↓ 1 callersFunctionlisten_to_evi
()
evi/evi-python-phone-calling-proxy-server/app.py:255
↓ 1 callersFunctionloadRecording
(filePath: string)
evi/evi-typescript-proxy/app/main.ts:87
↓ 1 callersMethodlogMessage
* Logs messages but throttles audio messages
evi/evi-typescript-proxy/app/downstream.ts:85
↓ 1 callersFunctionmain
Main asynchronous function to set up audio devices, authenticate, and connect to the Hume AI websocket.
evi/evi-python-raw-api/src/main.py:19
↓ 1 callersFunctionmain
Main entry point that routes to the appropriate mode based on CLI arguments.
evi/evi-python-control-plane/main.py:350
↓ 1 callersFunctionmain
()
evi/evi-typescript-proxy/app/main.ts:284
↓ 1 callersFunctionmain
* The main entry point of the script. * * Steps: * 1. Fetch all chat events for the specified chat ID. * 2. Generate a transcript from user and
evi/evi-typescript-chat-history/src/index.ts:17
↓ 1 callersFunctionmain
()
evi/evi-python-function-calling/main.py:297
↓ 1 callersFunctionmain
()
evi/evi-python-quickstart/quickstart.py:41
↓ 1 callersFunctionmain
The main entry point of the script. Steps: 1. Set the CHAT_ID to the chat you want to analyze. 2. Fetch all chat events for that CHA
evi/evi-python-chat-history/main.py:16
↓ 1 callersFunctionmain
()
tts/tts-python-quickstart/app.py:164
↓ 1 callersFunctionmain
()
tts/tts-typescript-quickstart/index.ts:222
↓ 1 callersFunctionmain_existing_chat
Main function that finds an existing active chat and demonstrates control plane features. This mode connects to an existing active chat (e.g., fr
evi/evi-python-control-plane/main.py:326
↓ 1 callersFunctionmain_new_chat
Main function that establishes a new data plane connection and demonstrates control plane features. The data plane is the reference Chat connecti
evi/evi-python-control-plane/main.py:241
↓ 1 callersFunctionobserve_chat
Connect to an existing Chat using the control plane WebSocket endpoint. This connection attaches to a running Chat and receives the full session
evi/evi-python-control-plane/main.py:75
↓ 1 callersFunctiononScroll
()
tts/tts-next-js-chat/src/app/components/Chat.tsx:73
↓ 1 callersFunctionon_evi_message
Handles messages received from EVI.
evi/evi-python-phone-calling-proxy-server/app.py:178
↓ 1 callersFunctionon_message
Handle messages from the data plane connection.
evi/evi-python-control-plane/main.py:254
↓ 1 callersFunctionon_message
(message: SubscribeEvent, stream: Stream)
evi/evi-python-quickstart/quickstart.py:27
↓ 1 callersMethodparse_hume_payload
(self, messages_payload: MessagesPayload)
evi/evi-python-clm-wss/main.py:81
↓ 1 callersFunctionpickInitial
( currentVoice: ReturnVoice | null, setVoice: (v: ReturnVoice | null) => void )
tts/tts-next-js-chat/src/app/hooks/useVoices.ts:31
↓ 1 callersMethodplay_next_item
(self)
evi/evi-touchdesigner/Scripts/MessagePlaback.py:44
↓ 1 callersMethodplaybackMenu
( signal: AbortSignal, remainingMessages: number, isConnected: boolean, )
evi/evi-typescript-proxy/app/cli.ts:63
↓ 1 callersMethodpostprocess_audio
(self, evi_audio: bytes)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:39
↓ 1 callersFunctionprint_emotion_scores
Print the emotions and their scores in a formatted, single-line manner.
evi/evi-python-function-calling/utils.py:14
↓ 1 callersFunctionprint_emotions
(emotion_scores: dict)
evi/evi-python-quickstart/quickstart.py:18
↓ 1 callersFunctionprint_prompt
Print a formatted message with a timestamp.
evi/evi-python-function-calling/utils.py:3
↓ 1 callersMethodpublish
( track: ILocalAudioTrack | Array<ILocalAudioTrack | null | undefined> )
tts/tts-next-js-agora/types/agora-rtc-react.d.ts:23
↓ 1 callersMethodqueue_twilio_audio
(self, twilio_media_payload: Dict[str, Any], twilio_to_evi_queue: Queue)
evi/evi-python-phone-calling-proxy-server/audio_processors/twilio_audio_processor.py:49
↓ 1 callersFunctionreadFromStdin
()
tts/tts-typescript-quickstart/index.ts:90
↓ 1 callersFunctionreceive_from_twilio
Receives audio from Twilio, converts μ-law to linear16, and queues for EVI.
evi/evi-python-phone-calling-proxy-server/app.py:81
↓ 1 callersFunctionrecordVoiceEvent
(event: unknown)
evi/evi-next-js-app-router-quickstart/utils/e2e-hooks.ts:20
↓ 1 callersFunctionreflect
Reflects the fragment of the user's input to reverse person perspective.
evi/evi-python-wss-clm-endpoint/agent.py:323
↓ 1 callersFunctionreflect
Reflects the fragment of the user's input to reverse person perspective.
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.f372550efb96be7f549f1d0346e8646080c1fe2b15c7c2e3b1dceb07b6656c54/agent.py:323
↓ 1 callersFunctionreflect
Reflects the fragment of the user's input to reverse person perspective.
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.689e46f5ffafa1e0f81f114b5dfd7694d2d1e291d9bd855e4f7b601d2b2403d0/agent.py:323
↓ 1 callersFunctionrenderResponse
(cfnRequest,handlerResponse={})
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js:1
↓ 1 callersMethodrenewToken
( token: string )
tts/tts-next-js-agora/types/agora-rtc-react.d.ts:31
↓ 1 callersMethodrespond
(self, message: str, chat_history: List[ChatHistoryItem], last_user_prosody: ProsodyScores)
evi/evi-python-clm-wss/main.py:132
↓ 1 callersMethodrunPromptLoop
()
evi/evi-typescript-proxy/app/cli.ts:308
↓ 1 callersFunctionsaveRecordingEffect
( messages: Message[], filePath: string, )
evi/evi-typescript-proxy/app/main.ts:129
↓ 1 callersFunctionsaveTranscriptToFile
* Saves a transcript string to a text file named by chat ID.
evi/evi-typescript-webhooks/src/util.ts:63
↓ 1 callersFunctionsave_transcript_to_file
Saves the given transcript to a .txt file named by chat ID.
evi/evi-python-webhooks/utils.py:38
↓ 1 callersMethodsendError
(error: WebSocketErrorRaw)
evi/evi-typescript-proxy/app/downstream.ts:74
↓ 1 callersFunctionsendInput
()
tts/tts-typescript-quickstart/index.ts:180
↓ 1 callersFunctionsendMessageEffect
(message: Message, index: number)
evi/evi-typescript-proxy/app/main.ts:115
↓ 1 callersFunctionsend_input
()
tts/tts-python-quickstart/test_app.py:214
↓ 1 callersFunctionsend_input
()
tts/tts-python-quickstart/app.py:139
↓ 1 callersFunctionsend_to_evi
Sends queued audio chunks to EVI.
evi/evi-python-phone-calling-proxy-server/app.py:117
↓ 1 callersFunctionsend_to_twilio
Sends queued audio chunks to Twilio.
evi/evi-python-phone-calling-proxy-server/app.py:206
↓ 1 callersFunctionsending_handler
Handle sending a message over the socket. This method waits 3 seconds and sends a UserInput message, which takes a `text` parameter as input.
evi/evi-python-function-calling/main.py:277
↓ 1 callersFunctionsetLlmKeyForChat
(chatId: string)
evi/evi-next-js-app-router-quickstart/app/actions/set-llm-key.ts:9
↓ 1 callersMethodsetPlaybackMessages
(messages: Message[])
evi/evi-typescript-proxy/app/upstream.ts:104
↓ 1 callersMethodset_socket
Set the socket. This method assigns the provided asynchronous WebSocket connection to the instance variable `self.socket`. It
evi/evi-python-function-calling/main.py:23
↓ 1 callersFunctionsetup
()
tts/tts-next-js-agora/components/AudioVisualizer.tsx:21
↓ 1 callersFunctionsetupAnalyser
()
tts/tts-next-js-agora/components/MicrophoneButton.tsx:34
↓ 1 callersFunctionshallowEqual
(a: any, b: any)
evi/evi-typescript-proxy/app/main.ts:272
↓ 1 callersFunctionsleep
(ms)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js:1
↓ 1 callersFunctionstartAudioCapture
( socket: Hume.empathicVoice.chat.ChatSocket, timeSliceMs = 80, )
evi/evi-typescript-quickstart/src/lib/audio.ts:30
↓ 1 callersFunctionstartClient
()
evi/evi-react-native/App.tsx:64
↓ 1 callersMethodstreamMessage2Chunk
( stream: Uint8Array )
tts/tts-next-js-agora/lib/message.ts:311
↓ 1 callersFunctionstream_messages_from_openai
( raw_messages: list[dict], custom_session_id: Optional[str] = None, )
evi/evi-python-clm-sse/openai_sse.py:14
↓ 1 callersMethodsubscribe
( user: { uid: UID; }, mediaType: 'audio' | 'video' )
tts/tts-next-js-agora/types/agora-rtc-react.d.ts:29
↓ 1 callersFunctionsupportAssistant
(ticket_id: str)
evi/evi-python-phone-calling-proxy-server/tools.py:5
↓ 1 callersFunctionsynthesize_text
Synthesize `text` via the LiveKit Agents Hume TTS plugin using a shared aiohttp session and return raw PCM bytes.
tts/tts-python-livekit/src/standalone_tts/main.py:14
↓ 1 callersFunctiontrackVoiceStatus
(status: string)
evi/evi-next-js-app-router-quickstart/utils/e2e-hooks.ts:28
↓ 1 callersFunctiontts
(formData: FormData)
tts/tts-next-js-vercel-ai-sdk/src/actions/generate-speech.ts:10
↓ 1 callersMethodunpublish
( track: ILocalAudioTrack | Array<ILocalAudioTrack | null | undefined> )
tts/tts-next-js-agora/types/agora-rtc-react.d.ts:26
↓ 1 callersFunctionupdateLevels
()
tts/tts-next-js-agora/components/MicrophoneButton.tsx:65
↓ 1 callersFunctionupdate_session_settings
()
evi/evi-python-phone-calling-proxy-server/app.py:267
↓ 1 callersFunctionuseRecording
(onTranscribed: (text: string) => void)
tts/tts-next-js-chat/src/app/hooks/useRecording.ts:3
↓ 1 callersFunctionuseTts
(options: { voice?: ReturnVoice | null; voiceProvider: string; instant: boolean; })
tts/tts-next-js-chat/src/app/hooks/useTts.ts:7
↓ 1 callersFunctionuseVoices
(provider: VoiceProvider)
tts/tts-next-js-chat/src/app/hooks/useVoices.ts:4
↓ 1 callersFunctionuseVoices
(defaultId: string)
tts/tts-next-js-vercel-ai-sdk/src/hooks/useVoices.ts:5
↓ 1 callersFunctionvalidateEnvironment
()
tts/tts-next-js-agora/app/api/invite-agent/route.ts:42
← previousnext →201–300 of 590, ranked by callers