Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 54

Thread: google2ubuntu

  1. #21
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    Re: google2ubuntu

    Nice

    I think your thread belongs in Assistive Technology instead of The Cafe.

  2. #22
    Join Date
    Aug 2012
    Beans
    31

    Re: google2ubuntu

    It was in Assistive technology but it was moved

  3. #23
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    Re: google2ubuntu

    I do not think 'assistive technology' gets enough support. PM me if I can help.

  4. #24
    Join Date
    Apr 2010
    Beans
    255

    Re: google2ubuntu

    Quote Originally Posted by benoitfra View Post
    HI

    So what you should do is writing a module. A module is basically a script that will receive some text in parameter.

    Code:
    #!/bin/bash
    #here we get the text that google2ubuntu will send to the module
    URI=$1
    
    #then we proceed and launch the music
    MUSIC=$(locate -i ~/Music | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    rhythmbox-client --play-uri="$MUZIC";
    rhythmbox-client --play
    * Try the new module and add it to google2ubunt
    Done, so you will I to try that before I put it in google2ubuntu. HOW ? Open a terminal and go to the folder containing this script (music has to be mp3 or ogg)

    Code:
    cd <path_to_this_module>/
    chmod +x module.sh
    
    ./module.sh <title of the music>
    Then once the test is ok I will help you to add this module to google2ubuntu (it is very easy) and I will integrate it by default in google2ubuntu
    Thank you so much for the reply but you are dealing with a real dilettante here.

    Code:
    MUSIC=$(locate -i ~/Music | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    Ok is this part were locate -i ~/Music I should specify my music folder location ??

    my file looks like something like this

    Code:
    #!/bin/bashURI=$1
    
    
    MUSIC=$(locate -i '/media/levan/BEEA60D8EA608E89/Downloads/Music/MOR' | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    rhythmbox-client --play-uri="$MUZIC";
    rhythmbox-client --play
    When I say the keyword and the music I want to play it just plays the first song in rhythmicbox library and the google2ubuntu notification hangs.
    Last edited by Chelidze; February 10th, 2014 at 06:37 PM.

  5. #25
    Join Date
    Aug 2012
    Beans
    31

    Re: google2ubuntu

    Hello

    Code:
    MUSIC=$(locate -i ~/Music | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    this line should search in the folder you mention your music where music is the path

    If the player doesn''t play your music it's because that line doesn't find your file so MUSIC=''
    So rhythmbox only start and play the first song. I'm looking for improvement this scriptI

  6. #26
    Join Date
    Aug 2012
    Beans
    31

    Re: google2ubuntu

    Code:
    #!/bin/bash
    URI="$1"
    echo "url = $URI"
    
    
    FOLDER="$HOME/Musique"
    #then we proceed and launch the music
    MUSIC=$(ls -d -1 "$FOLDER"/* | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    echo "music = $MUSIC"
    
    
    rhythmbox-client --play-source="$MUZIC";
    rhythmbox-clien --play
    So maybe you can try this one I replace locate by ls in order not to have this problem I've tried the command (not the script I can't I haven't go rhythmbox) with a music on my computer redemption_song.mp3. I've executed:

    [CODE]
    ./rhythmbox.sh redemption
    [CODE]

  7. #27
    Join Date
    Oct 2005
    Beans
    202

    Re: google2ubuntu

    I found this English video:
    http://www.youtube.com/watch?v=HfrQrjH3AGw#t=280
    In this video, there is a demonstration of dictation mode. When I say "Dication Mode" in Google2Ubuntu, I see "Error: Setup file missing"
    Can you tell me how to enable dication mode?

  8. #28
    Join Date
    Aug 2012
    Beans
    31

    Re: google2ubuntu

    this video is not from me .
    In my logiciel if you want do start dictatin mode you have to say dictation mode. When you will relauch google2ubuntu everythin you will say is going to be typing. If you say exit dictation mode you will exit dictation mode

  9. #29
    Join Date
    Aug 2012
    Beans
    31

    Re: google2ubuntu

    Oops I forgot to tell how to add this commans.

    * dictation mode
    * exit dictation mode

    Are internal commands so you need to add them:

    1. Click the menu near the add button


    2. Select internal command

    3 Complete the new line that appears at the bottom of the treeview



    Replace "word" by "dictation mode" or "exit dictation mode" and "key sentence" by the sentence you want to pronounce to enter in dictation mode


    Then launch google2ubuntu and say the sentence to enter in dictation mode.
    Last edited by benoitfra; February 10th, 2014 at 08:27 PM.

  10. #30
    Join Date
    Apr 2010
    Beans
    255

    Re: google2ubuntu

    Quote Originally Posted by benoitfra View Post
    Code:
    #!/bin/bash
    URI="$1"
    echo "url = $URI"
    
    
    FOLDER="$HOME/Musique"
    #then we proceed and launch the music
    MUSIC=$(ls -d -1 "$FOLDER"/* | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    echo "music = $MUSIC"
    
    
    rhythmbox-client --play-source="$MUZIC";
    rhythmbox-clien --play
    So maybe you can try this one I replace locate by ls in order not to have this problem I've tried the command (not the script I can't I haven't go rhythmbox) with a music on my computer redemption_song.mp3. I've executed:

    [CODE]
    ./rhythmbox.sh redemption
    [CODE]

    Thank you for the reply but sadly this is what I got maybe I am doing something wrong

    This is the commend I used and this is what I got

    Code:
    #!/bin/bashURI="$1"
    echo "url = $URI"
    
    
    
    
    FOLDER="/home/levan/Music/"
    #then we proceed and launch the music
    MUSIC=$(ls -d -1 "$FOLDER"/* | egrep -i '\.(mp3|ogg)$' | grep "$URI")
    echo "music = $MUSIC"
    
    
    
    
    rhythmbox-client --play-source="$MUZIC";
    rhythmbox-clien --play
    http://ubuntuone.com/647zYDPnLxbJS0zyKDFimN

    If it does not work hell with it I can live without it
    Last edited by Chelidze; February 10th, 2014 at 08:47 PM.

Page 3 of 6 FirstFirst 12345 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •