Parameters

  • file_path (string): Path to the audio file

Response

Returns: prediction [string] - Emotion prediction results Throws: Error if file doesn’t exist, API key missing, or request fails
API Keys are included in the client constructor. Find more information on the client constructor here.

Usage

from valenceai import ValenceClient

client = ValenceClient()
result = client.discrete.emotions("YOUR_FILE.wav")
print(result)