473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Can It Be Done?

Mod
I would like to start a project but honestly do not think that I have
the time to create and sort out what I need. I'm hoping that there is
some program(s) out there that might be able to shorten the process
dramatically. This is what I would like to do. I would like to create
comic audio segments that are made from fragments of other audio
files, 1,513 files to be exact. To make quality audio pieces I will
need to have a list of what is said in each individual file. This
alone will take me forever but I think I can manage that without it
taking months on end. Here is where it gets really tough. I would like
to be able to have a list of every word said throughout all 1,513
files. So when I go to make a new piece and need to know what files
contain the word "we" in them, all I have to do is look at the list,
find the word, and the actual file numbers it appears in will be
listed along with that word. Is there anything out there that can look
at a long list of file names and words and organize them like this?
Perhaps a program that can look at 1,513 different text files and be
able to create an organized listing that way? Anybody know of
anything? Please I am desperate.
Jul 22 '05 #1
2 1222


Mod wrote:
Is there anything out there that can look
at a long list of file names and words and organize them like this?
Perhaps a program that can look at 1,513 different text files and be
able to create an organized listing that way? Anybody know of
anything? Please I am desperate.


You could do this with a combination of pipeline of shell commands:

combine all files together: cat
split each word onto a seperate line: tr
sort result: sort
only keep the unique ones: uniq
foreach line in the above result
foreach file check whether word occurs : grep -il

perl would be quicker though.

Jul 22 '05 #2
Mod wrote:
I would like to start a project but honestly do not think that I have
the time to create and sort out what I need. I'm hoping that there is
some program(s) out there that might be able to shorten the process
dramatically. This is what I would like to do. I would like to create
comic audio segments that are made from fragments of other audio
files, 1,513 files to be exact. To make quality audio pieces I will
need to have a list of what is said in each individual file. This
alone will take me forever but I think I can manage that without it
taking months on end. Here is where it gets really tough. I would like
to be able to have a list of every word said throughout all 1,513
files. So when I go to make a new piece and need to know what files
contain the word "we" in them, all I have to do is look at the list,
find the word, and the actual file numbers it appears in will be
listed along with that word. Is there anything out there that can look
at a long list of file names and words and organize them like this?
Perhaps a program that can look at 1,513 different text files and be
able to create an organized listing that way? Anybody know of
anything? Please I am desperate.


If you really want to get analytical (sp?), you will need
a database. For each file you will need to have the following
information:
file name, phrase, phrase position within file, phrase duration.
You can augment these attributes with person name and other stuff.

Once you build the database, you can then search it and find the
phrases (words) that you need. Place the result records into a
a file.

Use your favorite language (scripting ones included) and parse
the result file, concatenating all the phrase data into one
file.

Then shove the file into your favorite audio application.

By the way, this has nothing to do with the C++ language and
is best discussed in news:comp.programming. Follow-ups set.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: itsharkopath | last post by:
Hi, Imagine a user in a hotspot, when he comes to the hotspot and tries to load a webpage (on the internet), he would automatically redirected to login page. I believe the following is to be...
9
by: Steven T. Hatton | last post by:
This was written for the gnu.g++.help list. It rather clearly spells out the most important feature of Java that I believe C++ lacks. I really don't believe the C++ Standard sepcifies enough for a...
16
by: jaialai technology | last post by:
I want to reload a url in a browser window so I do something like this: open(window.location.href= "www.yahoo.com"); ok, so now I want to do something when that page is done loading completely....
5
by: Morten Overgaard | last post by:
Hi I have a C# component which fires events. I want to catch these events in my MFC app compiled with the /clr. I know I can define a managed class in my MFC app which traps the events - but I...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
3
by: Miguel Dias Moura | last post by:
Hi, When I subscribe a web site I usually receive an email to confirm my subscription. Only after I follow the link in the email my account gets activated. In general, how is this done? Can...
4
by: BrianDH | last post by:
Group Early this week I ask for examples on how to call a VB.NET Web Service and access its DataSet for a traditional ASP page. I was told, "you can't", "won't work", "not possible". Well I...
12
by: Ark | last post by:
Hello NG, I arrange data in structs like { members... uint16_t crc; more members, maybe... } Then I need to save them, up to and including crc, in non-volatile memory or a file, as the case...
2
by: maya | last post by:
http://news.yahoo.com/news?tmpl=index2&cid=703 down the page, under "More Stories", there's a section with two interchangeable divs which slide back and forth into view.. how is this done? I...
2
by: poolboi | last post by:
hey guys, i've done most of my web app. for searching almost done but then i got a small little problem with logging in i need to know how session tracking is done in perl if not my log in page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.