1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram

  5. Delphifan Magazine
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Voice Enable Your Android Apps Components

Discussion in 'Delphi Components,Freeware, Open Source' started by AdminDF, Nov 14, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Voice Launching Google Glass Apps

    Add a Voice Trigger XML file:
    Choose a Standard Voice command http://embt.co/glass-voice-triggers
    Deploy to res\xml\ folder.
    Modify the Android Manifest Template:
    Add an Intent Filter
    <action android:name=”com.google.android.glass.action.VOICE_TRIGGER”/>
    Add Meta Data for Filter
    <meta-data android:name=”com.google.android.glass.VoiceTrigger”
           android:resource=”@xml/my_voice_trigger” />
    Custom Glass Voice Trigger

    Change XML to from Command to Keyword.
    Use arbitrary text for voice trigger.
    Use the Development permission:
    <uses-permission
    android:name=”com.google.android.glass.permission.DEVELOPMENT”/>
    Added to android manifest template
    Not allowed for app store distribution
    Usable for in-house or ad-hoc use
    Additional Prompts on Google Glass

    Collect additional Voice recognition input when app is launched.
    Add an Input Prompt to the Voice Trigger XML
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <trigger command=”TAKE_A_NOTE”>
        <input prompt=”What shall I say?” />
    </trigger>
    In FormCreate get speech guesses from Intent Extras
    SharedActivity.getIntent.getExtras. getStringArrayList(TJRecognizerIntent.JavaClass.EXTRA_RESULTS);
    Voice Recognition on AndroidAndroid/Google - Speak Now

    Prompts user for voice input
    Returns up to 5 “guesses”
    Works offline too
    (only returns 1 guess)
    Reusable component for download.
    Requires RECORD_AUDIO & INTERNET permissions.
    Sends audio to Google’s servers.
    Uses context to select words.
    Pronounce punctuation (period, comma, etc.)
    Works on Android phones & tablets
    Works on Google Glass
    Works on Android Wear
    Doesn’t work on iOS (no exposed API)
    Could use a 3rd party recognition service
    Ex: http://www.politepix.com/openears/
    Using TSpeechRecognition Component

    Properties
    Language: en-US
    Prompt: Speak now
    AlwaysGuesses: True
    Methods
    Listen
    ListenFor
    Events
    OnRecognition
    OnRecognitionEx
    OnCommand
    Text-To-Speech on Android

    Converts Text to spoken word.
    Reusable component based on Jeff Overcash’s translation.
    Code shows example of handling Java Listener events.
    Works on Android phones & tablets
    Works on Google Glass
    Doesn’t work on Android Wear (no speaker)
    iOS Support is possible . . . . (needs implementation)
    Using TAndroidTTS Component (component name may change)

    Just one procedure: Speak
    A Note About iOS

    iOS does not expose voice recognition API
    (Need to use 3rd party)
    iOS 7 supports Text to Speech API
    AVSpeechSynthesizer
    Just haven’t implemented in component yet
    Google Glass Voice Trigger Sample

    C:\Users\Public\Documents\Embarcadero\Studio\15.0\Samples\
    \Object Pascal\Mobile Samples\Google Glass
    \CPP\Mobile Samples\Google Glass

    Download HERE Component
     
  2. dynamo
    Offline

    dynamo DF Expert

    Thanks
     

Share This Page