Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HumeAI/hume-api-examples
/ functions
Functions
590 in github.com/HumeAI/hume-api-examples
⨍
Functions
590
◇
Types & classes
117
↳
Endpoints
10
Function
handleIncomingMessage
( message: Hume.empathicVoice.SubscribeEvent )
evi/evi-react-native/App.tsx:198
Function
handleMessage
(msg: Hume.empathicVoice.chat.SubscribeEvent)
evi/evi-typescript-quickstart/src/main.ts:84
Method
handleMessage
( message: IUserTranscription | IAgentTranscription | IMessageInterrupt )
tts/tts-next-js-agora/lib/message.ts:140
Function
handleMicrophoneToggle
(state: boolean)
tts/tts-next-js-agora/components/ConversationComponent.tsx:295
Function
handleNext
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:46
Function
handleOpen
()
evi/evi-typescript-quickstart/src/main.ts:78
Function
handleOpenSettings
()
evi/evi-react-native/VoiceIsolationModePrompt.tsx:23
Function
handleQuit
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:47
Function
handleSave
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:54
Function
handleShowMeHow
()
evi/evi-react-native/VoiceIsolationModePrompt.tsx:37
Function
handleSimulateSelected
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:74
Function
handleStartPlayback
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:36
Function
handleStartRecord
()
evi/evi-typescript-proxy/web/WebSocketControls.tsx:35
Function
handleStopConversation
()
tts/tts-next-js-agora/components/ConversationComponent.tsx:239
Function
handleToggle
()
tts/tts-next-js-agora/components/MicrophoneButton.tsx:87
Function
handleToolCall
(message, send)
evi/evi-next-js-function-calling/components/Chat.tsx:31
Function
handleUpdateEnd
()
tts/tts-next-js-chat/src/app/components/AudioPlayer.tsx:65
Function
handleWebSocketCloseEvent
* callback function to handle a WebSocket closed event
evi/evi-typescript-function-calling/src/main.ts:244
Function
handleWebSocketErrorEvent
* callback function to handle a WebSocket error event
evi/evi-typescript-function-calling/src/main.ts:236
Function
handleWebSocketMessageEvent
* 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
Function
handleWebSocketOpenEvent
* callback function to handle a WebSocket opened event
evi/evi-typescript-function-calling/src/main.ts:168
Function
handler
(event,context)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/__entrypoint__.js:1
Function
humeClientWithAccessToken
()
evi/evi-react-native/App.tsx:42
Function
hume_client
(api_key)
evi/evi-python-quickstart/test_quickstart.py:29
Function
hume_client
(api_key)
tts/tts-python-quickstart/test_app.py:127
Function
hume_client_sync
(api_key)
evi/evi-python-quickstart/test_quickstart.py:34
Function
hume_webhook_handler
Handles incoming webhook events from Hume's Empathic Voice Interface.
evi/evi-python-webhooks/app.py:25
Method
keyOfLabel
(i: number)
evi/evi-typescript-proxy/app/cli.ts:42
Method
maybePromptUserIfNeeded
()
evi/evi-typescript-proxy/app/cli.ts:301
Function
media_stream
(ws)
evi/evi-python-phone-calling-proxy-server/app.py:54
Function
messageHandler
(chunk: any)
tts/tts-typescript-quickstart/index.test.ts:233
Function
mock_play_audio_streaming
(audio_generator)
tts/tts-python-quickstart/test_app.py:26
Function
observer_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
Function
onClose
(event: any)
evi/evi-typescript-quickstart/src/lib/evi.test.ts:331
Function
onConnect
(handler: () => void)
evi/evi-typescript-proxy/app/upstream.ts:17
Function
onDisconnect
(handler: () => void)
evi/evi-typescript-proxy/app/upstream.ts:21
Function
onError
(err: any)
evi/evi-typescript-quickstart/src/lib/evi.test.ts:324
Function
onMessage
(handler: (message: Message) => void)
evi/evi-typescript-proxy/app/upstream.ts:13
Function
onMessage
(msg: any)
evi/evi-typescript-quickstart/src/lib/evi.test.ts:317
Method
onSelect
(v: ReturnVoice)
tts/tts-next-js-chat/src/app/components/VoiceSelector.tsx:7
Function
onTtsFinish
(msg: Message)
tts/tts-next-js-chat/src/app/hooks/useTts.ts:15
Function
onUnmount
()
evi/evi-react-native/App.tsx:174
Method
on_close
Logic invoked when the WebSocket connection is closed.
evi/evi-python-function-calling/main.py:156
Method
on_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
Method
on_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
Method
on_open
Logic invoked when the WebSocket connection is opened.
evi/evi-python-function-calling/main.py:94
Method
parseWavHeader
Refactored to avoid using break in inline lambdas
evi/evi-react-native/modules/audio/android/src/main/java/expo/modules/audio/AudioModule.kt:325
Method
playRawPcmData
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
Method
processAudioData
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
Function
pytest_collection_modifyitems
(config, items)
evi/evi-python-quickstart/conftest.py:4
Function
pytest_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
Method
reset
* Reset the entire mouth state
tts/tts-typescript-lipsync/mouth.ts:188
Function
root
( request: fastapi.Request, )
evi/evi-python-clm-sse/openai_sse.py:46
Function
root
()
evi/evi-python-wss-clm-endpoint/app.py:12
Function
root
()
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.f372550efb96be7f549f1d0346e8646080c1fe2b15c7c2e3b1dceb07b6656c54/app.py:9
Function
root
()
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.689e46f5ffafa1e0f81f114b5dfd7694d2d1e291d9bd855e4f7b601d2b2403d0/app.py:10
Method
send
(_message: WSMessage)
evi/evi-typescript-proxy/app/upstream.ts:121
Function
serve
(req: http.IncomingMessage, res: http.ServerResponse)
evi/evi-typescript-proxy/app/main.ts:41
Function
serve_homepage
()
evi/evi-python-phone-calling-proxy-server/app.py:25
Method
setInstant
(v: boolean)
tts/tts-next-js-chat/src/app/context/VoiceSettingsContext.tsx:7
Method
setVoice
(v: ReturnVoice | null)
tts/tts-next-js-chat/src/app/context/VoiceSettingsContext.tsx:9
Method
setVoiceProvider
(p: VoiceProvider)
tts/tts-next-js-chat/src/app/context/VoiceSettingsContext.tsx:11
Function
showMicrophoneModes
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:89
Function
start
(controller)
tts/tts-next-js-chat/src/app/api/tts/route.ts:74
Method
startPlayback
evi/evi-react-native/modules/audio/android/src/main/java/expo/modules/audio/AudioModule.kt:406
Function
startRecording
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:34
Function
stopPlayback
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:76
Function
stopRecording
()
evi/evi-react-native/modules/audio/src/AudioModule.web.ts:55
Function
synthesize
()
tts/tts-typescript-lipsync/index.tsx:28
Function
test_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
Function
test_creates_stream_and_connects_successfully
creates a stream and connects successfully
tts/tts-python-quickstart/test_app.py:190
Function
test_example1_runs_successfully
TTS Example 1 (pre-existing voice) runs without errors and produces audio
tts/tts-python-quickstart/test_app.py:52
Function
test_example2_runs_successfully
TTS Example 2 (Voice Design) runs without errors and produces audio
tts/tts-python-quickstart/test_app.py:67
Function
test_example3_runs_successfully
TTS Example 3 (bidirectional streaming) runs without errors and produces audio
tts/tts-python-quickstart/test_app.py:94
Function
test_generates_json_with_octave_1
connects w/ API key, generates JSON stream w/ Octave 1
tts/tts-python-quickstart/test_app.py:132
Function
test_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
Function
test_sends_messages_and_receives_audio_chunks
sends messages and receives audio chunks
tts/tts-python-quickstart/test_app.py:201
Function
test_session_settings_on_connect
connects w/ API key, verifies sessionSettings are passed on connect()
evi/evi-python-quickstart/test_quickstart.py:84
Function
test_session_settings_upd_after_connect
connects w/ API key, verifies sessionSettings can be updated after connect()
evi/evi-python-quickstart/test_quickstart.py:152
Function
toggle
()
evi/evi-typescript-proxy/web/ChatControls.tsx:11
Function
toggleDark
()
evi/evi-next-js-app-router-quickstart/components/Nav.tsx:23
Function
toggleDark
()
evi/evi-next-js-pages-router-quickstart/components/Nav.tsx:23
Function
toggleDark
()
evi/evi-next-js-function-calling/components/Nav.tsx:23
Function
truncateDataReplacer
(k: string, v: unknown)
evi/evi-typescript-proxy/app/util.ts:1
Function
twiml_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
Function
verify_token
(credentials: HTTPAuthorizationCredentials = Security(security))
evi/evi-python-clm-sse/openai_sse.py:39
Function
websocket_endpoint
(websocket: WebSocket)
evi/evi-python-clm-wss/main.py:152
Function
websocket_handler
(websocket: WebSocket)
evi/evi-python-wss-clm-endpoint/app.py:17
Function
websocket_handler
(websocket: WebSocket)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.f372550efb96be7f549f1d0346e8646080c1fe2b15c7c2e3b1dceb07b6656c54/app.py:13
Function
websocket_handler
(websocket: WebSocket)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.689e46f5ffafa1e0f81f114b5dfd7694d2d1e291d9bd855e4f7b601d2b2403d0/app.py:15
← previous
501–590 of 590, ranked by callers