Android Question google word pronunciation problem

Discussion in 'Android Questions' started by AbbasMohammed, Jul 7, 2015.

  1. AbbasMohammed

    AbbasMohammed Member Licensed User

    Hellow evrybody,
    this code shold result pronunciation of the word Edel , but it didnt, can any one help me about this,
    Code:
    Dim WebView1 as webview
    WebView1..initilize(
    "xxx")
    WebView1.LoadUrl(
    "http://translate.google.com/translate_tts?tl=de&q="&"Edel")
    Many thanks in advance
     
  2. eurojam

    eurojam Well-Known Member Licensed User

    you have to add the webview to a parent view like the activity:
    Code:
    Sub Activity_Create(FirstTime As Boolean)
        
    'Do not forget to load the layout file created with the visual designer. For example:
        'Activity.LoadLayout("Layout1")
        Dim WebView1 As WebView
        WebView1.initialize(
    "xxx")
        
    Activity.AddView(WebView1,0,0,100%x,100%y)
        WebView1.LoadUrl(
    "http://translate.google.com/translate_tts?tl=de&q=Edel")

    End Sub
     
    AbbasMohammed likes this.
  3. AbbasMohammed

    AbbasMohammed Member Licensed User

    it didnt work!!!
     
  4. sonicmayne

    sonicmayne Member Licensed User

  5. eurojam

    eurojam Well-Known Member Licensed User

    what happened?
     
  6. AbbasMohammed

    AbbasMohammed Member Licensed User

    it just didnt make any sound
     
  7. AbbasMohammed

    AbbasMohammed Member Licensed User

  8. sonicmayne

    sonicmayne Member Licensed User

    Are you waiting for the StreamReady event and calling Play from the event?
     
  9. eurojam

    eurojam Well-Known Member Licensed User

Loading...