Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "unprivileged": true, | 4 "unprivileged": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "MessageSender", | 7 "id": "MessageSender", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "An object containing information about the script contex t that sent a message or request.", | 9 "description": "An object containing information about the script contex t that sent a message or request.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 541 "description": "BCP-47 language code of the language to recognize. W hen set to 'auto' or not defined defaults to user's most preferred content langu age. Will use 'en-US' if not supported or invalid." | 541 "description": "BCP-47 language code of the language to recognize. W hen set to 'auto' or not defined defaults to user's most preferred content langu age. Will use 'en-US' if not supported or invalid." |
| 542 }, | 542 }, |
| 543 "grammar": { | 543 "grammar": { |
| 544 "type": "string", | 544 "type": "string", |
| 545 "description": "Name of the grammar to use. Defaults to 'builtin:sea rch'.", | 545 "description": "Name of the grammar to use. Defaults to 'builtin:sea rch'.", |
| 546 "optional": true | 546 "optional": true |
| 547 }, | 547 }, |
| 548 "filterProfanities": { | 548 "filterProfanities": { |
| 549 "type": "boolean", | 549 "type": "boolean", |
| 550 "optional": true, | 550 "optional": true, |
| 551 "description": "Enable or disable profanity filtering. Will use the default Chrome filtering settings if not provided." | 551 "description": "Enable or disable profanity filtering. Will use the default Chrome filtering settings if not set." |
| 552 } | 552 } |
| 553 } | 553 } |
| 554 }, | 554 }, |
| 555 { | 555 { |
| 556 "id": "Error", | 556 "id": "Error", |
| 557 "type": "object", | 557 "type": "object", |
| 558 "description": "Object describing a speech input error.", | 558 "description": "Object describing a speech input error.", |
| 559 "properties": { | 559 "properties": { |
| 560 "code": { | 560 "code": { |
| 561 "type": "string", | 561 "type": "string", |
| 562 "enum": ["noDevicesAvailable", "unableToStart", "noSpeechHeard", "no Results", "captureError", "networkError", "internalError", "requestDenied"], | 562 "enum": ["noDevicesAvailable", "unableToStart", "noSpeechHeard", "no Results", "captureError", "networkError", "requestDenied"], |
| 563 "description": "Code identifying the error case." | 563 "description": "Code identifying the error case." |
| 564 } | 564 } |
| 565 } | 565 } |
| 566 }, | 566 }, |
| 567 { | 567 { |
| 568 "id": "ResultHypothesis", | 568 "id": "ResultHypothesis", |
| 569 "type": "object", | 569 "type": "object", |
| 570 "description": "Object describing a speech recognition hypothesis.", | 570 "description": "Object describing a speech recognition hypothesis.", |
| 571 "properties": { | 571 "properties": { |
| 572 "utterance": { | 572 "utterance": { |
| 573 "type": "string", | 573 "type": "string", |
| 574 "description": "Text of this hypothesis." | 574 "description": "Text of this hypothesis." |
| 575 }, | 575 }, |
| 576 "confidence": { | 576 "confidence": { |
| 577 "type": "number", | 577 "type": "number", |
| 578 "description": "Confidence of the hypothesis. Rated from 0 (lowest) to 1 (highest)." | 578 "description": "Confidence of the hypothesis. Rated from 0 (lowest) to 1 (highest)." |
| 579 } | 579 } |
| 580 } | 580 } |
| 581 }, | 581 }, |
| 582 { | 582 { |
| 583 "id": "SpeechResultEvent", | 583 "id": "ResultEvent", |
|
Satish
2011/10/09 20:01:47
while events and methods are always accessed via t
Leandro GraciĆ” Gil
2011/10/10 18:59:38
Looks like you're right. I've tried to use a diffe
| |
| 584 "type": "object", | 584 "type": "object", |
| 585 "description": "Object containing the recognition results.", | 585 "description": "Object containing the recognition results.", |
| 586 "properties": { | 586 "properties": { |
| 587 "hypotheses": { | 587 "hypotheses": { |
| 588 "type": "array", | 588 "type": "array", |
| 589 "optional": true, | 589 "optional": true, |
| 590 "description": "Array of zero or more objects describing the stable candidate hypotheses sorted by decreasing likelihood.", | 590 "description": "Array of zero or more objects describing the stable candidate hypotheses sorted by decreasing likelihood.", |
| 591 "items": { "$ref": "ResultHypothesis" } | 591 "items": { "$ref": "ResultHypothesis" } |
| 592 } | 592 } |
| 593 } | 593 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 663 }, | 663 }, |
| 664 { | 664 { |
| 665 "name": "onSoundStart", | 665 "name": "onSoundStart", |
| 666 "type": "function", | 666 "type": "function", |
| 667 "description": "Called when the system starts detecting sound in the inp ut data.", | 667 "description": "Called when the system starts detecting sound in the inp ut data.", |
| 668 "parameters": [] | 668 "parameters": [] |
| 669 }, | 669 }, |
| 670 { | 670 { |
| 671 "name": "onSoundEnd", | 671 "name": "onSoundEnd", |
| 672 "type": "function", | 672 "type": "function", |
| 673 "description": "Called when the system detects enough silence to conside r the ongoing input has ended.", | 673 "description": "Called when the system detects enough silence to conside r the ongoing speech has ended.", |
| 674 "parameters": [] | 674 "parameters": [] |
| 675 }, | 675 }, |
| 676 { | 676 { |
| 677 "name": "onResult", | 677 "name": "onResult", |
| 678 "type": "function", | 678 "type": "function", |
| 679 "description": "Called when speech recognition results are available.", | 679 "description": "Called when speech recognition results are available.", |
| 680 "parameters": [ | 680 "parameters": [ |
| 681 { | 681 { |
| 682 "name": "event", | 682 "name": "event", |
| 683 "$ref": "SpeechResultEvent", | 683 "$ref": "ResultEvent", |
| 684 "description": "Object containing the speech recognition results." | 684 "description": "Object containing the speech recognition results." |
| 685 } | 685 } |
| 686 ] | 686 ] |
| 687 } | 687 } |
| 688 ] | 688 ] |
| 689 }, | 689 }, |
| 690 { | 690 { |
| 691 "namespace": "tts", | 691 "namespace": "tts", |
| 692 "types": [ | 692 "types": [ |
| 693 { | 693 { |
| (...skipping 8254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8948 "optional": "true", | 8948 "optional": "true", |
| 8949 "description": "The MHTML data as a Blob." | 8949 "description": "The MHTML data as a Blob." |
| 8950 } | 8950 } |
| 8951 ] | 8951 ] |
| 8952 } | 8952 } |
| 8953 ] | 8953 ] |
| 8954 } | 8954 } |
| 8955 ] | 8955 ] |
| 8956 } | 8956 } |
| 8957 ] | 8957 ] |
| OLD | NEW |