|   FORUM      |     Tutoriales    |     KIO4 |      
   Start B4A (Basic4Android) App inventor 2 Arduino
   Elastix - VoIP Things of Windows Interesting Webs  Telecomunications

 


Nuevo concurso para España, Argentina, Brasil, Chile, Colombia, Ecuador, México, Perú y Portugal.

App Inventor 2
Programming mobile phones with Android 
by App Inventor 2 - Juan Antonio Villalpando

- Initiation Tutorial App Inventor 2 -

Return to tutorial index

____________________________

Media

11.- Camera. Notifier. Text to speech.

ip11_camera

- Press a Button and the Camera phone or tablet starts.
- We make a picture.
- When you have made ​​the photo, it appears in size 100 x 100 screen, along comes a notification that the photo has been taken and also a message voice: "The photo has been taken."

To operate the process text to speech, we must download and install on your mobile phone or tablet, this file tts_3.1_market.apk or scan this QR:

obtained in ... http://code.google.com/p/eyes-free/downloads/list

It can also serve:

talkback-v3.5.0_r105.apk

_________________
Design

Propierties Image1: Width:100, Hight: 100

_________________
Blocks

By the Pitch we can set the tone of the sound. SpeechRate to speed, these numbers can have a value between 0 and 2.
See bottom of this page code countries.


- The picture is saved in file:///mnt/sdcard/Pictures/app_inventor_1111.jpg

______________________________
12.- SoundPlayer. VideoPlayer.
To hear sounds, music and watching videos.

ip12_sound

Sound is used for short sounds: gunshots, musical notes, sound at an event occurrence, ...
Property: MinimumInterval (ms) is the maximum time between two sounds, we put 1

Player is used for songs, its mp3, mid, ... is also used for mobile vibration.

VideoPlayer is used for videos. (MP4).

notas.zip

SanBernardino.mid

Amarillo.mid

dw11222.mp4 (3 MB)

- Video mp4 converter online to: http://video.online-convert.com/es/convertir-a-mp4

- Examples of .wmw files: http://download.wavetlan.com/SVV/Media/HTTP/http-wmv.htm

- Examples of .mp4 files: http://download.wavetlan.com/SVV/Media/HTTP/http-mp4.htm

_________________
Design

_________________
Blocks

_____

- Another project of piano

p12B_mini_piano

This project is more sophisticated than the previous mini piano.

______________________________
13.- SoundRecorder.

p13_grabador_voz

We spoke in front of mobile or tablet, we recorded our sound and then reproduce.

The display changes its background color at the beginning and end of the recording.

_________________
Design

_________________
Blocks

______________________________
14.- TextToSpeech. SpeechRecognizer.

ip14_text_to_speech

- You write a short text in the box and press the Button. The program will deliver written.

- You press the Button and speak in front mobile or tablet. The steepness be written on the Label.

- In the TextToSpeech they are Properties Pitch and VelocidadDePronunciación with which we can set the tone and speed of pronunciation.

_________________
Design

_________________
Blocks

______________________________
15.- YandexTranslate.

ip15_yandex_translate.aia

- You write anything in the box, then click the button and translated (in the chosen language) text showing it on the Label.


- In languageToTraslate, we put the language you want to translate (es, eng, fra, ita, por).
- Other form: eng-es, es-eng eng-fra es-por.
- Languages ​​that can be used: Yandex.

- For operation it is necessary for the mobile or tablet is connected to the Internet, since the translation is done on the web Yandex.

_________________
Design

_________________
Blocks

______________________________
16.- Translation Exercise.

ip16_traslate_speech

With the controls seen so far, performed a program where:

- When press Button1. You speak a phrase.
The phrase is written in Label1 (SpeechRecognizer).
- When press Button2. The phrase found in the Label1 Speech.


- When press Button3. The phrase found in the Label1 be translated into Spanish and written to the Label2 (YandexTranslate).

- When press Button4. The phrase in the Label2 is write in English (TextToSpeech).

_________________
Design

_________________
Blocks

 

 

_________________
Codes

List of country codes and language for TextToSpeech

  • ces (Czech Republic)
    • CZE
  • spa (Spain)
    • ESP
    • USA
  • deu (Germany)
    • AUT
    • BEL
    • CHE
    • DEU
    • LIE
    • LUX
  • fra (France)
    • BEL
    • DOG
    • CHE
    • FRA
    • LUX
  • NLD (Netherlands)
    • BEL
    • NLD
  • ita (Italy)
    • CHE
    • ITA
  • pol (Poland)
    • POL
  • eng (English)
    • AUS
    • BEL
    • BWA
    • BLZ
    • DOG
    • GBR
    • HKG
    • IRL
    • IND
    • JAM
    • MHL
    • MLT
    • NAM
    • NZL
    • PHL
    • PAK
    • SGP
    • TTO
    • USA
    • VIR
    • ZAF
    • ZWE

__________________________________

 

- My e-mail:
juana1991@yahoo.com
- Who I am. - Cookies. Texts and images propierty autor:
© Juan A. Villalpando
Not copy texts neither images.
We use our own cookies and third-party cookies on our websites to maintain the session and your preferences, customize your user experience and obtain website use statistics.
Si continúa navegando consideramos que acepta su uso. OK    Más información