-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
691 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import jsonschema from './schema.json'; | ||
import JsonSchemaTable from '../../components/schema-table'; | ||
|
||
## Audio Timestamp Schema | ||
|
||
<JsonSchemaTable schema={jsonschema} /> | ||
|
||
## Example | ||
|
||
```json filename="index.json" | ||
{ | ||
"toolName": "audioFrameTool", | ||
"result": [ | ||
{ | ||
"id": "cbqbst6gj5f", | ||
"time": 5.6555891238670695, | ||
"label": "label-1", | ||
"order": 3, | ||
"attributes": { | ||
"contains": "Hello" | ||
} | ||
}, | ||
{ | ||
"id": "c8il22ceipi", | ||
"time": 7.917824773413897, | ||
"label": "label-1", | ||
"order": 4, | ||
"attributes": { | ||
"contains": "Human" | ||
} | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import MarkdownWithHighlight from '@/components/markdown-with-highlight'; | ||
|
||
import Markdown from './example.mdx'; | ||
|
||
export default function AudioFrameSchema() { | ||
return ( | ||
<MarkdownWithHighlight> | ||
<Markdown /> | ||
</MarkdownWithHighlight> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "唯一标识" | ||
}, | ||
"time": { | ||
"type": "number", | ||
"description": "时间点" | ||
}, | ||
"order": { | ||
"type": "integer", | ||
"description": "标注顺序", | ||
"minimum": 0 | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "标注类别", | ||
"default": "none" | ||
}, | ||
"attributes": { | ||
"type": "object", | ||
"description": "类别属性,键值对", | ||
"additionalProperties": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"required": ["x", "y", "width", "height", "id", "order", "label"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import jsonschema from './schema.json'; | ||
import JsonSchemaTable from '../../components/schema-table'; | ||
|
||
## Audio Segment Schema | ||
|
||
<JsonSchemaTable schema={jsonschema} /> | ||
|
||
## Example | ||
|
||
```json | ||
{ | ||
"toolName": "audioSegmentTool", | ||
"result": [ | ||
{ | ||
"id": "58gz4irdvip", | ||
"start": 4.2634441087613295, | ||
"end": 8.845921, | ||
"order": 1, | ||
"label": "label-1", | ||
"attributes": { | ||
"car": ["bmw"] | ||
} | ||
}, | ||
{ | ||
"id": "dtgvrzgfgcp", | ||
"start": 5.713595166163143, | ||
"end": 9.89003, | ||
"order": 2, | ||
"label": "label-1", | ||
"attributes": { | ||
"car": ["bmw"] | ||
} | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import MarkdownWithHighlight from '@/components/markdown-with-highlight'; | ||
|
||
import Markdown from './example.mdx'; | ||
|
||
export default function AudioSegmentSchema() { | ||
return ( | ||
<MarkdownWithHighlight> | ||
<Markdown /> | ||
</MarkdownWithHighlight> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "唯一标识" | ||
}, | ||
"start": { | ||
"type": "number", | ||
"description": "起始时间" | ||
}, | ||
"end": { | ||
"type": "number", | ||
"description": "结束时间" | ||
}, | ||
"order": { | ||
"type": "integer", | ||
"description": "标注顺序", | ||
"minimum": 0 | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "标注类别", | ||
"default": "none" | ||
}, | ||
"attributes": { | ||
"type": "object", | ||
"description": "类别属性,键值对", | ||
"additionalProperties": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"required": ["x", "y", "width", "height", "id", "order", "label"] | ||
} |
Oops, something went wrong.