MCPcopy Create free account

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

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

FunctionhandleIncomingMessage
( message: Hume.empathicVoice.SubscribeEvent )
evi/evi-react-native/App.tsx:198
FunctionhandleMessage
(msg: Hume.empathicVoice.chat.SubscribeEvent)
evi/evi-typescript-quickstart/src/main.ts:84
MethodhandleMessage
( message: IUserTranscription | IAgentTranscription | IMessageInterrupt )
tts/tts-next-js-agora/lib/message.ts:140
FunctionhandleMicrophoneToggle
(state: boolean)
tts/tts-next-js-agora/components/ConversationComponent.tsx:295
FunctionhandleNext
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:46
FunctionhandleOpen
()
evi/evi-typescript-quickstart/src/main.ts:78
FunctionhandleOpenSettings
()
evi/evi-react-native/VoiceIsolationModePrompt.tsx:23
FunctionhandleQuit
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:47
FunctionhandleSave
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:54
FunctionhandleShowMeHow
()
evi/evi-react-native/VoiceIsolationModePrompt.tsx:37
FunctionhandleSimulateSelected
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:74
FunctionhandleStartPlayback
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:36
FunctionhandleStartRecord
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:35
FunctionhandleStopConversation
()
tts/tts-next-js-agora/components/ConversationComponent.tsx:239
FunctionhandleToggle
()
tts/tts-next-js-agora/components/MicrophoneButton.tsx:87
FunctionhandleToolCall
(message, send)
evi/evi-next-js-function-calling/components/Chat.tsx:31
FunctionhandleUpdateEnd
()
tts/tts-next-js-chat/src/app/components/AudioPlayer.tsx:65
FunctionhandleWebSocketCloseEvent
* callback function to handle a WebSocket closed event
evi/evi-typescript-function-calling/src/main.ts:244
FunctionhandleWebSocketErrorEvent
* callback function to handle a WebSocket error event
evi/evi-typescript-function-calling/src/main.ts:236
FunctionhandleWebSocketMessageEvent
* callback function to handle a WebSocket message event * * API Reference: * - `chat_metadata`: https://dev.hume.ai/reference/empathic-voice-
evi/evi-typescript-function-calling/src/main.ts:192
FunctionhandleWebSocketOpenEvent
* callback function to handle a WebSocket opened event
evi/evi-typescript-function-calling/src/main.ts:168
Functionhandler
(event,context)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js:1
FunctionhumeClientWithAccessToken
()
evi/evi-react-native/App.tsx:42
Functionhume_client
(api_key)
evi/evi-python-quickstart/test_quickstart.py:29
Functionhume_client
(api_key)
tts/tts-python-quickstart/test_app.py:127
Functionhume_client_sync
(api_key)
evi/evi-python-quickstart/test_quickstart.py:34
Functionhume_webhook_handler
Handles incoming webhook events from Hume's Empathic Voice Interface.
evi/evi-python-webhooks/app.py:25
MethodkeyOfLabel
(i: number)
evi/evi-typescript-proxy/app/cli.ts:42
MethodmaybePromptUserIfNeeded
()
evi/evi-typescript-proxy/app/cli.ts:301
Functionmedia_stream
(ws)
evi/evi-python-phone-calling-proxy-server/app.py:54
FunctionmessageHandler
(chunk: any)
tts/tts-typescript-quickstart/index.test.ts:233
Functionmock_play_audio_streaming
(audio_generator)
tts/tts-python-quickstart/test_app.py:26
Functionobserver_message_handler
Handle messages received from the observer connection. This callback processes messages received from the control plane observer connection.
evi/evi-python-control-plane/main.py:123
FunctiononClose
(event: any)
evi/evi-typescript-quickstart/src/lib/evi.test.ts:331
FunctiononConnect
(handler: () => void)
evi/evi-typescript-proxy/app/upstream.ts:17
FunctiononDisconnect
(handler: () => void)
evi/evi-typescript-proxy/app/upstream.ts:21
FunctiononError
(err: any)
evi/evi-typescript-quickstart/src/lib/evi.test.ts:324
FunctiononMessage
(handler: (message: Message) => void)
evi/evi-typescript-proxy/app/upstream.ts:13
FunctiononMessage
(msg: any)
evi/evi-typescript-quickstart/src/lib/evi.test.ts:317
MethodonSelect
(v: ReturnVoice)
tts/tts-next-js-chat/src/app/components/VoiceSelector.tsx:7
FunctiononTtsFinish
(msg: Message)
tts/tts-next-js-chat/src/app/hooks/useTts.ts:15
FunctiononUnmount
()
evi/evi-react-native/App.tsx:174
Methodon_close
Logic invoked when the WebSocket connection is closed.
evi/evi-python-function-calling/main.py:156
Methodon_error
Logic invoked when an error occurs in the WebSocket connection. See the full list of errors [here](https://dev.hume.ai/docs/resources
evi/evi-python-function-calling/main.py:160
Methodon_message
Callback function to handle a WebSocket message event. This asynchronous method decodes the message, determines its type, and
evi/evi-python-function-calling/main.py:98
Methodon_open
Logic invoked when the WebSocket connection is opened.
evi/evi-python-function-calling/main.py:94
MethodparseWavHeader
Refactored to avoid using break in inline lambdas
evi/evi-react-native/modules/audio/android/src/main/java/expo/modules/audio/AudioModule.kt:325
MethodplayRawPcmData
Fallback method if data isn't a valid WAV
evi/evi-react-native/modules/audio/android/src/main/java/expo/modules/audio/AudioModule.kt:534
MethodprocessAudioData
Helper function to process audio data - extracted to avoid continue in lambda
evi/evi-react-native/modules/audio/android/src/main/java/expo/modules/audio/AudioModule.kt:442
Functionpytest_collection_modifyitems
(config, items)
evi/evi-python-quickstart/conftest.py:4
Functionpytest_collection_modifyitems
Modify test items to show docstring descriptions in verbose output. This hook runs after test collection and allows us to customize how
tts/tts-python-quickstart/conftest.py:11
Methodreset
* Reset the entire mouth state
tts/tts-typescript-lipsync/mouth.ts:188
Functionroot
( request: fastapi.Request, )
evi/evi-python-clm-sse/openai_sse.py:46
Functionroot
()
evi/evi-python-wss-clm-endpoint/app.py:12
Functionroot
()
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.f372550efb96be7f549f1d0346e8646080c1fe2b15c7c2e3b1dceb07b6656c54/app.py:9
Functionroot
()
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.689e46f5ffafa1e0f81f114b5dfd7694d2d1e291d9bd855e4f7b601d2b2403d0/app.py:10
Methodsend
(_message: WSMessage)
evi/evi-typescript-proxy/app/upstream.ts:121
Functionserve
(req: http.IncomingMessage, res: http.ServerResponse)
evi/evi-typescript-proxy/app/main.ts:41
Functionserve_homepage
()
evi/evi-python-phone-calling-proxy-server/app.py:25
MethodsetInstant
(v: boolean)
tts/tts-next-js-chat/src/app/context/VoiceSettingsContext.tsx:7
MethodsetVoice
(v: ReturnVoice | null)
tts/tts-next-js-chat/src/app/context/VoiceSettingsContext.tsx:9
MethodsetVoiceProvider
(p: VoiceProvider)
tts/tts-next-js-chat/src/app/context/VoiceSettingsContext.tsx:11
FunctionshowMicrophoneModes
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:89
Functionstart
(controller)
tts/tts-next-js-chat/src/app/api/tts/route.ts:74
MethodstartPlayback
evi/evi-react-native/modules/audio/android/src/main/java/expo/modules/audio/AudioModule.kt:406
FunctionstartRecording
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:34
FunctionstopPlayback
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:76
FunctionstopRecording
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:55
Functionsynthesize
()
tts/tts-typescript-lipsync/index.tsx:28
Functiontest_connect_to_evi
connects w/ API key, starts a chat, receives a chatId, stays alive for 2 seconds
evi/evi-python-quickstart/test_quickstart.py:39
Functiontest_creates_stream_and_connects_successfully
creates a stream and connects successfully
tts/tts-python-quickstart/test_app.py:190
Functiontest_example1_runs_successfully
TTS Example 1 (pre-existing voice) runs without errors and produces audio
tts/tts-python-quickstart/test_app.py:52
Functiontest_example2_runs_successfully
TTS Example 2 (Voice Design) runs without errors and produces audio
tts/tts-python-quickstart/test_app.py:67
Functiontest_example3_runs_successfully
TTS Example 3 (bidirectional streaming) runs without errors and produces audio
tts/tts-python-quickstart/test_app.py:94
Functiontest_generates_json_with_octave_1
connects w/ API key, generates JSON stream w/ Octave 1
tts/tts-python-quickstart/test_app.py:132
Functiontest_generates_json_with_octave_2_with_timestamps
connects w/ API key, generates JSON stream w/ Octave 2 with timestamps
tts/tts-python-quickstart/test_app.py:151
Functiontest_sends_messages_and_receives_audio_chunks
sends messages and receives audio chunks
tts/tts-python-quickstart/test_app.py:201
Functiontest_session_settings_on_connect
connects w/ API key, verifies sessionSettings are passed on connect()
evi/evi-python-quickstart/test_quickstart.py:84
Functiontest_session_settings_upd_after_connect
connects w/ API key, verifies sessionSettings can be updated after connect()
evi/evi-python-quickstart/test_quickstart.py:152
Functiontoggle
()
evi/evi-typescript-proxy/web/ChatControls.tsx:11
FunctiontoggleDark
()
evi/evi-next-js-app-router-quickstart/components/Nav.tsx:23
FunctiontoggleDark
()
evi/evi-next-js-pages-router-quickstart/components/Nav.tsx:23
FunctiontoggleDark
()
evi/evi-next-js-function-calling/components/Nav.tsx:23
FunctiontruncateDataReplacer
(k: string, v: unknown)
evi/evi-typescript-proxy/app/util.ts:1
Functiontwiml_response
TwiML endpoint that Twilio calls when a phone call comes in. Configure this URL in your Twilio phone number webhook settings (Phone Numbers >
evi/evi-python-phone-calling-proxy-server/app.py:30
Functionverify_token
(credentials: HTTPAuthorizationCredentials = Security(security))
evi/evi-python-clm-sse/openai_sse.py:39
Functionwebsocket_endpoint
(websocket: WebSocket)
evi/evi-python-clm-wss/main.py:152
Functionwebsocket_handler
(websocket: WebSocket)
evi/evi-python-wss-clm-endpoint/app.py:17
Functionwebsocket_handler
(websocket: WebSocket)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.f372550efb96be7f549f1d0346e8646080c1fe2b15c7c2e3b1dceb07b6656c54/app.py:13
Functionwebsocket_handler
(websocket: WebSocket)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.689e46f5ffafa1e0f81f114b5dfd7694d2d1e291d9bd855e4f7b601d2b2403d0/app.py:15
← previous501–590 of 590, ranked by callers