Voice simulation object.
By Michael Zbysyzynski at CNMAT MMJ Depot
Voice simulation object.
By Michael Zbysyzynski at CNMAT MMJ Depot
Speeches, interviews, etc., by Fidel Castro from 1959 to 1996.
From LANIC: Latin American Network Information Center
Recorded examples from around the world of people reading an identical paragraph.
By Steven H. Weinberger and friends at George Mason University
by Jordan Smith at McGill University
http://www.music.mcgill.ca/~jordan/coursework/mumt307/speech_synth.html
By metabog
By Tom Simonite at technologyreview.com
http://www.technologyreview.com/news/507181/microsoft-brings-star-treks-voice-translator-to-life/?0
http://youtu.be/vGYKxrRWDKo
This project brings together several examples of API programming with Max. The pandorabots.api patch contains an example of using curl to generate an XML response file, then converts XML to JSON using a Python script. The resulting JSON file is read into Max and parsed using the [js] object.
Here is an audio recording of my conversation (using Max) with a text chatbot named ‘Chomsky’
My voice gets recorded by Max then converted to text by the Google speech-api.
The text is passed to the Pandorabots API. The chatbot response gets spoken by the aka.speech external which uses the Mac OS built-in text-to-speech system.
Note: The above recording was processed with a ‘silence truncate’ effect because there were 3-5 second delays between responses. In realtime it has the feel of the Houston/Apollo dialogs.
pandorabots-api.maxpat (which handles chatbot responses) gets text input from speech-to-google-text-api2.maxpat – a patch that converts speech to text using the Google speech-API.
https://reactivemusic.net/?p=4690
The output (responses from chatbot) get sent to twitter-search-to-speech2.maxpat which “speaks” using the Mac OS text-to-speech program using the aka.speech external.
Max
The files for this project can be downloaded from the intenet-sensors archive at github
Update: Now part of Internet Sensors project: https://reactivemusic.net/?p=9834
original post
Looking into using an API to communicate with chatbots
Here is info from pandorabots FAQ: http://www.pandorabots.com/botmaster/en/~15580d493a63acc7fab1820f~/faq
Chomsky bot id: botid=b0dafd24ee35a477
Pandorabots has an API called XML-RPC that you can use to connect third-party software to our server. The XML-RPC has been used to connect Pandorabots to a wide variety of third-party applications, including Mified, mIRC, Second Life and Flash.
You may interact with Pandorabots as a webservice. Pandorabots offers consulting services supporting arbitrary web services for premium services customers. Please contact [email protected] for more information.
A client can interact with a Pandorabot by POST’ing to:
The form variables the client needs to POST are:
This will give a text/xml response. For example:
<result status="0" botid="c49b63239e34d1d5" custid="d2228e2eee12d255"> <input>hello</input> <that>Hi there!</that> </result>
The <input> and <that> elements are named after the corresponding AIML elements for bot input and last response. If there is an error,status will be non-zero and there will be a human readable <message> element included describing the error. For example:
<result status="1" custid="d2228e2eee12d255"> <input>hello</input> <message>Missing botid</message> </result>
Note that the values POST’d need to be form-urlencoded.
[update}
Here are two examples I just got to work using curl
curl -X POST --data "botid=b0dafd24ee35a477&input=hello" http://www.pandorabots.com/pandora/talk-xml curl -X POST --data "botid=b0dafd24ee35a477&input=Where are you?" http://www.pandorabots.com/pandora/talk-xml
<result status="0" botid="b0dafd24ee35a477" custid="b3422b612633ac87"><input>Where are you?</input><that>I am in the computer at Pandorabots.com.</that></result>