oskinaolga / practice Goto Github PK
View Code? Open in Web Editor NEWBookReader
BookReader
Create standalone test program that counts number of successful switches between audio and text versions.
Model m = new Model();
Reader r = new Reader();
r.read("a.txt", m);
Each new format requires new Reader. Reader constructs model from file using model methods.
New algorithm for finding of pauses.
There are default values for books names. There are command line keys:
--book-eng=
--abook-rus=
Exception should be thrown and catch only in subsystem, which knows, how to use it.
E.g. Readers should not write error messages in text mode. They should throw exception upper, where current interface type (GUI or text) is known
Thread.interupt() --- is not good choice
It is better to check boolean variable isStop in the loop inside thread.
For playing segmetns use Clip.pen(AudioFormat format, byte[] data, int offset, int bufferSize)
AudioReader should check input file parameters (stereo/mono. rate, big indian/little indian). If parameter is not supported, exception should be thrown describing, which parameter of input file is not supported.
When you press the "play" button is not executed line.open(...)
Make a play in the second thread
Create standalone test program that counts number of successful switches between text on different languages.
In SoundFindSilence.java
Correct the values of eMin, delta, lengthSilence, lengthFrame.
In indexing mode the set of synchro points created and saved into index file. In reading mode the index file is loaded with book.
N.B. What to do if in reading mode index file does not exist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.