Installed GSpeech 1.0.6 - but no audio

GSpeech allows to listen any text from the site!

  • Hi Support, downloaded and installed ver 1.0.6. Install went fine, tried to test and get no sound. I can see the speaker, I have CURL installed and enabled (version 7.19.7 ).

    Thought it may of been a template issue, so have now done a fresh install of Joomla 2.5.8 and then added the GSpeech, still speaker but no sound.

    Tried on IE8 / 9 and Firefox. No errors, any help is appreciated.

    URL to my site is http://www.stpweb.org/
    stu2000
     
    Posts: 8
    Joined: Wed Jan 02, 2013 9:44 pm


  • Hi

    Seems like GSpeech doesnt installed correctly. When i try to open streamer.php file (which is main file that generates audio), i get 404 error.
    Regards,

    Simon
    Syom
    Site Admin
     
    Posts: 1270
    Joined: Wed Jul 13, 2011 8:53 pm


  • Think my problem is with my .HTAccess file, what would I need to add or change to allow the script to work. If I remove the section shown below it works.

    See highlighted section shown in .htaccess below.

    Code: Select all
    # Joomla 2.5 .htaccess File
    # Created by Stuart Newton
    # Last Modified: 31 Dec 2012 11:56

    Options -Indexes
    ServerSignature Off
    Options +FollowSymLinks

    # To prevend E_STRICT problems with PHP 5.3+ you can uncomment the following lines
    # Note: These settings should only be enabled for production sites!
    # php_flag display_startup_errors 0 
    # php_flag display_errors 0
    # php_flag html_errors 0       
    # php_value docref_root 0
    # php_value docref_ext 0       

    DirectoryIndex index.php index.html

    ## Disallow access to htaccess.txt, configuration.php, configuration.php-dist and php.ini
    RewriteRule ^(htaccess\.txt|configuration\.php(-dist)?|php\.ini)$ - [F]


    # Use PHP 5.3 or higher
    AddType application/x-httpd-php53 .php

    <IfModule mod_rewrite.c>
    RewriteEngine on
    #Sub-dir e.g: RewriteBase /Joomla
    RewriteBase /
    RewriteCond %{REQUEST_URI} !/$
    RewriteCond %{REQUEST_URI} !\.
    RewriteCond %{REQUEST_METHOD} !POST$
    RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ index.php?page=$1 [QSA]
    </IfModule>

    ########## Begin - Redirect non-www to www
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    ## If the above throws an HTTP 500 error, swap [R=301,L] with [R,L]
    ########## End - Redirect non-www to www

    ########## Begin - Redirect XML Sitemap (Optional Entry - Delete / Comment out if not installed)
    ## Xmap generates the sitemap dynamically every time the sitemap is visited so it can
    ## always provide a really up to date list of links. Thats the reason why there is no
    ## such sitemap.xml file. But there is a workaround for this using your .htaccess file.
    RewriteCond %{REQUEST_URI} ^/sitemap.xml
    RewriteRule .* /index.php?option=com_xmap&id=1&view=xml&format=html [L]
    ########## End - Redirect non-www to www

    ########## Begin - Advanced server protection - paths and files
    # Advanced server protection, version 3.2 - May 2011
    # by Nicholas K. Dionysopoulos
     
    ## Back-end protection
    ## This also blocks fingerprinting attacks browsing for XML and INI files
    RewriteRule ^administrator/?$ - [L]
    RewriteRule ^administrator/index\.(php|html?)$ - [L]
    RewriteRule ^administrator/index[23]\.php$ - [L]
    RewriteRule ^administrator/(components|modules|templates|images|plugins)/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|js|swf|html?|mp(eg?|[34])|avi|wav|og[gv]|xlsx?|docx?|pptx?|zip|rar|pdf|xps|txt|7z|svg|od[tsp]|flv|mov)$ - [L]
    RewriteRule ^administrator/ - [F]
     
    ## Explicitly allow access only to XML-RPCs xmlrpc/index.php or plain xmlrpc/ directory
    RewriteRule ^xmlrpc/(index\.php)?$ - [L]
    RewriteRule ^xmlrpc/ - [F]
     
    ## Disallow front-end access for certain Joomla! system directories
    RewriteRule ^includes/js/ - [L]
    RewriteRule ^(cache|includes|language|libraries|logs|tmp)/ - [F]

    ###### IF I remove this section GSPEECH Works fine #############
    ###### IF I remove this section GSPEECH Works fine #############
    ###### IF I remove this section GSPEECH Works fine #############
    ###### IF I remove this section GSPEECH Works fine #############
    #### From here to --- ######

    ## Allow limited access for certain Joomla! system directories with client-accessible content
    RewriteRule ^(components|modules|plugins|templates)/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|css.php|js|swf|html?|mp(eg?|[34])|avi|wav|og[gv]|xlsx?|docx?|pptx?|zip|rar|pdf|xps|txt|7z|svg|od[tsp]|flv|mov)$ - [L]

    ## Uncomment this line if you have extensions which require direct access to their own
    ## custom index.php files. Note that this is UNSAFE and the developer should be ashamed
    ## for being so lame, lazy and security unconscious.
    # RewriteRule ^(components|modules|plugins|templates)/([^/]+/)*(index\.php)?$ - [L]

    ## Uncomment the following line if your template requires direct access to PHP files
    ## inside its directory, e.g. GZip compressed copies of its CSS files
    # RewriteRule ^modules/([^/]+/)*([^/.]+\.)+php$ - [L]
    RewriteRule ^(components|modules|plugins|templates)/ - [F]

    #### To Here ######
    ###### IF I remove this section GSPEECH Works fine #############
    ###### IF I remove this section GSPEECH Works fine #############
    ###### IF I remove this section GSPEECH Works fine #############
    ###### IF I remove this section GSPEECH Works fine #############

    ## Disallow access to rogue PHP files throughout the site, unless they are explicitly allowed
    RewriteCond %{REQUEST_FILENAME} \.php$
    RewriteCond %{REQUEST_FILENAME} !/index[23]?\.php$
    ## The next line is to explicitly allow the forum post assistant(fpa-xx)script to run
    RewriteCond %{REQUEST_FILENAME} !/fpa-[a-z]{2}\.php
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^([^/]+/)*([^/.]+\.)+php$ -

    ####### End - Advanced server protection - paths and files

    <IfModule mod_header.c>
    Header unset ETag
    FileEtag None
    </IfModule>

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/css text/plain text/xml image/gif image/jpeg image/png
    </IfModule>

    <IfModule mod_suphp.c>
      suPHP_ConfigPath /home/xxxxxxxxx/php.ini
      <Files php.ini>
       order allow,deny
        deny from all
     </Files>
    </IfModule>
    stu2000
     
    Posts: 8
    Joined: Wed Jan 02, 2013 9:44 pm


  • If I remove the section shown below it works. See highlighted section shown in .htaccess below.


    What section you remove ? Show exactly rows please.
    Regards,

    Simon
    Syom
    Site Admin
     
    Posts: 1270
    Joined: Wed Jul 13, 2011 8:53 pm


  • Think it was this section,

    Code: Select all
    ## Allow limited access for certain Joomla! system directories with client-accessible content
    RewriteRule ^(components|modules|plugins|templates)/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|css.php|js|swf|html?|mp(eg?|[34])|avi|wav|og[gv]|xlsx?|docx?|pptx?|zip|rar|pdf|xps|txt|7z|svg|od[tsp]|flv|mov)$ - [L]

    ## Uncomment this line if you have extensions which require direct access to their own
    ## custom index.php files. Note that this is UNSAFE and the developer should be ashamed
    ## for being so lame, lazy and security unconscious.
    # RewriteRule ^(components|modules|plugins|templates)/([^/]+/)*(index\.php)?$ - [L]

    ## Uncomment the following line if your template requires direct access to PHP files
    ## inside its directory, e.g. GZip compressed copies of its CSS files
    # RewriteRule ^modules/([^/]+/)*([^/.]+\.)+php$ - [L]
    RewriteRule ^(components|modules|plugins|templates)/ - [F]

    stu2000
     
    Posts: 8
    Joined: Wed Jan 02, 2013 9:44 pm


  • Yeah, just tested it again, The HTAccess file was created using Akeeba Admin Tools. With the above section removed it works. I contacted Akeeba and they told me its was a modification problem I need a rewriterule to allow your script to work.

    Away over my head, can you provide a rewrite rule to the streamer file?
    stu2000
     
    Posts: 8
    Joined: Wed Jan 02, 2013 9:44 pm


  • [RESOLVED]
    If I add the following code to my .htaccess file it works fine.

    Code: Select all
    ########## Allow Access to Streamer.php for GSpeech to operate
    RewriteRule ^plugins/system/gspeech/gspeech/streamer\.php$ - [L]
    stu2000
     
    Posts: 8
    Joined: Wed Jan 02, 2013 9:44 pm


  • Very good that it works fine now.

    Also you can set custom greeting message for each section of your website, to not repeat same message.
    Regards,

    Simon
    Syom
    Site Admin
     
    Posts: 1270
    Joined: Wed Jul 13, 2011 8:53 pm


  • Hi,

    I bought today, downloaded and installed gspeech-PRO-2.0.1 on Joomla 2.5.9.

    Normal installation, but I also no sound. I can see the speaker. I have also CURL installed and enabled. I also have a .htaccess file produced by Akeeba Admin Tools Professional. I think the solution here, but this is not the case. One thing is certain, the problem comes from the .htaccess file. When I disable it, GSpeech works fine (French version). So I added to .htaccess file the following lines:
    # # # # # # # # # # Allow Access to Streamer.php for GSpeech to operate
    RewriteRule ^plugins/system/gspeech/gspeech/streamer\. Php $ - [L]
    but it does not work.

    After that, I realized that the path to streamer.php was different, so I changed the code for the following:
    RewriteRule ^plugins/system/gspeech/includes/streamer\. php $ - [L]
    but it still does not work.

    There is probably something I did not understand. Can you help me.. Could you m help.
    pierre.plante
     
    Posts: 2
    Joined: Fri Apr 05, 2013 11:25 pm


  • Hi,

    Finally, I settled my problem. I added the code to the end of .htaccess file, but it is early it takes place. In this way everything works perfectly. :)

    Greetings
    pierre.plante
     
    Posts: 2
    Joined: Fri Apr 05, 2013 11:25 pm

Next


Return to GSpeech




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest