MCPcopy Create free account

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

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

↓ 1 callersMethodInitialize
(HumeEVI eviComponent, Renderer renderer)
evi/evi-unity-quickstart/Assets/Scripts/SceneBuilder.cs:106
↓ 1 callersMethodPush
(T x)
tts/tts-dotnet-quickstart/StreamingTtsService.cs:34
↓ 1 callersFunctionR
(r,e,o)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/index.js:1
↓ 1 callersFunctionS
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/index.js:1
↓ 1 callersFunctionSendAudioChunksAsync
(IChatApi chatApi, byte[][] chunks, int chunkDurationMs)
evi/evi-dotnet-quickstart/Program.cs:130
↓ 1 callersMethodSetApiKey
(string key)
evi/evi-unity-quickstart/Assets/Scripts/HumeEVI.cs:65
↓ 1 callersMethodSetApiKey
(string key)
tts/tts-unity-quickstart/Assets/Scripts/HumeSpeaker.cs:16
↓ 1 callersMethodSpeak
()
tts/tts-unity-quickstart/Assets/Scripts/HumeSpeaker.cs:21
↓ 1 callersFunctionSplitAudioIntoChunks
(byte[] audioData, int bytesPerChunk)
evi/evi-dotnet-quickstart/Program.cs:108
↓ 1 callersMethodStart
()
evi/evi-unity-quickstart/Assets/Scripts/SceneBuilder.cs:13
↓ 1 callersMethodStart
()
tts/tts-unity-quickstart/Assets/Scripts/SceneBuilder.cs:65
↓ 1 callersMethodStartConversation
()
evi/evi-unity-quickstart/Assets/Scripts/HumeEVI.cs:91
↓ 1 callersMethodStopConversation
()
evi/evi-unity-quickstart/Assets/Scripts/HumeEVI.cs:131
↓ 1 callersFunctionTransmitTestAudio
(IChatApi chatApi, string filePath, int sampleRate, int channels)
evi/evi-dotnet-quickstart/Program.cs:91
↓ 1 callersMethod_appendChatHistory
( item: IMessageArrayItem<Partial<IUserTranscription | IAgentTranscription>> )
tts/tts-next-js-agora/lib/message.ts:212
↓ 1 callersMethod_apply_filters
(self, audio: np.ndarray, fs: int)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:86
↓ 1 callersMethod_count_messages_by_role
(self, chat_history: List[ChatHistoryItem])
evi/evi-python-clm-wss/main.py:76
↓ 1 callersMethod_ensure_float
(self, audio: np.ndarray)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:67
↓ 1 callersMethod_generate_eliza_response
(self)
evi/evi-python-clm-wss/main.py:126
↓ 1 callersMethod_high_pass_filter
(self, audio: np.ndarray, fs: int)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:92
↓ 1 callersMethod_listenRtcEvents
()
tts/tts-next-js-agora/lib/message.ts:117
↓ 1 callersMethod_normalize_audio
(self, audio: np.ndarray)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:125
↓ 1 callersMethod_notch_filter
(self, audio: np.ndarray, fs: int)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:117
↓ 1 callersMethod_peak_filter
(self, audio: np.ndarray, fs: int)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:102
↓ 1 callersMethod_read_audio
(self, evi_audio: bytes)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:57
↓ 1 callersMethod_read_audio_stream_non_blocking
Read a chunk of audio data from the PyAudio stream in a non-blocking manner. Args: audio_stream (PyAudioStream): The PyA
evi/evi-python-raw-api/src/connection.py:122
↓ 1 callersMethod_receive_audio_data
Receive and process audio data from the WebSocket server. Args: socket (WebSocketClientProtocol): The WebSocket connecti
evi/evi-python-raw-api/src/connection.py:84
↓ 1 callersMethod_resample_audio
(self, audio: np.ndarray, original_fs: int, target_fs: int)
evi/evi-python-phone-calling-proxy-server/audio_processors/evi_audio_processor.py:73
↓ 1 callersMethod_send_audio_data
Read audio data from the PyAudio stream and send it to the WebSocket server. Args: socket (WebSocketClientProtocol): The
evi/evi-python-raw-api/src/connection.py:140
↓ 1 callersMethod_should_send_congratulations
(self, user_count: int, assistant_count: int)
evi/evi-python-clm-wss/main.py:129
↓ 1 callersFunctionaddChatEntry
(entry: ChatEntry)
evi/evi-react-native/App.tsx:61
↓ 1 callersMethodaddPhoneme
(phoneme: string, timestamp: number)
tts/tts-typescript-lipsync/mouth.ts:134
↓ 1 callersMethodadd_prosody_to_utterance
(self, content: str, prosody_scores: ProsodyScores)
evi/evi-python-clm-wss/main.py:120
↓ 1 callersFunctionappendChatMessage
( container: HTMLElement | null, msg: Hume.empathicVoice.UserMessage | Hume.empathicVoice.AssistantMessage
evi/evi-typescript-quickstart/src/lib/ui.ts:38
↓ 1 callersFunctionappendMessage
* adds message to Chat in the webpage's UI * * @param role the speaker associated with the audio transcription * @param content transcript of
evi/evi-typescript-function-calling/src/main.ts:260
↓ 1 callersMethodbroadcastState
(state: State)
evi/evi-typescript-proxy/app/api.ts:9
↓ 1 callersMethodbuffer_inbound_audio
(self, twilio_media_payload: Dict[str, Any])
evi/evi-python-phone-calling-proxy-server/audio_processors/twilio_audio_processor.py:42
↓ 1 callersFunctioncaptureAudio
* captures and records audio stream, and sends audio stream through the socket * * API Reference: * - `audio_input`: https://dev.hume.ai/refe
evi/evi-typescript-function-calling/src/main.ts:134
↓ 1 callersFunctioncheckOverflow
()
tts/tts-next-js-chat/src/app/components/Chat.tsx:62
↓ 1 callersFunctioncheckStream
()
tts/tts-typescript-quickstart/index.test.ts:314
↓ 1 callersFunctionconnect
* instantiates interface config and client, sets up Web Socket handlers, and establishes secure Web Socket connection
evi/evi-typescript-function-calling/src/main.ts:74
↓ 1 callersFunctionconnectEVI
( apiKey: string, handlers: Hume.empathicVoice.chat.ChatSocket.EventHandlers, configId?: string, sessi
evi/evi-typescript-quickstart/src/lib/evi.ts:33
↓ 1 callersFunctionconnectUpstreamEffect
()
evi/evi-typescript-proxy/app/main.ts:121
↓ 1 callersFunctionconstruct_transcript
Constructs a formatted transcript string from user and assistant messages.
evi/evi-python-webhooks/utils.py:23
↓ 1 callersFunctioncreateAuthorizationHeader
()
tts/tts-next-js-agora/app/api/invite-agent/route.ts:61
↓ 1 callersMethodcreateScoreItem
(score: Score)
evi/evi-typescript-function-calling/src/main.ts:341
↓ 1 callersFunctiondecodeStreamMessage
( stream: Uint8Array )
tts/tts-next-js-agora/lib/message.ts:6
↓ 1 callersFunctiondraw
()
tts/tts-next-js-agora/components/AudioVisualizer.tsx:55
↓ 1 callersFunctiondrawMouth
* Draw a mouth shape on a canvas context by connecting all points in order. * Scales the shape to fit the canvas dimensions.
tts/tts-typescript-lipsync/mouth.ts:202
↓ 1 callersFunctioneliza_response
Generates a response to the user input following the patterns and reflections of the ELIZA program.
evi/evi-python-wss-clm-endpoint/agent.py:334
↓ 1 callersFunctioneliza_response
Generates a response to the user input following the patterns and reflections of the ELIZA program.
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.f372550efb96be7f549f1d0346e8646080c1fe2b15c7c2e3b1dceb07b6656c54/agent.py:334
↓ 1 callersFunctioneliza_response
Generates a response to the user input following the patterns and reflections of the ELIZA program.
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.689e46f5ffafa1e0f81f114b5dfd7694d2d1e291d9bd855e4f7b601d2b2403d0/agent.py:334
↓ 1 callersMethoderrorSimulationMenu
( signal: AbortSignal, )
evi/evi-typescript-proxy/app/cli.ts:87
↓ 1 callersFunctioneventStream
(api: Api, cli: CLI, eventQueue: AppEvent[])
evi/evi-typescript-proxy/app/main.ts:250
↓ 1 callersFunctionexample1
()
tts/tts-typescript-quickstart/index.ts:29
↓ 1 callersFunctionexample2
()
tts/tts-python-quickstart/app.py:60
↓ 1 callersFunctionexample2
()
tts/tts-typescript-quickstart/index.ts:52
↓ 1 callersFunctionextractTopThreeEmotions
* takes a received `user_message` or `assistant_message` and extracts the top 3 emotions from the * predicted expression measurement scores.
evi/evi-typescript-function-calling/src/main.ts:292
↓ 1 callersFunctionextractTopThreeEmotions
* Extracts and returns the top three emotion scores from a prosody analysis. * * This function pulls the `scores` object out of the `message.models.
evi/evi-typescript-quickstart/src/lib/ui.ts:16
↓ 1 callersFunctionextract_top_n_emotions
Extract the top N emotions based on confidence scores.
evi/evi-python-function-calling/utils.py:9
↓ 1 callersFunctionextract_top_n_emotions
(emotion_scores: dict, n: int)
evi/evi-python-quickstart/quickstart.py:11
↓ 1 callersFunctionfetchAllChatEvents
* Fetches all chat events for a given chat ID from the Hume API. * * @param client - The HumeClient instance. * @param chatId - The unique identifi
evi/evi-typescript-webhooks/src/util.ts:29
↓ 1 callersFunctionfetchAllChatEvents
* Fetches all chat events for a given chat ID from the Hume API. * * This function utilizes the HumeClient to retrieve all chat events associated w
evi/evi-typescript-chat-history/src/index.ts:57
↓ 1 callersFunctionfetchVoices
()
tts/tts-next-js-chat/src/app/hooks/useVoices.ts:11
↓ 1 callersFunctionfetchWeather
(parameters: string)
evi/evi-typescript-webhooks/src/util.ts:148
↓ 1 callersFunctionfetchWeather
* fetches the weather at a given location in a specified temperature format *
evi/evi-typescript-function-calling/src/handleToolCall.ts:6
↓ 1 callersFunctionfetchWeather
(parameters: string)
evi/evi-next-js-function-calling/utils/fetchWeather.ts:9
↓ 1 callersFunctionfetchWeatherTool
( hume: HumeClient, chatId: string, toolCallMessage: { name: string, toolCallId: string, parameters: str
evi/evi-typescript-webhooks/src/util.ts:204
↓ 1 callersMethodfetch_access_token
Fetch an access token from Hume AI's OAuth2 service. This method constructs the necessary headers and body for the OAuth2 client cre
evi/evi-python-raw-api/src/authenticator.py:30
↓ 1 callersFunctionfetch_all_chat_events
Fetches all chat events for the given chat ID in chronological order.
evi/evi-python-webhooks/utils.py:14
↓ 1 callersFunctionfetch_all_chat_events
Fetches all chat events for the given chat ID using the AsyncHumeClient. The function returns all events in chronological order. :param
evi/evi-python-chat-history/main.py:44
↓ 1 callersFunctionfetch_weather
Fetches the weather forecast for a given location and temperature scale. Args: parameters: Stringified JSON with `location` and `for
evi/evi-python-webhooks/utils.py:101
↓ 1 callersFunctionfetch_weather
Fetch the weather forecast for all periods for a given location. This asynchronous function retrieves the weather forecast for the specified
evi/evi-python-function-calling/main.py:170
↓ 1 callersFunctionfetch_weather_tool
Invokes the get_current_weather tool and sends the result back via the control plane. Args: client: The AsyncHumeClient instance.
evi/evi-python-webhooks/utils.py:183
↓ 1 callersMethodfill_silence
(self, current_timestamp: int)
evi/evi-python-phone-calling-proxy-server/audio_processors/twilio_audio_processor.py:29
↓ 1 callersFunctionfind_active_chat
Find the first active EVI chat for the given config.
evi/evi-python-control-plane/main.py:309
↓ 1 callersFunctiongenerateChannelName
()
tts/tts-next-js-agora/app/api/generate-agora-token/route.ts:19
↓ 1 callersFunctiongenerateTranscript
* Generates a formatted transcript string from user and assistant messages. * * @param chatEvents - An array of chat events to parse. * @returns A
evi/evi-typescript-webhooks/src/util.ts:46
↓ 1 callersFunctiongenerateTranscript
* Generates a formatted transcript string from user and assistant messages. * * This function filters chat events to include only user and assistant
evi/evi-typescript-chat-history/src/index.ts:89
↓ 1 callersFunctiongenerate_transcript
Generates a formatted transcript string from the given chat events. Only user and assistant messages are included. Each line includes a times
evi/evi-python-chat-history/main.py:66
↓ 1 callersFunctiongetChatTranscript
(client: HumeClient, chatId: string)
evi/evi-typescript-webhooks/src/util.ts:82
↓ 1 callersFunctiongetClient
(apiKey: string)
evi/evi-typescript-quickstart/src/lib/evi.ts:6
↓ 1 callersFunctiongetConfig
()
tts/tts-next-js-agora/app/api/invite-agent/route.ts:67
↓ 1 callersMethodgetNextAPIEvent
()
evi/evi-typescript-proxy/app/api.ts:17
↓ 1 callersMethodgetNextCLIEvent
()
evi/evi-typescript-proxy/app/cli.ts:32
↓ 1 callersMethodgetNextEvent_
()
evi/evi-typescript-proxy/app/cli.ts:142
↓ 1 callersMethodgetShapeAt
* Get the mouth shape at a specific time. * Processes queued phonemes up to that time and returns the interpolated shape.
tts/tts-typescript-lipsync/mouth.ts:149
↓ 1 callersFunctiongetTopEmotions
* Calculates the top 3 average emotion scores from user messages within the provided chat events. * * Steps: * 1. Filters the chatEvents for user
evi/evi-typescript-chat-history/src/index.ts:118
↓ 1 callersFunctiongetWebhookSigningKey
* Retrieves the HUME_WEBHOOK_SIGNING_KEY from environment variables. * * @returns The webhook signing key. * @throws If the environment variable is
evi/evi-typescript-webhooks/src/util.ts:14
↓ 1 callersFunctionget_access_token
Load API credentials from environment variables and fetch an access token. Returns: str: The access token. Raises: Syst
evi/evi-python-raw-api/src/main.py:74
↓ 1 callersMethodget_audio_duration
(self, filepath)
evi/evi-touchdesigner/Scripts/MessagePlaback.py:55
↓ 1 callersFunctionget_chat_transcript
Fetches chat events, generates a transcript, and saves it to a file.
evi/evi-python-webhooks/utils.py:46
↓ 1 callersFunctionget_top_emotions
Calculates the top 3 average emotion scores from user messages within the provided chat events. Steps: 1. Filters for user messages
evi/evi-python-chat-history/main.py:88
↓ 1 callersFunctionh
(r)
evi/evi-python-wss-clm-endpoint/cdk/cdk.out/asset.ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a/index.js:1
↓ 1 callersMethodhandleChunk
* Handles chunked messages from Agora. * Messages may be split across multiple chunks and need to be reassembled.
tts/tts-next-js-agora/lib/message.ts:239
↓ 1 callersFunctionhandleConnect
()
evi/evi-react-native/App.tsx:83
↓ 1 callersMethodhandleConnection
(ws: WebSocket)
evi/evi-typescript-proxy/app/downstream.ts:109
↓ 1 callersFunctionhandleDisconnect
()
evi/evi-react-native/App.tsx:154
↓ 1 callersMethodhandleMessageInterrupt
( message: IMessageInterrupt )
tts/tts-next-js-agora/lib/message.ts:200
↓ 1 callersMethodhandlePostAppEvent
( req: http.IncomingMessage, res: http.ServerResponse, )
evi/evi-typescript-proxy/app/api.ts:46
← previousnext →101–200 of 590, ranked by callers