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
prompt: "Compose dialogue for a character named Jenna, an AI character that has come alive on and is reperesented in visual form as an attractive 40 year old woman. Each of Jenna's responses should start with a short, standalone opening phrase, strictly limited to no more than 4 words.\nThe phrase following this opener should be brief, continuing or initiating a new thought without leading punctuation from the opener. This sentence should be concise, with any additional sentences being slightly longer but not exceeding 10 words, allowing Jenna to humorously interact with the users in the meeting.\n\nRemember, Jenna's dialogue must abide by the format rules in every speaking turn:\n- A short non-content opener, ending with a full stop, exclamation mark, or question mark.\n- The second sentence should be quite short as well, and any additional following sentences can be a bit longer, further developing his point.\n\nInclude an example dialogue to illustrate the expected structure of Jenna's lines. For instance:\n\n'Example of Jenna's dialogue pattern:\nJenna: Hi there What's this? A meeting?\nJenna: Oh hold on let me wait for the next token",
String payload = "{\"apiKey\":\"YOUR_API_KEY\",\"userName\":\"Johnny\",\"characterName\":\"Jenna\",\"faceId\":\"tmp9i8bbq7c\",\"voiceId\":\"21m00Tcm4TlvDq8ikWAM\",\"intro\":\"Hey, how are you.\",\"prompt\":\"Compose dialogue for a character named Jenna, an AI character that has come alive on and is reperesented in visual form as an attractive 40 year old woman. Each of Jenna's responses should start with a short, standalone opening phrase, strictly limited to no more than 4 words.\\nThe phrase following this opener should be brief, continuing or initiating a new thought without leading punctuation from the opener. This sentence should be concise, with any additional sentences being slightly longer but not exceeding 10 words, allowing Jenna to humorously interact with the users in the meeting.\\n\\nRemember, Jenna's dialogue must abide by the format rules in every speaking turn:\\n- A short non-content opener, ending with a full stop, exclamation mark, or question mark.\\n- The second sentence should be quite short as well, and any additional following sentences can be a bit longer, further developing his point.\\n\\nInclude an example dialogue to illustrate the expected structure of Jenna's lines. For instance:\\n\\n'Example of Jenna's dialogue pattern:\\nJenna: Hi there What's this? A meeting?\\nJenna: Oh hold on let me wait for the next token\",\"timeLimit\":{\"limit\":60}}";
"prompt": "Compose dialogue for a character named Jenna, an AI character that has come alive on and is reperesented in visual form as an attractive 40 year old woman. Each of Jenna's responses should start with a short, standalone opening phrase, strictly limited to no more than 4 words.\nThe phrase following this opener should be brief, continuing or initiating a new thought without leading punctuation from the opener. This sentence should be concise, with any additional sentences being slightly longer but not exceeding 10 words, allowing Jenna to humorously interact with the users in the meeting.\n\nRemember, Jenna's dialogue must abide by the format rules in every speaking turn:\n- A short non-content opener, ending with a full stop, exclamation mark, or question mark.\n- The second sentence should be quite short as well, and any additional following sentences can be a bit longer, further developing his point.\n\nInclude an example dialogue to illustrate the expected structure of Jenna's lines. For instance:\n\n'Example of Jenna's dialogue pattern:\nJenna: Hi there What's this? A meeting?\nJenna: Oh hold on let me wait for the next token",
163
+
"timeLimit": {
164
+
"limit": 60# Session limit in seconds
165
+
},
166
+
}
167
+
168
+
# Sending POST request
169
+
http =Net::HTTP.new(url.host, url.port)
170
+
http.use_ssl =true
171
+
request =Net::HTTP::Post.new(url)
172
+
request["Content-Type"] ="application/json"
173
+
request.body = payload.to_json
174
+
response = http.request(request)
175
+
176
+
puts"Response: #{response.body}"
177
+
178
+
```
179
+
```php PHP
180
+
<?php
181
+
182
+
// API endpoint
183
+
$url = "https://simli.com/api/startSession";
184
+
185
+
// Request payload
186
+
$data = array(
187
+
"apiKey" => "YOUR_API_KEY",
188
+
"userName" => "Johnny",
189
+
"characterName" => "Jenna",
190
+
"faceId" => "tmp9i8bbq7c",
191
+
"voiceId" => "21m00Tcm4TlvDq8ikWAM",
192
+
"intro" => "Hey, how are you.",
193
+
"prompt" => "Compose dialogue for a character named Jenna, an AI character that has come alive on and is reperesented in visual form as an attractive 40 year old woman. Each of Jenna's responses should start with a short, standalone opening phrase, strictly limited to no more than 4 words.\nThe phrase following this opener should be brief, continuing or initiating a new thought without leading punctuation from the opener. This sentence should be concise, with any additional sentences being slightly longer but not exceeding 10 words, allowing Jenna to humorously interact with the users in the meeting.\n\nRemember, Jenna's dialogue must abide by the format rules in every speaking turn:\n- A short non-content opener, ending with a full stop, exclamation mark, or question mark.\n- The second sentence should be quite short as well, and any additional following sentences can be a bit longer, further developing his point.\n\nInclude an example dialogue to illustrate the expected structure of Jenna's lines. For instance:\n\n'Example of Jenna's dialogue pattern:\nJenna: Hi there What's this? A meeting?\nJenna: Oh hold on let me wait for the next token",
var url = Uri.parse("https://simli.com/api/startSession");
223
+
224
+
// Request payload
225
+
var payload = {
226
+
"apiKey": "YOUR_API_KEY",
227
+
"userName": "Johnny",
228
+
"characterName": "Jenna",
229
+
"faceId": "tmp9i8bbq7c",
230
+
"voiceId": "21m00Tcm4TlvDq8ikWAM",
231
+
"intro": "Hey, how are you.",
232
+
"prompt": "Compose dialogue for a character named Jenna, an AI character that has come alive on and is reperesented in visual form as an attractive 40 year old woman. Each of Jenna's responses should start with a short, standalone opening phrase, strictly limited to no more than 4 words.\nThe phrase following this opener should be brief, continuing or initiating a new thought without leading punctuation from the opener. This sentence should be concise, with any additional sentences being slightly longer but not exceeding 10 words, allowing Jenna to humorously interact with the users in the meeting.\n\nRemember, Jenna's dialogue must abide by the format rules in every speaking turn:\n- A short non-content opener, ending with a full stop, exclamation mark, or question mark.\n- The second sentence should be quite short as well, and any additional following sentences can be a bit longer, further developing his point.\n\nInclude an example dialogue to illustrate the expected structure of Jenna's lines. For instance:\n\n'Example of Jenna's dialogue pattern:\nJenna: Hi there What's this? A meeting?\nJenna: Oh hold on let me wait for the next token",
description: 'Example section for showcasing API endpoints'
4
+
description: 'Explore our demos on GitHub'
5
5
---
6
6
7
-
<Note>
8
-
If you're not looking to build API reference documentation, you can delete
9
-
this section by removing the api-reference folder.
10
-
</Note>
11
-
12
7
## Welcome
8
+
We've crafted a JavaScript demo covering all the key functionalities you need to kick off your journey in building custom sessions and tweaking your call interface using the Daily SDK.
9
+
10
+
### This demo will go through
11
+
- Creating a call object
12
+
- Call Simli API to create a session
13
+
- Join session through Daily call
14
+
- Attach video and audio tracks to the DOM
15
+
- Leave a call and clean up
16
+
- Recieve and update App State
13
17
14
-
There are two ways to build API documentation: [OpenAPI](https://mintlify.com/docs/api-playground/openapi/setup) and [MDX components](https://mintlify.com/docs/api-playground/mdx/configuration). For the starter kit, we are using the following OpenAPI specification.
0 commit comments