You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object. For example, `list_tools` will return a generator over `ReturnUserDefinedTool` and handle the pagination behind the scenes:
129
139
130
140
```python
131
-
import hume.client
141
+
from hume.clientimport HumeClient
132
142
133
143
client = HumeClient(api_key="YOUR_API_KEY")
134
144
135
145
for tool in client.empathic_voice.tools.list_tools():
136
-
print(tool)
146
+
print(tool)
137
147
```
138
148
139
149
you could also iterate page-by-page:
@@ -161,16 +171,17 @@ We expose a websocket client for interacting with the EVI API as well as Express
161
171
When interacting with these clients, you can use them very similarly to how you'd use the common `websockets` library:
asyncwith client.expression_measurement.stream.connect() as hume_socket:
171
180
print(await hume_socket.get_job_details())
172
181
```
173
182
183
+
Model configuration (e.g. face, language, prosody) is sent per payload when you send data (e.g. via `send_publish()`, `send_text()`, or `send_file()`), not at connect time.
184
+
174
185
The underlying connection, in this case `hume_socket`, will support intellisense/autocomplete for the different functions that are available on the socket!
0 commit comments