Commit Graph

188 Commits

Author SHA1 Message Date
Daniel Wolf b78e418a8f Refactored audio streams
* All streams are now mono (simplifies reasoning about samples)
* Streams can be cloned
* Streams can be seeked within
2016-03-07 21:28:31 +01:00
Daniel Wolf 419b0ec469 Making sure log is written in case of exception 2016-03-06 20:40:31 +01:00
Daniel Wolf 04ca644cca Added structured logging 2016-03-03 22:31:16 +01:00
Daniel Wolf cdffb56613 Redirecting pocketsphinx log to main log 2016-03-03 22:31:16 +01:00
Daniel Wolf 7efea6f56b Prepared for logging using Boost.Log v2 2016-02-29 21:48:27 +01:00
Daniel Wolf 7a1f446ca3 Using GSL 2016-02-29 20:58:58 +01:00
Daniel Wolf 667edf9485 Improved dialog handling 2016-02-10 21:53:58 +01:00
Daniel Wolf 05ef692706 Added (primitive) option to explicitly supply the dialog 2016-02-09 22:08:11 +01:00
Daniel Wolf 9b10f38bcb Added missing include 2016-02-02 10:13:07 +01:00
Daniel Wolf f09155e486 Using raw pointers instead of iterators for string manipulation
This avoids an assertion error when I temporarily move 1 past end
2016-02-01 20:47:27 +01:00
Daniel Wolf 75872fe45d Using -dither to prevent recognition errors in connection with zero silence 2016-02-01 20:26:14 +01:00
Daniel Wolf 0cb0153874 Improved phone-to-mouth mapping 2016-01-31 21:39:49 +01:00
Daniel Wolf 7aa6057b8e Allowing for long pauses in speech without breaking sync 2016-01-28 21:52:50 +01:00
Daniel Wolf c425885929 Showing combined progress for entire task 2016-01-28 19:13:40 +01:00
Daniel Wolf 8e7fcc4efe Implemented two-step phone detection for better accuracy 2016-01-28 14:19:32 +01:00
Daniel Wolf 2bfe671f82 Simplified directory structure to make Visual Studio build work 2016-01-08 16:59:18 +01:00
Daniel Wolf 0f33fcfbd0 Removing zero silence, seems like Sphinx doesn't like it
See http://cmusphinx.sourceforge.net/wiki/faq#qwhy_my_accuracy_is_poor
I couldn't reproduce the original problem, but it doesn't seem to hurt, either.
2016-01-08 16:44:03 +01:00
Daniel Wolf 31cb3b195c Showing progress bar 2016-01-08 10:53:35 +01:00
Daniel Wolf f14feefeb0 Using #pragma once instead of include guards
Just looks cleaner
2016-01-06 21:08:39 +01:00
Daniel Wolf 9e9a432f70 Improved formatting of command-line output 2016-01-06 21:08:39 +01:00
Daniel Wolf 5c0fe24fae Refactoring: Using camelCase throughout 2016-01-06 20:47:37 +01:00
Daniel Wolf acd13e2890 Added a number of string-related tools. 2016-01-06 20:47:29 +01:00
Daniel Wolf 3e5d6e3625 Using TCLAP to parse command line 2016-01-06 20:47:27 +01:00
Daniel Wolf e2840dba3f Fixed warning 2015-12-21 13:26:56 +01:00
Daniel Wolf 4baab9b207 Fixed Windows build 2015-12-21 13:17:14 +01:00
Daniel Wolf 932803d5ad Ported platform-dependent code
Added code for Windows, OS X, Solaris, BSD, and Linux.
Right now, only the Windows version has been tested.
2015-12-14 20:46:31 +01:00
Daniel Wolf e4b5b39504 Fixed corner cases
Handling silences and last mouth shape
2015-12-03 23:07:15 +01:00
Daniel Wolf 7b282ce50f Using std::string instead of std::wstring for command-line args
Turns out that even if I manage to get Unicode command line args,
there still is no portable way of opening a file from a Unicode path.
2015-12-03 23:07:15 +01:00
Daniel Wolf 27ba3ef357 Generating XML output 2015-12-03 23:07:15 +01:00
Daniel Wolf 2ef99119b0 Generating mouth shapes using simple lookup table 2015-12-01 22:55:53 +01:00
Daniel Wolf 994e2be314 Redirecting PocketSphinx log output 2015-12-01 22:55:53 +01:00
Daniel Wolf d6f5c2ed1e Reading sound file name from command line 2015-12-01 22:55:53 +01:00
Daniel Wolf 132adb1083 Improved error handling
Plus some refactoring
2015-12-01 22:55:53 +01:00
Daniel Wolf f2f6f75932 Refactoring
- Moved phone recognition code to phone_extraction.cpp
- Introduced type centiseconds
- Code reorganization
2015-12-01 22:55:52 +01:00
Daniel Wolf 713e8b5d7f Fixed comment 2015-10-31 20:41:17 +01:00
Daniel Wolf d96bf12c96 Fixed model path; enabled fast mode 2015-10-19 22:03:29 +02:00
Daniel Wolf 3cd82e89f8 Reading WAVE file 2015-10-19 22:03:29 +02:00
Daniel Wolf 641f64022d Implemented WAVE reading, writing, and conversion 2015-10-19 22:03:20 +02:00