How to use a file from Common Voice Corpus - text-to-speech

I downloaded the latest release of Mozilla's Common Voice. After unpacking the archive, I received a file of an unknown type. Who worked with this case? How do I get wav and txt files from it?

Okay, I get the problem. For some unknown reason, instead of ru.tar.gz ru.tar is downloaded and everything breaks. If you add it .gz archive unpacks normally

Related

React-Native: How to open locally bundled binary file

I'm writing a react-native app, and I want it to deploy with a zip file that contains a device firmware update.
Before letting the user send the update, I need my code to open the zip and do some validation of its contents.
I've found lots of zip-handling NPM packages, so all I need to do is load the file contents so I can feed it to one of these.
require('./firmware/fw.zip'); <-- packager doesn't include .zip by default
require('./firmware/fw.pdf'); <-- [gross hack] packager includes pdfs, but the actual result of the require() call is a number: 5. I don't know what I can do with this number to get file contents, but I'm pretty sure this require() system is designed for loading images, not binary data.
ReactNativeFs.openFile('./firmware/fw.zip'); <-- fails with ENOENT
ReactNativeFs.openFile(${ReactNativeFs.MainBundlePath}/firmware/fw.zip); <-- MainBundlePath is undefined on android.
This seems like a really basic question, so I'm sure I've missed a piece of documentation somewhere, but I'm heading into my third hour trying to load the contents of this file with no luck.
I'm pretty sure I could manually put the zip file into the appropriate android and ios resource directories, but that seems like a step down a hard-to-maintain road.
I encountered this problem again a couple months later (I'm apparently the only guy that needs to package .zips in react-native), and the above answer didn't work out for iOS. So I encoded the .zips as base64, put them in .js files, then used import to get the data from those .js files. This actually seems like a somewhat hacky but also flexible long-term solution, without having to mess around with platform-dependent file locations.
See whole answer at my new question: React-native packager configuration - How to include .zip file in bundle?
Partial solution:
Modify android/app/build.gradle, and add
task copyData(type: Copy) {
from '../../firmware/fw.zip'
into 'src/main/assets/raw/firmware'
}
preBuild.dependsOn copyData
This will at least ensure that the file gets copied each time you build, and is then available with ReactNativeFs.readFileAssets('raw/firmware/fw.zip', 'base64'). I'm not entirely thrilled because I still have to have iOS/android dependent code when loading the file, but at least it's loading now.
Tip: watch out for your syntax in gradle. into src/main/assets/myFirmware.zip will create a DIRECTORY called myFirmware.zip, and put your zip file underneath it. Then readFileAssets will still fail because it's finding a directory at your path, not a file.

Cocoa Application on remote files?

I have created a small application that selects the files and renames spaces into underscores and few other symbols. It works fine when I tried with the files on my desktop but it fails to execute when i try with files on my remote server. The problem is it doesn't show any signs of error. In my application, once the files are renamed, I will get a notification on my app stating the number of files renamed. It does show that the file is renamed but I couldn't find the renamed files. Any suggestion as to why it happens or any fixes for this please.
I have created the application and exported as a Mac Executable Application.
Solved: NSFileManager recognises file paths in different formats so we need to change according to the default path format with which Mac recognises and update files. I changed accordingly and it works. Thanks for you help.

header's structure of .7z files?

Looking up in net I could find a general overview of rar format structure.
http://www.rarlab.com/technote.htm
But what would I be glad to be informed is how 7z files are segmented block by block.
thanks.
Refer to the DOC/7zFormat.txt file in the source distribution (an updated version can be found in the official SDK: https://www.7-zip.org/sdk.html).
http://fileformats.archiveteam.org/wiki/7z
To get a better understanding of the file format, you can use hachoir-wx (needs installed wxPython) to navigate an archive to the bit level. It is available via pip. Their parser supports 7zip among lots of other file formats.

invalid byte 2 of 2-byte UTF-8 sequence in resource files after importing the worklight template

I'm trying to create a Worklight project in Worklight Studio 6.1 from a template. It's a straight forward process as described here: http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.dev.doc%2Fstudio_ext_assets%2Fc_wl_project_templates.html
However I'm getting "invalid byte 2 of 2-byte UTF-8 sequence" exceptions on some of the settings.xml files inside the android environment's native resources when trying to compile newly created project.
The files are in utf-8 inside the template and I have utf-8 set up for my workspace file encoding ( Preferences->General->Workspace ).
But after extracting stuff from the template ( which is really a zip bundle ) looks like it changes encoding somehow.
Problem goes away when you try to re-save .xml file (for example - open it, add a char somewhere, delete it and save). But this is not an option since we are going to deliver the template to a customer and this will affect the 'user experience'.
Also, the same exact template works fine on linux platform. I saw this issue on windows.
Has anybody experienced this before and could share any info on how to fix it?
Thank you.
Make sure that under Preferences->General->Workspace in Eclipse, the default text file encoding is set to UTF-8 and not US-ASCII (usually by default it is set to ASCII). This should take care of the encoding problems.

sqlite3_analyzer not working in Ubuntu missing shared object file

I am learning more about sqlite3 and am trying to use the sqlite3_analyzer to view a bunch of data about my data. The problem is when I download the sqlite-analyzer-linux-x86-3071502.zip from https://www.sqlite.org/download.html and unzip this package and THEN try to run the program I receive THIS error: ./sqlite3_analyzer: error while loading shared libraries: libtcl8.6.so: cannot open shared object file: No such file or directory
Does anyone know where to get this libtcl8.6.so file? Does anyone know how to install this after obtaining it?
Install the package tcl8.6, or download the analyzer source code and recompile it with the Tcl version in your distribution.
I ended up downloading an older version of sqlite3_analyzer from a third party website (do a search for sqlite-analyzer-linux-x86) that worked without the dependency. I won't post links as I can't ensure that they'll be available and serve the same file as I downloaded.
If you decide to do that, be sure to check the file for viruses on http://virustotal.com! Can't trust these Chinese file hostings ;)