Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 2 of 4 < 1 2 3 4 >
Topic Options
#126501 - 17/11/2002 23:12 Re: Prerecorded TTS and the empeg [Re: DomoKun]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Speaking the song title of the next song to be played would kind of be annoying. I don't see much point in getting TTS working and having a wave file per FID. Imagine hearing the track names spoken in between the tracks of "Dark Side of the Moon". Ick.

On the other hand, TTS for browsing the Playlists would be rad. I believe that would take a change to the player software, though. It would be weird to hear the menu being spoken over a song, though. A TTS enable/disable function would be needed, because sometimes you would like to hear the TTS while browsing the menu (picking playlists on the fly) and other times you don't (EQ settings, etc.). I could even see an option of pausing the current playback while browsing with TTS.
_________________________
Mark Cushman

Top
#126502 - 18/11/2002 03:39 Re: Prerecorded TTS and the empeg [Re: cushman]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
I believe that would take a change to the player software

Nah, we just need Mark to add OCR functionality to the kernel to read the current menu item and then pass the text to the TTS engine...

...only kidding Mark !



P.S. It wouldn't actually need to be "proper" OCR as the characters will always be perfectly formed on screen, so it is more screen scraping than OCR.
_________________________
Remind me to change my signature to something more interesting someday

Top
#126503 - 18/11/2002 04:57 Re: Prerecorded TTS and the empeg [Re: andy]
ilDuce
journeyman

Registered: 22/06/2002
Posts: 92
Ive tried to install the tts program now and i dont get the permissions right..... When i try to chmod the date/pcmplay/setvol files i get "chmod: date: Read-only file system"
Allthoug i have used rw.... and then i used rw /drive0 (dont know if thats possible.... but it was a try) rw command works.... but i still cant chmod the files.... I cant get it why it doesnt work.... it should....
Then all of a sudden i lost all contact with the empeg over ethernet.. allthough the kftpd has startedŽand listens to port 21.. dont think this has anything to with the tts though....

ahh.... i just figured out the ethernet issue.... According to norton internet security the empeg tried to connect to a trojan horse port.... and therefore has been banned.... It worked out when i added the empeg as a "trusted site"....

Cant still get the chmod to work....

Top
#126504 - 18/11/2002 05:10 Re: Prerecorded TTS and the empeg [Re: ilDuce]
ilDuce
journeyman

Registered: 22/06/2002
Posts: 92
well....... I guess i solved now....I used the chmod command through ftp instead..... wich worked out just fine.... still cant figure out though why the hell i couldnt do it through the command shell....

Top
#126505 - 18/11/2002 06:37 Re: Prerecorded TTS and the empeg [Re: ilDuce]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
rwm
_________________________
-- roger

Top
#126506 - 18/11/2002 08:20 Re: TTS Clock r2 [Re: DomoKun]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
In reply to:

And as for it being 2 hours behind that is because the player software has its own timezone setting that this program can't read. The only way around this that I see is to set your timezone as "Universal" or "UTC" in the empeg player app and then set your clock accordinly.


I wouldn't do that, because you'll lose DST switching and you'll also lose easy country adjustment when you travel abroad. Instead, set the TZ environment variable in the shell you're running your code from (and export it, of course). (I assume tts-clock uses localtime(), not gmtime()).
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#126507 - 18/11/2002 11:08 Re: TTS Clock r2 [Re: tms13]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
If I set the TZ in the player settings to Eastern, and reset the time, it shows fine on the player, but tts says the time 5 hours ahead, along with the actual time of the OS being 5 hours ahead. I check this by telneting in and creating a dir, the time for it is set 5 hours ahead. So I don't think this is a tts problem, but with the players inability to change the timezone for the linux OS but only for itself?
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#126508 - 18/11/2002 11:20 Re: TTS Clock r2 [Re: leftyfb]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
Yeah, when I looked at it the default libc on the empeg is looking in the wrong place for timezone files. It should be possible to work around that by adding

export TZDIR=/usr/share/zoneinfo
export TZ=EST

to a .bashrc, or the top of whatever script you start.
_________________________
40GB - serial #40104051 gpsapp

Top
#126509 - 18/11/2002 12:11 Re: TTS Clock r2 [Re: jaharkes]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
well seeing as i'd like the TZ to be correct for the whole system (player software and OS), would it be possible to create a link pointing to the correct place?

So if I'm understanding right, the player software is changing a file that the OS doesn't use to determine it's Timezone? Then making a link to it will allow the setting in the player software to change the time for everything?
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#126510 - 18/11/2002 12:25 Re: TTS Clock r2 [Re: DomoKun]
oliver
addict

Registered: 02/04/2002
Posts: 691
Hi, I just installed your tts welcome script. It worked great. Directions were very easy to follow, even though its not that difficult. I tested the program before i rebooted the empeg, and it worked great. However during startup she stutters pretty badly I've attached an MP3

Edit: DoH! too big Click here for the mp3


Attachments
125637-tts.mp3 (70 downloads)



Edited by oliver (18/11/2002 12:27)
_________________________
Oliver mk1 30gb: 129 | mk2a 30gb: 040104126

Top
#126511 - 18/11/2002 12:28 Re: TTS Clock r2 [Re: leftyfb]
DomoKun
journeyman

Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
The TTS Clock program reads the local time from the operating system, not the UTC. But the local time is set to UTC for some reason. So if you manage to change the operating system time zone the TTS Clock will use it.

Top
#126512 - 18/11/2002 12:32 Re: TTS Clock r2 [Re: oliver]
DomoKun
journeyman

Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
Hmm, thats strange. In my first release, I had it as M10tts instead of B10tts. It should be a B script so that it doesn't run concurrently with anything. If you happened to install the first version did you make sure to delete the M10tts before putting on the B10tts? Do you have any other M scripts running? I think that since my B script mounts the drives that other M scripts might be launched simultaneously to the B10tts script.

If you do have other M scripts, I think that since my B script mounts the file system you can rename your M scripts to a B script that is alphabetically after the B10tts script and it should work.


Edited by DomoKun (18/11/2002 12:34)

Top
#126513 - 18/11/2002 12:36 TTS Clock R4 [Re: DomoKun]
DomoKun
journeyman

Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
I have posted TTS Clock R4 at http://www.zabaware.com/empeg

This new version fixes the problems it had with saying AM/PM correctly at 12 PM and 12 AM. It also replaces saying "Welcome" with "Good Morning", "Good Afternoon", or "Good Evening" based on the time of day.

If you have a R3 and don't want to download the entire package you can get the updated script at http://www.zabaware.com/empeg/B10tts and download the 3 new pcm files http://www.zabaware.com/empeg/morning.pcm http://www.zabaware.com/empeg/afternoon.pcm and http://www.zabaware.com/empeg/evening.pcm

Top
#126514 - 18/11/2002 13:12 Re: TTS Clock r4 [Re: DomoKun]
oliver
addict

Registered: 02/04/2002
Posts: 691
All set now, updated to r4, changed my telnet, and launcher scripts to B scripts. Now everything sounds great!

The good morning/evening is a very nice touch!

Now i'm having the same time problem as everyone else, my clock is set correctly, tz is set to eastern, player shows the correct clock, but the system clcok is 5 hours ahead. Anybody figure this one out yet?
_________________________
Oliver mk1 30gb: 129 | mk2a 30gb: 040104126

Top
#126515 - 18/11/2002 13:20 Re: TTS Clock r4 [Re: oliver]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
so far i've found two articles on how to change the system timezone

here and here

The system was setup so there was a link called localtime in /usr/share/zoneinfo pointing to a nonexistent /etc/localtime. So I created a a link: /etc/localtime to point to /usr/share/zoneinfo/US/Eastern .. thus making the /usr/share/zoneinfo/localtime link valid. Also as one of those articles points out I create the link: /usr/share/zoneinfo/posixrules to point to localtime (renaming the already existing posixrules to posixrules.disabled).

All of this and so far no dice .. gonna play with it a bit more.

Upon examination of the posixrules file (vi) I found one of the only readable texts in it "singapore" ... i'm wondering if this was the default TZ or something.


Edited by leftyfb (18/11/2002 13:31)
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#126516 - 18/11/2002 13:30 Re: TTS Clock r4 [Re: leftyfb]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Let me set everyone straight on Unix timezone stuff.

The kernel has no real concept of a time zone.

On most Unix systems, the default time zone is set by init. It does this by setting the TZ environment variable in its own environment. Since all processes are children of init, all processes inherit that TZ environment variable.

However, when a process is run, it doesn't make any difference who set the TZ variable that it inherits.

On the empeg, the init process is not the init process that is going to be on most general purpose Unix systems. It does not (I'm pretty sure) deal with the time zone at all. This has the effect of setting the ``system'' TZ to UTC.

The time zone that you set in the player changes the time zone for the player. I don't know if it does this by setting the TZ variable or if it deals with figuring the local time itself, but it doesn't really make any difference, since no other process will ever use that setting (unless you could get the player to fork a new process).

I'm not really sure what you're trying to achieve here, but if you want to be able to record the local time zone, then you're going to have to figure out how to do it for your process. It might be possible for preinit to set the time zone by reading in a configuration file, and it would actually pass that to init, but I don't know what it might break by changing the player's time zone. It might make a dual offset, or it might do the right thing. I don't know. Preinit cannot do this now, but it wouldn't be too hard to hack it in.

HTH.
_________________________
Bitt Faulk

Top
#126517 - 18/11/2002 13:54 Re: TTS Clock r4 [Re: wfaulk]
DomoKun
journeyman

Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
Does anyone know where the empeg player app stores its time zone settings? If its easily readable by grep or something like that I could modify the TTS Clock to read the timezone and compensate for the correct hour.

Top
#126518 - 18/11/2002 14:14 Re: TTS Clock r4 [Re: DomoKun]
oliver
addict

Registered: 02/04/2002
Posts: 691
I've also just noticed that, on ac power, the volume doesn't set in the player to the last volume setting, but the setting from the time player. Is there anyway that this can be fixed?
I haven't tested this on dc power, i haven't let my office yet, but i will soon.
_________________________
Oliver mk1 30gb: 129 | mk2a 30gb: 040104126

Top
#126519 - 18/11/2002 14:20 Re: TTS Clock r4 [Re: oliver]
bossdj
new poster

Registered: 14/11/2002
Posts: 11
does anyone have a sample of the script as a wav file. im curious how it all sounds together.

btw, your first mention was to include the drivers name in the good morning, is this still a possibility i take it. seems like it would be pretty straight forward.

_________________________
Kevin C Clement

Top
#126520 - 18/11/2002 14:29 Re: TTS Clock r4 [Re: bossdj]
oliver
addict

Registered: 02/04/2002
Posts: 691
_________________________
Oliver mk1 30gb: 129 | mk2a 30gb: 040104126

Top
#126521 - 18/11/2002 15:47 Re: TTS Clock r4 [Re: oliver]
ilDuce
journeyman

Registered: 22/06/2002
Posts: 92
I know youve talked about the TTS to eventually read the menu and song/playlists. But that requires some new features in hijack right?.... Wouldnt it be possible to use one of the input ports on the new Tuner II.....( I seem to remember there was going to be 2 extra availeble inputs) to hook up a mic so that we could have speech commands. Like next/play/pause/mute and so on.... I guess the port is to slow perhaps.... Dont know the speed of it, or the requirements to get good speech recognition....
But its one idea i would love to see get bourne into reality...

Top
#126522 - 18/11/2002 17:17 Re: TTS Clock r4 [Re: ilDuce]
V99
member

Registered: 12/01/2002
Posts: 192
Loc: Phoenix, AZ
The player already has a mic input for just such a purpose, there's just no software to use it.

Recognizing even just a short list of commands like that is relatively complicated, especially in a non-ideal environment... accents, noisy road, music playing, maybe you drive a topless car, knowing when you're talking to the Empeg and not to your wife about pausing for a moment to think about your daughter's play next week, etc.

Top
#126523 - 18/11/2002 17:56 Re: Prerecorded TTS and the empeg [Re: DomoKun]
CHiP
enthusiast

Registered: 08/06/1999
Posts: 345
Loc: New Jersey, USA
"What is the interest level in the empeg community to getting TTS as I described working? "

I'm all about this app.... lets do it! I will help out anyhow I can!

_________________________
-CHiP

Top
#126524 - 18/11/2002 18:05 Re: fixed audio level for voice [Re: DomoKun]
CHiP
enthusiast

Registered: 08/06/1999
Posts: 345
Loc: New Jersey, USA
Is there a way to fix the volume to -12db while in the car? sometimes i leave it at -3 for music, but that's way too loud for the program's voice, it's ripping my speakers!
_________________________
-CHiP

Top
#126525 - 18/11/2002 18:21 Re: Prerecorded TTS and the empeg [Re: ilDuce]
CHiP
enthusiast

Registered: 08/06/1999
Posts: 345
Loc: New Jersey, USA
i had to type:

literal site rw
literal site chmod 755 [filename]

i had to add "literal site" before my commands at my dos prompt, ftp shell.
_________________________
-CHiP

Top
#126526 - 18/11/2002 18:28 Re: Prerecorded TTS and the empeg [Re: CHiP]
bossdj
new poster

Registered: 14/11/2002
Posts: 11
im interested as well. writing the windows application to generate the wav files of your directory structure is the easy part and i think step 1. but interupting the basic function of the player to play these wav files might be difficult. isnt that stuff closed source? someone with experience might know. If this isnt and issue than i think we might have the ability to get started soon.
_________________________
Kevin C Clement

Top
#126527 - 18/11/2002 20:45 Re: fixed audio level for voice [Re: CHiP]
DomoKun
journeyman

Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
You can edit the the B10tts with a good text editor to set a fixed volume. First, I reccomend using an editor called UltraEdit (don't convert to DOS mode). Its available from www.ultraedit.com You can do it with notepad, but it is hard to read as it doesn't show the Unix style line breaks as line breaks but as boxes. Find the line that says:

/drive0/var/setvol

and add a number after it to set the volume, for example:

/drive0/var/setvol 40

will set your volume at 40% (I don't know what db level this corresponds with, play around with it)

Top
#126528 - 18/11/2002 20:51 Re: Prerecorded TTS and the empeg [Re: bossdj]
DomoKun
journeyman

Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
In reply to:

im interested as well. writing the windows application to generate the wav files of your directory structure is the easy part and i think step 1. but interupting the basic function of the player to play these wav files might be difficult. isnt that stuff closed source? someone with experience might know. If this isnt and issue than i think we might have the ability to get started soon.



I don't think it would be too hard for someone that has more progamming experience then me. The program hijack already does a lot of things with the player app without access to its source code. In order for TTS to announce the name of a song that is about to play all that it would need to do is monitor the filesystem for an FID file to be launched by the player app. When it detects it, it could send the pause key to the player, making the player think someone pressed the pause key. While it is paused it would play the prerecorded TTS file associated with that particular FID. Once the prerecorded TTS finishes playing, it would send the pause key to the player app again to resume playback of the MP3 file.

Top
#126529 - 18/11/2002 20:56 Re: Prerecorded TTS and the empeg [Re: DomoKun]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
It's actually a lot easier than that. Hijack doesn't have to monitor the file system, everything needed (artist, title, etc.) is available in /proc/empeg_notify.

Though having a prerecorded TTS file for every song on my empeg seems a little... um... wasteful. I dunno.
_________________________
- Tony C
my empeg stuff

Top
#126530 - 18/11/2002 21:03 Re: Prerecorded TTS and the empeg [Re: tonyc]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I don't even understand the concept of wanting to have each song announced. I mean, it says what the song is right on the screen. How long does it take to read that? You know what it is anyway.

But whatever.
_________________________
Bitt Faulk

Top
Page 2 of 4 < 1 2 3 4 >