www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer Software > HS3 / HS3PRO > HS3 / HS3PRO Discussion

HS3 / HS3PRO Discussion Discussions related to the released version of HS3/HS3PRO

Reply
 
Thread Tools Display Modes
  #1  
Old July 13th, 2018, 06:14 AM
khriss75 khriss75 is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: Italy
Posts: 247
HS3 linux tts

Dear all,
I'm testing HS3 under linux (raspbian on raspberry pi 3 B).

I'm a noob in linux.
All seems to be ok, but for me is impossible to use speak function.

This is the error:
Code:
lug-13 12:02:37	 	Error	In Speak: ApplicationName='./speak_to_file.sh', CommandLine=''/home/pi/Downloads/HomeSeer/wave_files/2speak_temphst.wav' 'ciao ciao'', CurrentDirectory='', Native error= Cannot find the specified file-> at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x001ee] in :0 If playing an audio file to a CE device, the file MUST be a .wav file
I created an event with "Speak something". ("ciao")
HS3 linux latest version.
Reply With Quote
  #2  
Old July 13th, 2018, 06:47 AM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,446
Welcome to the Homeseer forum khriss75.

Do you hear speech when Homeseer 3 starts up?

Homeseer startup script speech pieces are:

Code:
sub Main(parm as object)
        hs.WriteLog("Startup", "Scripting is OK and is now running Startup.vb")
        ' Speak - uncomment the next line if you want HomeSeer to speak
        '         at startup.
        hs.Speak("Welcome to Home-Seer", True)
        ' speak the port the web server is running on
    Dim port As String = hs.GetINISetting("Settings", "gWebSvrPort", "")
    If port <> "80" Then
        hs.Speak("Web server port number is " & port)
    End If
__________________
- Pete

Automator

HS3 Pro & Lite Edition Beta 3.0.0.4449

HS3 Wintel Touch | Ubuntu 16.04 64 bit | Oracle Windows Virtual Box ==> for Wintel only SAPI and HS3 plugins | Speech - Microsoft SAPI - Neospeech - Amazon Echo | Hardware | Haswell Intel iSeries 3 - 16Gb | Pine64 - 2Gb computers | Openpeak Intel Atom SoC tabletop touchscreens (15 HS tabletop tablets) | Touchscreens - Windows embedded POE connected |Light switches - X10,UPB, ZWave and Zigbee | Firewall - PFSense - 2 WAN plus 4 LAN interfaces | Network - Gb managed switches / POE WAP(s) | CCTV - Zoneminder IPHD cams - variety | Audio - Russound - AB8SS | Security - Leviton HAI Omni Pro 2 | Weather - Davis Vantage Vue - MeteoStick - WeeWx | 1-Wire - AAG, Midon and HB | OWFS - Mosquitto - Node Red - Python - RPi Stretch - OpenWRT
Reply With Quote
  #3  
Old July 13th, 2018, 11:15 AM
khriss75 khriss75 is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: Italy
Posts: 247
Quote:
Originally Posted by Pete View Post
Welcome to the Homeseer forum khriss75.

Do you hear speech when Homeseer 3 starts up?

Homeseer startup script speech pieces are:

Code:
sub Main(parm as object)
        hs.WriteLog("Startup", "Scripting is OK and is now running Startup.vb")
        ' Speak - uncomment the next line if you want HomeSeer to speak
        '         at startup.
        hs.Speak("Welcome to Home-Seer", True)
        ' speak the port the web server is running on
    Dim port As String = hs.GetINISetting("Settings", "gWebSvrPort", "")
    If port <> "80" Then
        hs.Speak("Web server port number is " & port)
    End If
Pete,
my raspberry is connected to hdmi monitor. I can hear youtube music but nothing from hs3.
Checked the startup script and it is the same you posted in code.

HS3 running on raspberry (with raspbian installed) is connected with a very simple hstouch project in order to hear the speech.

here the log:
Code:
lug-13 17:06:59	 	Warning	In SpeakDev: ApplicationName='./speak.sh', CommandLine=''1 2 3'', CurrentDirectory='', Native error= Cannot find the specified file

During startup I see this error:
Code:
lug-13 17:04:03	 	Error	Compiling script Startup.vb: Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.0.1 - tarball) Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. vbnc : Command line : error VBNC2017: The library 'Scheduler.dll' could not be found. There were 1 errors and 0 warnings. Compilation took 00:00:01.3360420
Could be that I have not correctly installed HS3... I downloaded HS, exstract in download folder and started with "./go"

Or I need to try updating mono again... ?

I'm noob... sorry!
Reply With Quote
  #4  
Old July 13th, 2018, 11:38 AM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,446
Easiest to shut down HS3.

Open up a terminal window and test speech manually.

Personally not sure what speech comes with the Zee2 today.

Test everything via command line to make sure it works.

Just looking above and it appears that you did a DIY installation of Homeseer 3.

The Homeseer 3 directory / Homeseer 3 does not come with Linux TTS as that is separate.

You need to know a bit about using the Linux command line to install speech.

Install flite this way:

sudo apt-get install flite

Test it via command line this way:

flite -t "hello this is Homeseer speaking"

create a speech test file text.

call it homeseerisspeaking.txt

put one line of speech in it: Hello this is homeseer speaking.

Then test speech again.

flite -f homeseerisspeaking.txt

Now just reboot your RPi or start your homeseer 3 typing ./go.

You should hear it talk. It works and is very robotic sounding.

You can purchase a linux speech font that sounds similiar to a microsoft sapi speech font.

Read over here about installing it and purchasing it.

Cepstral Linux Text to Speech fonts

Thinking I removed the DIY from the help part of the forum. It is posted on the Cepstral web site.

Here utilize Microsoft SAPI / speaker dot exe running in an Oracle Windows server Virtual box on main Homeseer 3 Pro server.

Using AT&T, Neospeech and Loquendo speech fonts. (including portuguese, italian and spanish).
Reply With Quote
  #5  
Old July 13th, 2018, 12:37 PM
khriss75 khriss75 is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: Italy
Posts: 247
Very strange...
Uploaded a wave file but no play it:

Code:
lug-13 18:36:18	 	Warning	Wave file not found when speaking, file: Media/AlmightGod.wav
lug-13 18:36:18	 	Error	In PlayWavFile: ApplicationName='./play_audio.sh', CommandLine='/home/pi/HomeSeer/Media/AlmightGod.wav', CurrentDirectory='', Native error= Cannot find the specified file
lug-13 18:36:18	 	HSTouch Server	Unable to play file, cannot find file in Media or wave_files dir: Media/AlmightGod.wav
lug-13 18:36:18	 	Event	Event Trigger "TEST speak"
lug-13 18:36:18	 	Event	Event TEST speak triggered by the event page 'Run' button.
Reply With Quote
  #6  
Old July 13th, 2018, 12:43 PM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,446
Yeah do not play with any Homeseer audio related stuff until you have the Linux OS audio working.

Homeseer running on Linux uses the Linux OS audio base. The installation of the Homeseer directory to the RPi does not include any sort of Linux drivers which come with the RPi builds like Wheezy, Jessie or Stretch.

Do the above testing via command line first. If that does not work then there will be no Homeseer audio of any sort.

If you want try the Zee2 posted download build of Homeseer 3. Once running shut it down and replace the directory /usr/local/HomeSeer with the HS3 Pro or Standard version.

This build includes all of the audio stuff needed and will work fine with any version of Homeseer.

How exactly did you build the RPi?

Please post every step you did to build your new Raspberry Pi Homeseer box.

A quickie summary:

1 - write a Stretch image to an SD card
2 - update it
3 - check the audio and install Flite
4 - update it
5 - install mono
6 - update it
7 - install HomeSeer in the /usr/local/HomeSeer directory

test run it ./go

All sound should work including text to speech.

After testing it then you can autostart Homeseer in a variety of ways.
Reply With Quote
  #7  
Old July 13th, 2018, 01:14 PM
khriss75 khriss75 is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: Italy
Posts: 247
Ok Pete,
first of all thank you so much for your interesting!!!

Connecting a speaker to 3.5mm jack now I can see all tts.

The only change was the command
Code:
amixer cset numid=3 1
in order to set jack ad audio output.

Now work correctly, I can hear robotic voice.
No errors in the homeseer log.

Now I can hear the voice on hstouch android client.

Is possible to try speech font before buy it?

Thank you for precious support!
Reply With Quote
  #8  
Old July 13th, 2018, 01:27 PM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,446
Yes I tested it and it works.

Every time you test it though it states you have to purchase a license for it.

Each voice font is around $45 USD.

Last edited by Pete; July 13th, 2018 at 02:18 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HS3 PRO Linux Help nacnud HS3 / HS3PRO Discussion 2 May 18th, 2018 06:28 PM
Anyone Tried HS3 Linux on Centos or Scientific Linux? kennesaw10 HS3/PRO Beta Releases 1 March 20th, 2018 03:47 PM
Linux gearyt UltraSighthoundVideo3 HSPI 4 November 18th, 2016 11:20 AM
Linux and X15: anyone? WfromL HS3/PRO Beta Releases 1 August 6th, 2015 01:07 PM
Current Linux build? New beta Z-Wave Linux 216 doesn't load AbMagFAb HS3/PRO Beta Releases 5 April 4th, 2015 11:40 PM


All times are GMT -4. The time now is 11:30 AM.


Copyright HomeSeer Technologies, LLC