bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 17쪽
e | string (Required) | Specifies the name of the function parameter in FunctionParameter. | 'city' |
| type | string (Required) | Specifies the type of the function parameter in FunctionParameter. | 'list', 'string' or 'number' |
| description | string (Required) | Provides a description of the function parameter in FunctionParameter. | 'The city, e.g. San Francisco, CA' |
# TTS Module
TTSModule provides creators with the ability to freely assemble TTS (Text-to-Speech) configurations within MyShell.
`TTSConfig`
| Field's Name | JSON Type (Required/Optional) | Description | Example |
| ---------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- |
| tts\_widget\_url | string (Required) | Specifies the URL for the TTS widget. Creators can select their desired voices in the Workshop, and use the share function to obtain a shared widget link, which is used here. | '<https://app.myshell.ai/widget/yi2aIf>' |
| content | string | Expression (Required) | Specifies the text that needs to be read aloud. |
| output\_name | string (Required) | Specifies the name of the output in TtsConfig. | 'output' |
# Google Search Module
`GoogleSearchModule` provides creators with the ability to access google search and retrieve search result within Pro Config.
`GoogleSearchConfig`
| Field's Name | JSON Type (Required/Optional) | Description | Example |
| ------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------- | ---------------------- |
| query | string (Required) | The search query in Google. | 'What is the weather?' |
| num\_results | number (Optional. Default:3) | The number of search results. Keep in mind that more results may increase the module's response time. | 3 |
| length\_per\_result | number (Optional. Default:500) | The maximum character length for each retrieved search result. Any text exceeding this limit will be truncated. | 500 |
| output\_name | string (Required) | Specifies the name of the output in GoogleSearchModule. | 'output' |
**Example**
```json
{
"id": "test",
"initial": "home_state",
"states": {
"home_state": {
"inputs": {
"text_to_be_search": {
"type": "text",
"user_input": true
}
},
"tasks": [
{
"name": "google_search_module_test_task",
"module_type": "GoogleSearchModule",
"module_config": {
"query": "{{text_to_be_search}}",
"num_results": 3,
"length_per_result":500,
"output_name": "result"
}
}
],
"render": {
"text": "{{result}}",
"buttons": [
{
"content":"Search Again",
"description":"",
"on_click":"search"
}
]
},
"transitions": {
"search": "home_state"
}
}
}
}
```
# Widgets
# Bark TTS
Runs TTS with Bark.
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1781991719128457216) to try this widget and copy the Pro Config template.
## Usage
#### Supported Languages
> * English
> * Chinese
> * German
> * Spanish
> * French
> * Hindi
> * Italian
> * Japanese
> * Korean
> * Polish
> * Portuguese
> * Russian
> * Turkish
The languages are auto-detected. Bark-TTS also supports serval non-speech sounds.
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>prompt</td><td><code>string</code></td><td><p>The text prompt for model to generate audio. Here are some non-speech sounds:</p><pre><code> - [laughter]
- [laughs]
- [sighs]
- [music]
- [gasps]
- [clears throat]
- — or ... | for hesitations
- ♪ | for song lyrics
- Capitalization | for emphasis of a word
- NARRATOR: / MAN: / WOMAN: | for bias towards speaker</td><td>Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.</td><td>false</td></tr>
</code></pre></td><td>Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.</td><td>true</td></tr><tr><td>history_prompt</td><td><code>string</code></td><td><p>history choice for audio cloning, choose from the list. To mitigate misuse of this technology, we limit the audio history prompts to a limited set.</p><pre><code> It is possible to use for example a german history prompt with english text. This usually leads to english audio with a german accent.</td><td>en_speaker_0</td><td>false</td></tr>
</code></pre></td><td>en_speaker_0</td><td>true</td></tr><tr><td>text_temp</td><td><code>number</code></td><td>generation temperature during text encoding (1.0 more diverse, 0.0 more conservative)</td><td>0.7</td><td>false</td></tr><tr><td>waveform_temp</td><td><code>number</code></td><td>generation temperature during wavform generation (1.0 more diverse, 0.0 more conservative)</td><td>0.7</td><td>false</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| ---- | -------- | ------------------------------------------------------------------------------------------------------------------------ | --------- |
| url | `string` | The audio that was generated has been saved as an online URL. This link is temporary, so please save it for your own use | `audio` |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
"url": "https://cdn.myshell.ai/audio/chat/embed_obj/38145/20240423/fa7e6014529f41c1aa747f765f00c385.mp3"
}
```
{% endcode %}
{% endtab %}
{% endtabs %}
# Champ
Animate the character in the image to dance with the pre-defined guidance.
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1781992023651704832) to try this widget and copy the Pro Config template.
## Usage
\<TODO: enter description here, and remove useless inputs>
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>reference_image</td><td><code>string</code></td><td>Provide an image of the champ. We can animate the character in the image to dance. We've found that using more realistic characters yields better results than using cartoon characters.</td><td></td><td>true</td></tr><tr><td>guidance</td><td><code>string</code></td><td>pre-defined dancing guidance.</td><td>motion-04</td><td>true</td></tr><tr><td>num_inference_steps</td><td><code>integer</code></td><td>inferenc step for inner diffusion.</td><td>20</td><td>false</td></tr><tr><td>guidance_scale</td><td><code>number</code></td><td>guidance scale hyper-parameter for generation. A larger scale indicates stronger guidance.</td><td>3.5</td><td>false</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| ---- | -------- | ------------------------------------------------------------------------------------------------------------------------ | --------- |
| url | `string` | The video that was generated has been saved as an online URL. This link is temporary, so please save it for your own use | `video` |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{ // input https://image.myshell.ai/image/chat/embed_obj/40295/20240423/018fb86564684efeb2577a99c154baed.jpg
"url": "https://cdn.myshell.ai/video/chat/embed_obj/40295/20240423/a932c38992d842c9a791fc62774d366d.mp4"
}
```
{% endcode %}
{% endtab %}
{% tab title="fail" %}
{% code fullWidth="false" %}
```json
Http error
```
{% endcode %}
{% endtab %}
{% endtabs %}
## Detailed Guidelines
# CoinGecko
Obtain price feed, market data, and historical data of crypto assets
Try it in the Widget Center
Click this [url](/create/pro-config-mode/api-reference/widgets/40-coingecko) to try this widget and copy the Pro Config template.
## Usage
### Get the Coin ID
<mark style="color:green;">`action`</mark> `coin_id`
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action you want to perform</td><td>coin_id</td><td>true</td></tr><tr><td>name</td><td><code>string</code></td><td>The name of the coin. Required if you search coin by name.</td><td></td><td>true</td></tr></tbody></table>
**Output Parameters**
<table><thead><tr><th width="146">Name</th><th>Type</th><th>Description</th><th>File Type</th></tr></thead><tbody><tr><td>data</td><td><code>object</code></td><td>The output of coingecko API.</td><td></td></tr></tbody></table>
#### Output Example
{% code overflow="wrap" %}
```json
{
"status": "SUCCESS",
"created_at": "2024-04-25T02:58:32.161881",
"started_at": "2024-04-25T02:58:36.511598",
"result": {
"data": {
"id": "bitcoin",
"symbol": "btc",
"name": "Bitcoin"
}
},
"finished_at": "2024-04-25T02:58:38.489827"
}
```
{% endcode %}
### Get the Coin Data by ID
<mark style="color:green;">`action`</mark> `coin_data_by_id`
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th width="160">Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action you want to perform</td><td>coin_data_by_id</td><td>true</td></tr><tr><td>id</td><td><code>string</code></td><td>The id of the coin.</td><td></td><td>true</td></tr></tbody></table>
**Output Parameters**
<table><thead><tr><th width="146">Name</th><th>Type</th><th>Description</th><th>File Type</th></tr></thead><tbody><tr><td>data</td><td><code>object</code></td><td>The output of coingecko API.</td><td></td></tr></tbody></table>
#### Output Example
```json
{
"status": "SUCCESS",
"created_at": "2024-04-25T03:12:37.276366",
"started_at": "2024-04-25T03:12:39.650554",
"result": {
"data": {
"id": "bitcoin",
"symbol": "btc",
"name": "Bitcoin",
"web_slug": "bitcoin",
"asset_platform_id": null,
"*****"
}
},
"finished_at": "2024-04-25T03:12:41.767455"
}
```
### Get the Coin Ticker by ID
<mark style="color:green;">`action`</mark> `coin_ticker_by_id`
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th width="160">Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action you want to perform</td><td>coin_ticker_by_id</td><td>true</td></tr><tr><td>id</td><td><code>string</code></td><td>The id of the coin.</td><td></td><td>true</td></tr></tbody></table>
**Output Parameters**
<table><thead><tr><th width="146">Name</th><th>Type</th><th>Description</th><th>File Type</th></tr></thead><tbody><tr><td>data</td><td><code>object</code></td><td>The output of coingecko API.</td><td></td></tr></tbody></table>
#### Output Example
```json
{
"status": "SUCCESS",
"created_at": "2024-04-25T03:21:00.040066",
"started_at": "2024-04-25T03:21:03.711204",
"result": {
"data": {
"name": "Bitcoin",
"tickers": ["***"]
}
},
"finished_at": "2024-04-25T03:21:06.378630"
}
```
### Advanced
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>endpoint</td><td><code>string</code></td><td>The endpoint url of Coingecko, please add the path params in the endpoint</td><td>https://pro-api.coingecko.com/api/v3/coins/id</td><td>true</td></tr><tr><td>query_param</td><td><code>string</code></td><td>Dict type of query params</td><td></td><td>false</td></tr></tbody></table>
## Detailed Guidelines
> Note: You can test this feature in the widget center, but please be cautious not to output excessive information on the website. Some cryptocurrency data can be extensive and may cause your website to become unresponsive or crash.
* Main parameter of Coins:
* `task_type` , you can use the `coin_id` to obtain the identifier of your chosen cryptocurrency. Then, utilize other functions named `xx_by_id` to fetch specific details about that cryptocurrency.
* When using `coin_id`, you should provide the name of the coin as a parameter. For `xx_by_id` functions, you should supply the coin's ID as the parameter.
* Main parameter of Advanced
* `endpoint`, refer to the [CoinGecko API documentation](https://docs.coingecko.com/reference/introduction) and use the API interface as the endpoint. Be sure to include the path parameters in the endpoint.
* For the query parameters, add them as a dictionary, following the format described in the [CoinGecko API documentation](https://docs.coingecko.com/reference/introduction)
* Some examples
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Fgit-blob-a3e6676e9b41ddac332d8ec0f19edd9ea97b35fc%2Fimage%20(24).png?alt=media" alt=""><figcaption></figcaption></figure>
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Fgit-blob-2f5bad50b26bd1ed75c0546ef65170d54786260d%2Fimage%20(25).png?alt=media" alt=""><figcaption></figcaption></figure>
# ControlNet with Civitai
Stable Diffusion with ControlNet
{% hint style="info" %}
This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully.
You need to pass both the `action` and other input parameters of the chosen action to your `module_config`
{% endhint %}
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1793089562715484160) to try this widget and copy the Pro Config template.
## Usage
### Generate Picture with ControlNet
<mark style="color:green;">`action`</mark> `txt2img`
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action of ControlNet, txt2img or img2img</td><td>txt2img</td><td>true</td></tr><tr><td>model</td><td><code>string</code></td><td>The model id from civitai (SD1.5, SDXL 1.0, PlaygroundV2). How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>64094</td><td>true</td></tr><tr><td>controlnet_model</td><td><code>string</code></td><td>The ControlNet model id from civitai. How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>10971</td><td>true</td></tr><tr><td>image</td><td><code>string</code></td><td>The input image, can be a url or base64 sting</td><td></td><td>true</td></tr><tr><td>no_mask</td><td><code>boolean</code></td><td>Whether to use mask</td><td>False</td><td>true</td></tr><tr><td>mask</td><td><code>string</code></td><td>The correspond mask, can be a url or base64 sting. 1 for mask region</td><td></td><td>false</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt for ControlNet. Add lora? add `` to your prompt. `$id` is the series number and `$weight` is the lora weight you want (always set to 1.0). You can use multiple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for ControlNet.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>true</td></tr><tr><td>controlnet_module</td><td><code>string</code></td><td>The ControNet module</td><td>none</td><td>true</td></tr><tr><td>guidance_start</td><td><code>number</code></td><td>ControlNet guidance start</td><td>0</td><td>true</td></tr><tr><td>guidance_end</td><td><code>number</code></td><td>ControlNet guidance end</td><td>1</td><td>true</td></tr><tr><td>control_mode</td><td><code>string</code></td><td>The improved guess mode</td><td>Balanced</td><td>true</td></tr><tr><td>weight</td><td><code>number</code></td><td>The weight of the controlnet model</td><td>1</td><td>true</td></tr><tr><td>resize_mode</td><td><code>string</code></td><td>Four modes for output shape calculation: (1) Keep: keep original shape, (2) Certain: based on input width/length (divisible by 32), (3,4) min/max ratio: keep aspect ratio, the resize factor is the min/max of (h/H, w/W).</td><td>certain</td><td>true</td></tr><tr><td>threshold_a</td><td><code>integer</code></td><td>The threshold A for controlnet model</td><td>64</td><td>true</td></tr><tr><td>threshold_b</td><td><code>integer</code></td><td>The threshold B for controlnet model</td><td>64</td><td>true</td></tr><tr><td>steps</td><td><code>integer</code></td><td>Steps for sampler to step whle sampling</td><td>25</td><td>true</td></tr><tr><td>cfg_scale</td><td><code>number</code></td><td>Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results. Default to 7.</td><td>7.0</td><td>true</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference</td><td>DPM++ 2M</td><td>true</td></tr><tr><td>height</td><td><code>integer</code></td><td>Height of the generated images</td><td>512</td><td>true</td></tr><tr><td>width</td><td><code>integer</code></td><td>Width of the generated images</td><td>512</td><td>true</td></tr><tr><td>seed</td><td><code>integer</code></td><td>Random seed for generation process. -1 means random seed</td><td>-1</td><td>false</td></tr><tr><td>clip_skip</td><td><code>integer</code></td><td>Early stopping parameter for CLIP model; 1 is stop at last layer as usual, 2 is stop at penultimate layer, etc.</td><td>1</td><td>true</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- |
| url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
"url": "https://image.myshell.ai/image/chat/embed_obj/7758545/202405220201/6ee8737899794e9bb2e12b5844a4b11a.jpg"
}
```
{% endcode %}
{% endtab %}
{% endtabs %}
### Inpaint with ControlNet
<mark style="color:green;">`action`</mark> `img2img`
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action of ControlNet, txt2img or img2img</td><td>txt2img</td><td>true</td></tr><tr><td>model</td><td><code>string</code></td><td>The model id from civitai (SD1.5, SDXL 1.0, PlaygroundV2). How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>64094</td><td>true</td></tr><tr><td>controlnet_model</td><td><code>string</code></td><td>The ControlNet model id from civitai. How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>10971</td><td>true</td></tr><tr><td>image</td><td><code>string</code></td><td>The input image, can be a url or base64 sting</td><td></td><td>true</td></tr><tr><td>no_mask</td><td><code>boolean</code></td><td>Whether to use mask</td><td>False</td><td>true</td></tr><tr><td>mask</td><td><code>string</code></td><td>The correspond mask, can be a url or base64 sting. 1 for mask region</td><td></td><td>false</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt for ControlNet. Add lora? add `` to your prompt프로젝트로 돌아가기