Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 8201030: Introducing the basic functionality to the speech input experimental API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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": {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 input has ended.",
674 "parameters": [] 674 "parameters": []
675 }, 675 },
676 { 676 {
677 "name": "onResult", 677 "name": "onSpeechResult",
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": "SpeechResultEvent",
684 "description": "Object containing the speech recognition results." 684 "description": "Object containing the speech recognition results."
685 } 685 }
686 ] 686 ]
687 } 687 }
(...skipping 8260 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698