Interface de voz
Upcoming SlideShare
Loading in...5
×
 

Interface de voz

on

  • 678 views

 

Statistics

Views

Total Views
678
Views on SlideShare
678
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Interface de voz Interface de voz Presentation Transcript

  • Intranet UniEE:Interface de vozIES Uni Eibar-Ermua y eFaber Noviembre de 2007, Ermua-Eibar
  • ¿Qué es VoIP?
  • Ejemplos ... y 1000s más
  • La voz como interface Ventajas Popularidad Innovación
  • ¿Como es posible?Web stack (SO, BD, RoR)VoIP (Asterisk)Ancho de bandaLos IVR dejan mucho que desear
  • Asterisk (conceptos) http://asterisk.orgCentralita Open Source(PBX)Protocolos: SIP, IAXProveedores
  • ComponentesClientes VoIP DID SIP, IAX SIP, IAX ZAP SIP, IAX Red PSTN Terminación
  • Cliente softphone
  • Cliente hardware
  • Números públicos
  • DID y SIP URI
  • Demo Acceso con el número público: 943 xxxxxx
  • Aspectos técnicosArquitecturaProveedoresStack de software
  • AGI y AMI Asterisk Gateway Interface Asterisk Manager Interface
  • Telegraph http://telegraph.rubyforge.org MVC respond_to
  • Telegraph y AGIexten => 105, 1, AGI(agi://127.0.0.1/my_route?param1=value)wants.voice do render_voice do |voice| voice.play “hello-world” voice.link_to_dtmf bank-lineitem-menu do link 1, :action=>"new" link 2, :action=>"list" link 3, :action=>"index" end endend
  • Demo
  • Ejemplo de voice viewdef show_notas @alumno = Alumno.find_by_dni(params[:dni]) @notas = @alumno.notas_ultima_evaluacionend <% @notas.each do |nota| %> <tr> <td class="list"><%= nota.asignatura %></td> <td class="list"><%= nota.nota %></td> </tr> <% end %>
  • Uso de Telegraph$ script/plugin install svn://rubyforge.org/var/svn/telegraph/trunken /etc/asterisk/extensions.conf:exten => 777,1, AGI(agi://192.168.1.1:4574/alumnos/index)en app/controllers/alumnos_controller.rb:def index respond_to do |wants| wants.html { render } wants.voice { render_voice { |voice| voice.play_sound "hello-world" } } endend
  • Telegraph: configuración$ vi config/telegraph.yaml development: agi_server: 127.0.0.1 agi_port: 4574 ami_server: druby://localhost:9000 outgoing_call_path: /var/spool/asterisk/outgoing wakeup_call_path: /var/spool/asterisk/wakeups sound_path: /var/lib/asterisk/sounds recording_path: /var/lib/asterisk/sounds$ script/agi_server
  • respond_to def index respond_to do |wants| wants.html { render } wants.voice { render_voice } end end $ vi app/views/alumnos/index.voice voice.play_sound "hello-world"
  • index# index.rhtml<h1>Consultas</h1><ul> <li> <%= link_to "Faltas", :action=>"faltas" %> </li> <li> <%= link_to "Notas", :action=>"notas" %> </li></ul> # index.voice voice.play_sound thank-you-for-calling voice.link_to_dtmf presione1-2 do link 1, :controller => "alumnos", :action => "faltas" link 2, :action => "notas" end
  • formulario# notas.rhtml<h1>Consultar notas</h1><% form_tag /alumnos/show_notas do %> DNI: <%= text_field_tag dni %> <%= submit_tag Ver notas %><% end %> # notas.voice voice.form :url=>{:controller => alumnos, :action=>show_notas} do |form| form.numeric_input dni, dni, :max_digits=>8 end
  • resultados# show_notas rhtml<h3>Notas de <%= @alumno.nombre %></h3><table class="list"> <% @notas.each do |nota| %> <tr> <td class="list"><%= nota.asignatura %></td> <td class="list"><%= nota.nota %></td> </tr> <% end %></table> # show.voice @notas.each do |nota| voice.play nota.asignatura.to_slug voice.play nota.nota end sleep 2.seconds voice.play "vm-goodbye"
  • No hay que pasarse Web vs Mobile web vs Voz ej: 466453.com
  • Links http://www.iesunibhi.com tel: 943 560009 http://asterisk.org http://www.rubyonrails.org http://www.voip-info.org http://telegraph.rubyforge.org http://telegraph.rubyforge.org/wiki/wiki.pl?UsingAGI
  • Contacto:IES Uni EE BHI eFaber S.L.Avenida Otaola, 29 Máximo Aguirre 11, 5 izq20600 EIBAR 48011 BilbaoTelf: 943-20.84.44 Telf: 94 4723589Fax: 943-20.31.96 E-mail: info@efaber.neyE-mail: uni@iesunibhi.com http://www.efaber.nethttp://www.iesunibhi.comBº Ongarai s/n48260 ERMUA (Bizkaia)Telf: 943-17.62.57Fax: 943-17.64.50E-mail: uni@iesunibhi.comhttp://www.iesunibhi.com