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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 { | 500 { |
501 "$ref": "AccessibilityObject", | 501 "$ref": "AccessibilityObject", |
502 "name": "menu", | 502 "name": "menu", |
503 "description": "Information about the menu that was closed." | 503 "description": "Information about the menu that was closed." |
504 } | 504 } |
505 ] | 505 ] |
506 } | 506 } |
507 ] | 507 ] |
508 }, | 508 }, |
509 { | 509 { |
510 "namespace": "experimental.tts", | 510 "namespace": "tts", |
511 "types": [ | 511 "types": [ |
512 { | 512 { |
513 "id": "TtsEvent", | 513 "id": "TtsEvent", |
514 "type": "object", | 514 "type": "object", |
515 "description": "An event from the TTS engine to communicate the status o
f an utterance.", | 515 "description": "An event from the TTS engine to communicate the status o
f an utterance.", |
516 "properties": { | 516 "properties": { |
517 "type": { | 517 "type": { |
518 "type": "string", | 518 "type": "string", |
519 "enum": ["start", "end", "word", "sentence", "marker", "interrupted"
, "cancelled", "error"], | 519 "enum": ["start", "end", "word", "sentence", "marker", "interrupted"
, "cancelled", "error"], |
520 "description": "The type can be 'start' as soon as speech has starte
d, 'word' when a word boundary is reached, 'sentence' when a sentence boundary i
s reached, 'marker' when an SSML mark element is reached, 'end' when the end of
the utterance is reached, 'interrupted' when the utterance is stopped or interru
pted before reaching the end, 'cancelled' when it's removed from the queue befor
e ever being synthesized, or 'error' when any other error occurs." | 520 "description": "The type can be 'start' as soon as speech has starte
d, 'word' when a word boundary is reached, 'sentence' when a sentence boundary i
s reached, 'marker' when an SSML mark element is reached, 'end' when the end of
the utterance is reached, 'interrupted' when the utterance is stopped or interru
pted before reaching the end, 'cancelled' when it's removed from the queue befor
e ever being synthesized, or 'error' when any other error occurs." |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 { | 715 { |
716 "type": "array", | 716 "type": "array", |
717 "name": "voices", | 717 "name": "voices", |
718 "items": { "$ref": "TtsVoice" }, | 718 "items": { "$ref": "TtsVoice" }, |
719 "description": "Array of $ref:TtsVoice objects representing the
available voices for speech synthesis." | 719 "description": "Array of $ref:TtsVoice objects representing the
available voices for speech synthesis." |
720 } | 720 } |
721 ] | 721 ] |
722 } | 722 } |
723 ] | 723 ] |
724 } | 724 } |
| 725 ], |
| 726 "events": [ |
| 727 { |
| 728 "name": "onEvent", |
| 729 "type": "function", |
| 730 "nodoc": true, |
| 731 "parameters": [ |
| 732 { |
| 733 "name": "event", |
| 734 "$ref": "TtsEvent", |
| 735 "description": "The event from the text-to-speech engine indicating
the status of this utterance." |
| 736 } |
| 737 ], |
| 738 "description": "Used to pass events back to the function calling speak()
." |
| 739 } |
725 ] | 740 ] |
726 }, | 741 }, |
727 { | 742 { |
728 "namespace": "experimental.ttsEngine", | 743 "namespace": "ttsEngine", |
729 "functions": [ | 744 "functions": [ |
730 { | 745 { |
731 "name": "sendTtsEvent", | 746 "name": "sendTtsEvent", |
732 "nodoc": true, | 747 "nodoc": true, |
733 "type": "function", | 748 "type": "function", |
734 "description": "Route a TTS event from a speech engine to a client.", | 749 "description": "Route a TTS event from a speech engine to a client.", |
735 "parameters": [ | 750 "parameters": [ |
736 { | 751 { |
737 "type": "integer", | 752 "type": "integer", |
738 "name": "requestId" | 753 "name": "requestId" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 "description": "The event from the text-to-speech engine indicat
ing the status of this utterance." | 826 "description": "The event from the text-to-speech engine indicat
ing the status of this utterance." |
812 } | 827 } |
813 ] | 828 ] |
814 } | 829 } |
815 ] | 830 ] |
816 }, | 831 }, |
817 { | 832 { |
818 "name": "onStop", | 833 "name": "onStop", |
819 "type": "function", | 834 "type": "function", |
820 "description": "Fired when a call is made to tts.stop and this extension
may be in the middle of speaking. If an extension receives a call to onStop and
speech is already stopped, it should do nothing (not raise an error)." | 835 "description": "Fired when a call is made to tts.stop and this extension
may be in the middle of speaking. If an extension receives a call to onStop and
speech is already stopped, it should do nothing (not raise an error)." |
821 }, | |
822 { | |
823 "name": "onEvent", | |
824 "type": "function", | |
825 "nodoc": true, | |
826 "parameters": [ | |
827 { | |
828 "name": "event", | |
829 "$ref": "TtsEvent", | |
830 "description": "The event from the text-to-speech engine indicating
the status of this utterance." | |
831 } | |
832 ], | |
833 "description": "Used to pass events back to the function calling speak()
." | |
834 } | 836 } |
835 ] | 837 ] |
836 }, | 838 }, |
837 { | 839 { |
838 "namespace": "windows", | 840 "namespace": "windows", |
839 "types": [ | 841 "types": [ |
840 { | 842 { |
841 "id": "Window", | 843 "id": "Window", |
842 "type": "object", | 844 "type": "object", |
843 "properties": { | 845 "properties": { |
(...skipping 5653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6497 "description": "A string result code. The value is non-empty on
success only in tests.", | 6499 "description": "A string result code. The value is non-empty on
success only in tests.", |
6498 "optional": "true" | 6500 "optional": "true" |
6499 } | 6501 } |
6500 ] | 6502 ] |
6501 } | 6503 } |
6502 ] | 6504 ] |
6503 } | 6505 } |
6504 ] | 6506 ] |
6505 } | 6507 } |
6506 ] | 6508 ] |
OLD | NEW |