📄 useSpeechRecognition/demo¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 2 |
| 📦 Imports | 3 |
| 📊 Variables & Constants | 3 |
| 🟢 Vue Composition API | 3 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/useSpeechRecognition/demo.vue
📦 Imports¶
| Name | Source |
|---|---|
useSpeechRecognition |
@vueuse/core |
shallowRef |
vue |
watch |
vue |
Variables & Constants¶
| Name | Type | Kind | Value | Exported |
|---|---|---|---|---|
colors |
string[] |
let/var | ['aqua', 'azure', 'beige', 'bisque', 'black', 'blue', 'brown', 'chocolate', '... |
✗ |
grammar |
string |
let/var | #JSGF V1.0; grammar colors; public <color> = ${colors.join(' \| ')} ; |
✗ |
sampled |
boolean |
let/var | shallowRef<string[]>([]) |
✗ |
Vue Composition API¶
| Name | Type | Reactive Variables | Composables |
|---|---|---|---|
watch |
watch | none | none |
watch |
watch | none | none |
watch |
watch | none | none |
Functions¶
sample(arr: T[], size: number): T[]¶
Parameters:
arrT[]sizenumber
Returns: T[]
Calls:
arr.sliceMath.floorMath.randomshuffled.slice
Code
start(): void¶
Returns: void
Calls:
samplespeech.start
Code
Generated by Syntax Scribe