Nabaztag

From VoidWarranties - Hackerspace Antwerp, Belgium
(Difference between revisions)
Jump to: navigation, search
(cleanup, added how to make the nabaztag speak section.)
Line 34: Line 34:
 
step 3: listen to the nabaztag speak :).
 
step 3: listen to the nabaztag speak :).
 
<br><br><br><br>
 
<br><br><br><br>
 +
 +
'''Bash script'''
 +
<syntaxhighlight lang=sh>
 +
#!/bin/bash
 +
[[ $1 = "" ]] && echo "no argument" && exit 1
 +
text="$(echo $1 | sed 's/ /+/g')"
 +
voice=$2
 +
[[ $voice = '' ]] && voice=jeroen
 +
 +
curl "http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=${text}.&ws_acapela=${voice}" &>/dev/null
 +
</syntaxhighlight>
  
 
'''troubleshooting the led-codes:'''<br><br>
 
'''troubleshooting the led-codes:'''<br><br>

Revision as of 22:02, 11 July 2012


Nabaztag
What:
Getting the bunny in the space alive again and make it usefull.
Nabaztag-plus-cretin.png
Participants:
Kefcom
Category:
Electronics
Locations:
Den Bunker


General info :

Nabaztag is registered on the official servers at the moment (http://www.nabaztag.com)

Mac adress (for registration on servers): 00:19:db:00:0d:11
Our bunny's API key on nabaztag.com is: 7debd13e-8c04-4c4c-8c61-1ccf426f6cfc




how to make the nabaztag speak:

The API of whizz.cc offers a variety of TTS engines, you can use them by simply calling the url, and replace the text (more info about the API here:http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz):

/!\ texts are limited to 1024 characters, and are sometimes interpreted by the TTS engine (e.g: 12:45 becomes in text: twelve hours forty-five minutes) /!\

step 1: choose a voice:
list of voices can be found here: http://nabaztag.forumactif.fr/t13483-ojn-wizzcc-api-unifiee-pour-les-nabaztag-karotz <- look under ws_acapela

step 2: call the url using parameters:
http://api.wizz.cc/?sn=<1>&token=<2>&server=<3>&tts=<4>&ws_acapela=<5>


example url: http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=dit+is+een+test+zin.&ws_acapela=jeroen

step 3: listen to the nabaztag speak :).



Bash script

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, fsharp, g-code, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, oobas, oracle11, oracle8, oxygene, oz, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, uscript, vala, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


#!/bin/bash
[[ $1 = "" ]] && echo "no argument" && exit 1
text="$(echo $1 | sed 's/ /+/g')"
voice=$2
[[ $voice = '' ]] && voice=jeroen

curl "http://api.wizz.cc/?sn=0019db000d11&token=7debd13e-8c04-4c4c-8c61-1ccf426f6cfc&server=violet&tts=${text}.&ws_acapela=${voice}" &>/dev/null

troubleshooting the led-codes:

bottom leds:
left: Wifi connection (red/green)
middle: Dhcp
right: dns lookup of the server

top led: connection to the nab server.





history of the nabaztag:

- nabaztag company went bankrupt, but has been taken over by ALDEBARAN ROBOTICS and the nabaztag is now known as Karotz (nabaztag generation 3 and up) - when violet went bankrupt they took their servers down with them, leaving the nabaztag to malfunction and basicly become useless. - ALDEBARAN ROBOTICS revived the karrotz project and sells them, and put an official nabaztag server up again. There are also some sources available for running a server (for example: [1]) or you can use a the original code used on the violet servers: [2].

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Content Creation
Belgian Spaces