Files

8 lines
994 B
Plaintext

interface ReadingServices id "interface:reading:services" revision "interface:reading:services@1" {
operation speechStatus id "reading:services:speech-status" : unit -> record {configured:bool;voice:string;} {call id "reading:services:speech-status:call" execution snapshot;}
operation configureSpeech id "reading:services:configure-speech" : record {key:optional<string>;voice:string;} -> unit {call id "reading:services:configure-speech:call" execution transaction;}
operation speak id "reading:services:speak" : string -> bytes {call id "reading:services:speak:call" execution remote;}
operation searchWikipedia id "reading:services:wiki-search" : string -> list<record {title:string;description:string;}> {call id "reading:services:wiki-search:call" execution remote;}
operation readWikipedia id "reading:services:wiki-read" : string -> record {title:string;text:string;source:string;url:string;attribution:string;} {call id "reading:services:wiki-read:call" execution remote;}
}