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
#### Analyze sentiment on the speech-to-text output
47
-
48
-
Starting in v2.2.0 of the speech-to-text container, you can analyze sentiment on the output using the Text Analytics API. To call sentiment analysis, you will need a Text Analytics resource endpoint. For example:
If you're accessing a Text analytics endpoint in the cloud, you will need a key. If you're running Text Analytics locally, you may not need to provide this.
53
-
54
-
The key and endpoint are passed to the Speech container as arguments, as in the following example.
to this call using the container [host](https://docs.microsoft.com/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig?view=azure-python):
67
-
68
-
```python
69
-
speech_config = speechsdk.SpeechConfig(
70
-
host="ws://localhost:5000")
71
-
```
72
-
73
-
To call sentiment analysis:
74
-
75
-
> [!NOTE]
76
-
> You can send requests for either "detailed" or "simple" responses.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/speech-container-howto.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,27 @@ Billing={ENDPOINT_URI} \
247
247
ApiKey={API_KEY}
248
248
```
249
249
250
+
251
+
#### Analyze sentiment on the speech-to-text output
252
+
253
+
Starting in v2.2.0 of the speech-to-text container, you can call the [sentiment analysis v3 API](../text-analytics/how-tos/text-analytics-how-to-sentiment-analysis.md) on the output. To call sentiment analysis, you will need a Text Analytics API resource endpoint. For example:
If you're accessing a Text analytics endpoint in the cloud, you will need a key. If you're running Text Analytics locally, you may not need to provide this.
258
+
259
+
The key and endpoint are passed to the Speech container as arguments, as in the following example.
0 commit comments