Sync audio with foreign language text

For Teachers and Educators.
Using Audacity in the Classroom.

ImageIf you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like

Sync audio with foreign language text

Permanent link to this post Posted by gtaus » Tue Mar 21, 2017 2:57 pm

Is there a way to sync audio with foreign language text? Specifically, I download free foreign language audiobooks read by native speakers on YouTube and the text I can get for free from Project Gutenberg. It would be great to be able to click on a link, word, paragraph or some other marker in the text document and have the audio start from that point. Many of the audiobooks I have downloaded are 6+ hours long. I know how to add a label track in Audacity audio files. But wonder if it is possible to create a link in the text document that would send a call to the Audacity file and start playback from that label.

For my purposes with these audiobooks, I do not need a word to word sync. But a word to word sync may be something of interest to me in other cases.

Or maybe someone knows of an existing program that accomplishes the same thing?
gtaus
 
Posts: 3
Joined: Tue Mar 21, 2017 2:29 pm
Operating System: Windows 10

Re: Sync audio with foreign language text

Permanent link to this post Posted by Gale Andrews » Tue Mar 21, 2017 3:30 pm

You are correct - your only option in Audacity is labels. But if the books are M4B format, they may have chapter marks that are distinguishable by iTunes and iOS devices and you can use software to edit/add such markers.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26094
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Sync audio with foreign language text

Permanent link to this post Posted by Gale Andrews » Tue Mar 21, 2017 3:44 pm

Also see this search link https://is.gd/Zl7ANJ - there may be some iPad/iPhone apps that show text when playing the words. I don't know whether this requires specific audiobooks or works with any audio book if you obtain the text separately. Let us know how you get on with your research into this.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26094
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Sync audio with foreign language text

Permanent link to this post Posted by Trebor » Tue Mar 21, 2017 3:50 pm

gtaus wrote:... But wonder if it is possible to create a link in the text document that would send a call to the Audacity file and start playback from that label ...

Any word-processor should allow you to insert a hyperlink in the text to an audio-file on your computer, which will then play using your default audio player ...

demo of hyperlink in wordprocessor document to audio file.gif
demo of hyperlink in wordprocessor document to audio file.gif (194.92 KiB) Viewed 1122 times

You should use a relative hyperlink, (rather than an absolute one, which I have used above), so the links will still work if you open the folder containing the document & audio-files on a different computer, see ...
https://wiki.openoffice.org/wiki/Documentation/OOo3_User_Guides/Calc_Guide/Hyperlinks_and_URLs
Trebor
 
Posts: 3708
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: Sync audio with foreign language text

Permanent link to this post Posted by gtaus » Tue Mar 21, 2017 4:21 pm

Thanks the responses. The text documents I get from Project Gutenberg are usually plain .txt files, which I import into Open Office Writer for formatting/printing. I am not familiar with M4B format you are talking about, but assume it is an eBook format that has tags to jump to various chapters. Are you saying that a book in M4B format could be used with Audacity labels to navigate to specific points in a large audio file?

I have been able to use the foreign language Gutenberg texts in Balabolka, a free text-to-speech software program, and that has worked out great in the respect that the audio is automatically sync'd with the text as the Balabolka program reads the book. However, a native speaker is just better to listen to than the TTS voices from the computer. Which is why I am now looking for a way to maybe use the labels in Audacity to sync up text from my Gutenberg downloaded books.

Is there anyway to put a link in a text document that would point to a label in an Audacity file? That would work for me. I know how to add an HTML link to an audio file, like in the example offered in one of the responses, but wonder if the link could be sent to a label in the file so I could keep the 6+ hour audio file intact. If not, I guess I could always export multiple labels and link to the separate files....
gtaus
 
Posts: 3
Joined: Tue Mar 21, 2017 2:29 pm
Operating System: Windows 10

Re: Sync audio with foreign language text

Permanent link to this post Posted by steve » Tue Mar 21, 2017 4:58 pm

gtaus wrote:Is there anyway to put a link in a text document that would point to a label in an Audacity file?

No there isn't. I think your idea to "export multiple labels and link to the separate files" should work.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 44191
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Sync audio with foreign language text

Permanent link to this post Posted by Gale Andrews » Tue Mar 21, 2017 5:18 pm

gtaus wrote:The text documents I get from Project Gutenberg are usually plain .txt files, which I import into Open Office Writer for formatting/printing.

Yes I think you will have to format them to a rich format other than plain text to have a working hyperlink. Hyperlinks won't help you move to a specific part of a file unless you find a player that explictly supports adding some argument to the file name to tell it where to play. I have not researched that.

gtaus wrote:I am not familiar with M4B format

https://www.lifewire.com/m4b-file-2621958.

gtaus wrote:Are you saying that a book in M4B format could be used with Audacity labels to navigate to specific points in a large audio file?

No. That is why I said iTunes and iOS devices which have the best support for M4B. Audacity does not recognise chapter marks in M4B files. Moreover chapter marks have no automatic association with arbitrary methods that applications use to mark time points, such as Audacity labels.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26094
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Sync audio with foreign language text

Permanent link to this post Posted by gtaus » Tue Mar 21, 2017 5:25 pm

steve wrote:
gtaus wrote:Is there anyway to put a link in a text document that would point to a label in an Audacity file?

No there isn't. I think your idea to "export multiple labels and link to the separate files" should work.


Well, I guess I could use the label feature of Audacity and break up the large 6+ hour audiobooks into chapters, export multiple labels, and just (relative) link to each file for each chapter. That moves me ahead in my project. If I come up with a better solution, I will post it here for anyone interested in this topic.

Thanks for the responses and for the help.
gtaus
 
Posts: 3
Joined: Tue Mar 21, 2017 2:29 pm
Operating System: Windows 10


Return to Audacity in Education



Who is online

Users browsing this forum: No registered users and 1 guest