Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
docs: Add paragraphs example with audio (#927)
Browse files Browse the repository at this point in the history
Update Model.js

Co-authored-by: hlomzik <[email protected]>
Co-authored-by: hlomzik <[email protected]>
  • Loading branch information
3 people authored Nov 9, 2023
1 parent 5b34c44 commit 9c86b89
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/tags/object/Paragraphs/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ import styles from './Paragraphs.module.scss';
* <Label value="Random talk"></Label>
* </ParagraphLabels>
* </View>
* @example
* <!-- Paragraphs with audio -->
* <View>
* <Paragraphs audioUrl="$audio" value="$para" name="paragraphs"
* layout="dialogue" textKey="text" nameKey="author"
* showPlayer="true"
* />
*
* <Choices name="choices" toName="paragraphs" choice="multiple">
* <Choice value="Good quality"/>
* <Choice value="Fast speech"/>
* </Choices>
* </View>
*
* <!-- {"data": {
* "para": [
* {"text": "test 1", "author": "A", "start": 0.0, "end": 1.0},
* {"text": "test 2", "author": "B", "start": 1.0, "end": 2.0},
* {"text": "test 3", "author": "A", "start": 2.0, "end": 3.0}
* ],
* "audio": "/static/samples/game.wav"
* }}
* -->
* @name Paragraphs
* @regions ParagraphsRegion
* @meta_title Paragraph Tags for Paragraphs
Expand Down

0 comments on commit 9c86b89

Please sign in to comment.