General :: Festival C++ API And Pthread() - Takes Raw Data From Sensors On The Input

Oct 21, 2010

I am attempting to write a program using Festival as the TTS output. It is a weather system, so

1) takes raw data from sensors on the input.
2) converts it into a text message
3) let festival take the message and turn it into audio that I can then route out to the telephone system.

Here is my main block of code using festival:

[Code]...

I imagine some of my problem is being a C/C++ newbie, but is there anybody out there able to give me some hints? Maybe there is a different or better way to fork that process. My plan is to keep updating the buffer whose pointer is passed to the function process() with my serial port processing program in the main loop. I can protect it with a mutex during the festival_say_text() function, but otherwise it will be accessible.

View 1 Replies


ADVERTISEMENT

Software :: Make Festival TTS Use Better Voices - SIOD ERROR: Could Not Open File /usr/lib/festival/siod.scm?

Jun 24, 2011

SIOD ERROR: could not open file /usr/lib/festival/siod.scm I install festival, speech_tools, festvox (everything i need it) but i don't know what to do in this case.

View 1 Replies View Related

Ubuntu :: Lm-sensors Will Not Detect Any Sensors On HP Desktop

Mar 3, 2011

I can't for the life of me get the xsensors to work. I installed lm-sensors, the applet and also xsensors.I followed everything on this guide:URl... Went through it more than twice and a couple of restarts. I just can't figure out what's wrong.When I run "sensors" nothing is found. I ran the sensors configuration and it only found one device to add to /etc/modules. Please see the trace below, I would be very grateful if you can help me find the fix for this! The desktop is an HP Pavilion a730n with a Pentium4 processor.

View 3 Replies View Related

Software :: Lm-sensors Does Not Find All Sensors?

Jun 21, 2010

I would like to use lm-sensors with my new PC.With my old one lm-sensors showed all sensors of CPU, GPU, wattage and Fan.With the new AMD64 (kernel 2.6.32-5 on Debian Squeeze) I get only the temperature of the GPU and the HDD.The only found sensor is "Fintek F71882FG/F71883FG Super IO Sensors"No embedded "AMD [...] thermal sensors" found in sensors-detect How can I fix it?sensors-detect

Code:
#
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100)

[code]...

View 3 Replies View Related

General :: Output Rss Feeds To Audio (Newsbeuter + Festival)?

Feb 27, 2011

Has anyone come across a means to output rss feeds to audio? A Google search led me on a "wild goose chase". I was looking for a newsbeuter or snownews plugin of sorts. Either realtime output to speakers or piped to speex/ogg/mp3 I *really* need to learn how to code, so I can do these things myself

View 3 Replies View Related

Slackware :: Lilo Bios Data Check Takes More Then A Minute?

Jun 19, 2011

When I boot up my desktop, lilo spends more than a minute printing a string of dots to the screen, before it declares "Bios data check successful" and then loads slackware normally.

I did
Code:
echo compact >> /etc/lilo.conf
lilo
but lilo declared that to be a syntax error and is as slow as ever. My lilo/conf contains
Code:
# LILO configuration file

[Code]....

View 5 Replies View Related

General :: Data From Input File To Be Taken And Send To Output File?

Jul 24, 2010

I am new to shell scripting.What i am trying is to write a shell script which take the input file and output should like as mentioned below.Output file should have data till SOK (marked in red)from every second line and then the selected data(marked in green) from 4th line.So selected data from 2nd and 4th line in one line of O/P file and then similarly selected data from 6th and 8th line in second line of O/P file.Input File:

3c3
< c1111;11.11.11.11;pOK;SOK:abcde;Universe:aa
---

[code]...

View 14 Replies View Related

General :: Difference Between -lpthread / -pthread And -lthread?

Mar 31, 2010

I would like to know what is the difference between -lpthread, -pthread, -lthread? Sometimes, I have been used -lpthread as a option of gcc. but I don't understand anything about the others.

View 2 Replies View Related

General :: 1:1 - What's Meant By There Is Kernel Level Thread For Each Pthread Created

Mar 11, 2011

I have gone thorugh some documents about pthread (NTPL ) in linux 2.6 kernel. As per that linux uses 1: 1 threading model and for each user level thread there is kernel level thread. Pthread_create uses clone system call to create a LWP and the kernel could treat that as a LWP and do scheduling and all .( different from linuxthread). My question is what's meant by there is kernel level thread for each pthread created. Can I see the kernel level thread if I call pthread_create using ps .

What exactly meant by 1:1 .I mean for each user level thread there is kernel level thread . If I make a system call from a thread does the OS services that action via kernel thread ( created using kernel_thread () or some other way ) internally ..

View 1 Replies View Related

OpenSUSE :: New Motherboard - Command "sensors" Shows "no Sensors Detected"

Mar 17, 2010

I just recently changed my motherboard, and now the command "sensors" shows "no sensors detected" I ran sensors-detect but still i get no sensors detected.

View 9 Replies View Related

Ubuntu :: Data Could Not Be Written (Input/output Error)

Oct 18, 2010

i tried to rip a dvd last night and it got 98% done then said "Data could not be written (Input/output error)"here is the error log from brasero

Checking session consistency (brasero_burn_check_session_consistency brasero-burn.c:1744)
BraseroDvdcss called brasero_job_get_action
BraseroDvdcss called brasero_job_get_action

[code]....

View 2 Replies View Related

Programming :: Data Validation - Input Contains Digits And Certain Alphabets

Apr 8, 2010

I am having a huge problem checking the data I input to make sure it is correct. What I am trying to achieve is when I input a value, it will check if the input is all digits and if it is not, check to see if it contains certain alphabets. Thus for example, if I were to input in data such as "11A" , the program will then inform me "There is an important alphabet in the program." This would be my expected output. Here is the program I have wrote...

Code:
int test(string r ){ const int arraySize = 10;
char array2[arraySize2] ={'A','B','E','F','G','H','J','K','N','O','P','Q','R','S','T','U','W','Y','Z'};
for(int cntr = 0; cntr <r.length(); cntr++)
if(!isdigit(r[cntr])){ for(int new1 =0; new1<arraySize2;new1++)
for(int cntr1 = 0; cntr1 <r.length(); cntr1++)
if(array2[new1] == r[cntr1]){ return 2; //will return2 when it finds the same
// char in the array and the string r. } else{ return 3;
//will return 3 when there is a char
//in the string which isnt in the array
} } else { return 1; // will return 1 when string is all digit.
} int main() { string r = "11D"; test(r);
if(test(r) == 1) { cout << "ALL ARE DIGITS" << endl;
} if (test(r)== 2) {
cout << "There is an important alphabet in the program." << endl;
} if (test(r)== 3) { // testRoman(r);
cout << "There is an Alphabet in the String which is not in the Array" << endl;
} }

So, the problem I am facing is when I input in data such as 11 or A , the prog will come out the right input. But if I were to put in data such as "11A" , the output coming out will be "ALL ARE DIGITS". The problem which causes this seems to be in the return statement , as once as it finds the first char which is a digit, it will then return 1 and not continue checking the rest of the string. Is there a way I can stop or continue a loop if it has met the condition I stated? What I can do or any other way available for me to check my input?

View 4 Replies View Related

Programming :: Perl: Compare CGI Input With Data From A MySQL Table?

Nov 19, 2008

I have this program:

#! /usr/bin/perl
use DBI ;
use strict ;

[code]....

and I get this error simply running the program from the command line: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at ./submit.cgi line 24.

is this the right syntax to use, both, for this line:

my (@param) = $cgi->param("firstname","lastname","type") ;

as well as this one:

$sth=$dbh->prepare ("SELECT firstname,lastname,type FROM dts WHERE firstname LIKE $param[0] AND lastname LIKE $param[1] and type LIKE $param[2]" );

or should there be quotes around the $param[0] or something? (also is it $param[0] or $param(0)?)

View 1 Replies View Related

Programming :: Using Piped Data As Input - Cannot Stat '-': No Such File Or Directory

Nov 6, 2010

Code: stuart@stuart:~/$cat showthread.php.html | grep -o [URL][^"< ]*" | uniq | head -n3 | plowdown - cannot stat '-': No such file or directory Code: stuart@stuart:~/$ awk NR==$x Musiclist.txt | cut -d/ -f6 | basename $1 .mp3 .mp3 Here's some system info on the bash i'm using:

[Code]...

View 13 Replies View Related

Ubuntu Installation :: Copying Data Setup Tells About An Input/Output Error?

Dec 20, 2010

I want to install Xubuntu 10.10 x64, but it does not work. While copying data the setup tells me about an Input/Output error, but i don't think there are hardware errors.

The environment:

AMD Phenom II 1055t 6x2,8 Ghz
2x 2gb ram
Hitachi 1TB hard drive
Two partitions: 1st for Windows 7 Ultimate (NTFS), 2nd for my Data (NTFS)

So I decreased the size of the data partition and created two new partitions beside the Win7 partition and the data partition. The first is ext4-journal (20gb) the second is Swap (4gb). I've done that all by the Xubuntu setup.

I've downloaded the image from the german mirror (TU Chemniz) and checked the integrety via SHA1. Checksum was correct. I also checked the data after burning.

View 4 Replies View Related

General :: Temperature Monitoring On Dell - No Sensors Detected?

Jun 27, 2010

I have a Dell Precision M4500, Intel Core i5 CPU, running Linux (Ubuntu Lucid), and would like to keep an eye on CPU temperature. I've tried lm-sensors: sensors-detect didn't find any sensors; following its hint ("This is relatively common on laptops, where thermal management is handled by ACPI rather than the OS.") I tried acpi -V but got nothing thermal. The Gnome panel applet "Hardware Sensors Monitor" reports on GPU temperature but nothing else.

View 3 Replies View Related

General :: Make 'hddtemp' Sensor To Appear In Gnome Sensors?

Jun 8, 2011

I have hddtemp installed and I get outputs of my HDD temperature in Terminal, but I can't see a the HDD temp sensor in the Preferences menu of my Sensors Applet.

P.S. I have my /etc/default/hddtemp edited to:

Code:
# [automatically edited by postinst, do not change line format or set it to
# anything but false or true ]
RUN_DAEMON="true"
# List of devices you want to use with hddtemp. If none specified,
# hddtemp will probe standard devices.
DISKS="/dev/sda"

My Drive is a 7200.11 Barracuda split in /dev/sda1 and /dev/sda5, I use LinuxMint 10 64-bit w/ Gnome.

EDIT: I just had to reboot after I changed to RUN_DAEMON="true",

View 1 Replies View Related

Ubuntu :: Change Default Voice In Festival

May 17, 2010

when I change the .festivalrc file to have (voice.select 'nitech_us_slt_arctic_hts) it seems ignored.I also tried (set! voice_default 'nitech_us_slt_arctic_hts), but that gives errors.

View 3 Replies View Related

Software :: Festival And Create A Vocoder Voice?

Aug 23, 2010

I am working on a robot project and the robot uses a custom light version of Linux (it has the Freescale Dragonball CPU in the bot so it doesn't have much "room"). We are using flite to do text-to-speech. I would like to know if there is a way to create a vocoder voice for this? Is there already a vocoder voice that works with flite or festival? Or is there some kind of voice creator that can be used to create voices for flite/festival?

View 4 Replies View Related

Programming :: Bash: Send Clipboard To Festival?

Jan 24, 2010

How I send clipboard to festival or what is wrong here? #!/bin/bash

text='xclip -selection clipboard -o'
echo '(voice_nitech_us_awb_arctic_hts) (SayText "$text")' | festival

Says only "dollar text" to me. Just this works, but I want other script with different voice: #!/bin/bash
xclip -selection clipboard -o | festival --tts Voice changed here: echo '(voice_nitech_us_awb_arctic_hts) (SayText "say this please")' | festival

View 3 Replies View Related

Ubuntu :: Record Text To Speech Output From Festival

Mar 13, 2010

How can I record text to speech output from festival to an audio file like mp3 or ogg?

My guess would be to pipe it to a command line recorder

View 1 Replies View Related

Software :: Installed Radeon HD 5550 Card - Now Festival Speech Crashes

Aug 10, 2010

Debian testing: $ uname -a Linux jilldando 2.6.32-trunk-486 #1 Sun Jan 10 05:53:18 UTC 2010 i686 GNU/Linux Today I upgraded my PC with a Radeon HD 5550 video card, it has HDMI o/p with sound on it. After boot up I get get the usual sounds from the mother boards onboard intel sound card EXCEPT speech. Initially I thought it would just be that alsa might be piping synth usuage to the Radeon card so I edited the alsa-base.conf file. So I added the following to /etc/modprobe.d/alsa-base.conf alias snd-card-4 snd_hda_intel

and changed: options snd_hda_intel index=0 to: options snd_hda_intel index=0,4 and rebooted, but this made no difference. Still startup sounds and sounds etc but no speech. I used the alsa project to check and these are the results: Code:

[Code]....

View 1 Replies View Related

OpenSUSE :: Recover Data Form Old 5.25 Floppies - ERROR: Cannot Read `/dev/fd0' (Input/output Error)

Mar 15, 2010

I don't know the format of these old floppie disks, ive tried

Code:

PC8-248suse:~ # file -s /dev/fd0
/dev/fd0: ERROR: cannot read `/dev/fd0' (Input/output error)

how i can go about reading this data?

View 9 Replies View Related

Programming :: Remote Function With Pthread?

May 22, 2010

I wrote some code in c, using pthread (I configured the linker and compiler in eclipse IDE first).

Code: #include <pthread.h>
#include "starter.h"
#include "UI.h"
Page* MM;

[Code]....

View 6 Replies View Related

Programming :: Pthread Not Release Memory

Jan 1, 2011

I have faced a problem with my code (a small tcp server). After the thread returns, the memory not decreases, but when a new connection is made, memory not increases and the new connection initialize a new thread with a same thread id of the previous thread. When two connections are made at same time, two thread ids are created and when the respective threads returns the memory not decreases. The Valgrind indicates that not memory leak occurs, the pointers are released. Indeed, more memory are allocate when new thread id is created. i used gcc and debian.

[Code]....

View 1 Replies View Related

Programming :: Signal Handling In Pthread?

Mar 12, 2011

I have created a pthread, and installed a signal handler inside that, same way as we do in main( ) function. The thread's signal handler is a separate function. Surprisingly, it is not working, that is the thread's signal handler is not able to catch signals. Here is the code:

Code: #include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <signal.h>
typedef struct data

[Code]...

View 1 Replies View Related

Programming :: Pthread Memory Not Being Freed?

Apr 19, 2010

I have an application that has pretty large memory profile. The general program flow is as follows:

Code:
main:
do 10 times:

[code]....

View 9 Replies View Related

Fedora :: Does Pthread-stubs Exists As A Package

Dec 16, 2009

I have searched and found nothing.... I'm trying to install the DRI driver to make my RV200 ATI card work with 2d and 3d features. I am new to this linux world but I have probably read now 4 hours of installation procedures without fully knowing what I'm really doing.... (Some instructions assume too much from the knowledge of the user I think)... So I'm at the step where I,m building the libdrm (Step 1.3 from this procedure [URL] and I get the following error: checking for PTHREADSTUBS... configure: error: Package requirements (pthread-stubs) were not met: No package 'pthread-stubs' found

Now yum tells me that no package exists with such name. I have searched on google quite a bit and I really don<t know where to start digging at this point.

View 7 Replies View Related

Fedora :: Download Pthread Libraries For F12 (2.6.31.5-127.fc.12.i686)

Jan 7, 2010

Where can i download pthread libraries for fedora12 pc kernel version 2.6.31.5-127.fc.12.i686?

View 3 Replies View Related

Programming :: Portable Pthread Library Out Of 10 Distros?

Mar 10, 2011

im writing a cross-platform software (linux/solaris/mac/bsd) so i was wondering, how portable is pthread library? out of 10 linux distros, how many will have it by default? and does it exists on mac/solaris/bsd by default? or user will have to install it?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved