Topics

Overview

modelTypeConfiguration

Keys
Value
modelType
meeting_topics
modelConfig
Model Configuration object for meeting_topics (No configurations)

Example Request

Curl
Python
1
curl --location --request POST 'https://api.marsview.ai/cb/v1/conversation/compute' \
2
--header 'Content-Type: application/json' \
3
--header "Authorization: {{Insert Auth Token}}" \
4
--data-raw '{
5
"txnId": "{{Insert txn ID}}",
6
"enableModels":[
7
{
8
"modelType":"speech_to_text",
9
"modelConfig":{
10
"automatic_punctuation" : true,
11
"custom_vocabulary":["Marsview", "Communication"],
12
"speaker_seperation":{
13
"num_speakers":2
14
},
15
"enableKeywords":true,
16
"enableTopics":false
17
}
18
},
19
{
20
"modelType":"meeting_topics"
21
}
22
23
]
24
}'
Copied!
1
import requests
2
user_id = "[email protected]"
3
auth_token = "replace this with your auth token"
4
txn_id = "Replace this with your txn id"
5
request_url = "https://api.marsview.ai/cb/v1/conversation/compute"
6
7
8
def get_meeting_topics):
9
payload={
10
"txnId": txn_id,
11
"enableModels":[
12
{
13
"modelType":"speech_to_text",
14
"modelConfig":{
15
"automatic_punctuation" : True,
16
"custom_vocabulary":["Marsview", "Communication"],
17
"speaker_seperation":{
18
"num_speakers":2
19
},
20
"enableKeywords":True,
21
"enableTopics":False
22
}
23
},
24
{
25
"modelType":"meeting_topics"
26
}
27
]
28
}
29
headers = {'authorization': '{}'.format(auth_token)}
30
31
response = requests.request("POST", headers=headers, json=payload)
32
print(response.text)
33
if response.status_code == 200 and response.json()["status"] == "true":
34
return response.json()["data"]["enableModels"]["state"]["status"]
35
else:
36
raise Exception("Custom exception")
37
38
if __name__ == "__main__":
39
get_meeting_topics()
Copied!

Example Response

1
"data": {
2
"topicsData": [
3
"clear safety situations",
4
"loss",
5
"biggest weakness",
6
"qualified applicants",
7
"questions",
8
"biggest strengths",
9
"nicholas state university",
10
"next question",
11
"hard worker",
12
"pool certifications",
13
"good evening teresa",
14
"touch goodbye goodbye",
15
"good very good job",
16
"sporting events",
17
"quality time",
18
"good answer next question",
19
"good question",
20
]
21
}
Copied!

Response Object

Field
Description
topicsData
List of key Topics discussed in the Video/Audio.
Last modified 1mo ago