Commit Graph

46476 Commits

Author SHA1 Message Date
Kovid Goyal 32155c172c Allow interleaved waits in develop_loop 2023-01-28 13:39:08 +05:30
Kovid Goyal 46731246c6 ... 2023-01-28 13:33:53 +05:30
Kovid Goyal dd13c03bfc No need to store outfile just open it when needed 2023-01-28 13:31:36 +05:30
Kovid Goyal 8b31293600 ... 2023-01-28 13:22:54 +05:30
Kovid Goyal ae3c33ec8c Implement rate control 2023-01-28 13:01:21 +05:30
Kovid Goyal 96de7a653d Set volume on synthesizer rather than player so it works for save as well 2023-01-28 12:44:42 +05:30
Kovid Goyal 6e9c4e0bb9 Saving to WAV kinda works though audio is very distorted 2023-01-28 12:38:43 +05:30
Kovid Goyal 467af44edb Niceties for getting the last error on windows 2023-01-28 12:21:34 +05:30
Kovid Goyal 795c4c6061 Work on saving speech to WAV 2023-01-27 22:16:01 +05:30
Kovid Goyal f0ee3506d7 Keep all the speak related functions together in a block 2023-01-27 21:21:04 +05:30
Kovid Goyal 88e2331f63 Hack to get mark reporting working
Since Microsoft dont seem to have implemented support for SSML bookmarks
or at least I cant get it to work, use the word cue events. When it
fires report any surpassed or closeby mark.
2023-01-27 21:06:20 +05:30
Kovid Goyal d2983fef22 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-01-27 19:47:33 +05:30
Charles Haley 8fa523dd70 Two minor improvements:
1) Clear the temporary VL if the search box is empty instead of giving an error.
2) Escape regexp special characters in tag browser first letter searches. Use super-quoting to make escaping work reliably.
2023-01-27 13:03:03 +00:00
Kovid Goyal ce78a29fc8 Outsmart clang
clang insists INVALID_HANDLE_VALUE is not a constexpr because it is defined as (void*)-1

So it wont let us use it a template paramter. Make the template paramter
a function instead that returns the constant value. Hopefully compilers
are smart enough to just inline the function call so there is no
performance impact. Dont have the patience to check the assembly to make
sure.
2023-01-27 18:11:26 +05:30
Kovid Goyal ccd5fd83f4 Fix warning from clang 2023-01-27 18:00:05 +05:30
Kovid Goyal 55ebdf049f Silence various warnings from clang 2023-01-27 17:49:10 +05:30
Kovid Goyal fb95b532bd Make MSVC happy 2023-01-27 17:44:58 +05:30
Kovid Goyal 31fe61569f ... 2023-01-27 17:30:45 +05:30
Kovid Goyal d4a8629db8 ... 2023-01-27 16:00:11 +05:30
Kovid Goyal 9b4f63c100 Cleanup some warnings from clang 2023-01-27 15:59:12 +05:30
Kovid Goyal e2a8bab98a Narrow the scope of ignoring the warning 2023-01-27 15:50:35 +05:30
Kovid Goyal 2b87fa400a Cleanup wchar_raii constructors 2023-01-27 15:49:48 +05:30
Kovid Goyal 22cea8d90a MSVC does not like std:c++11 2023-01-27 15:36:49 +05:30
Kovid Goyal 0a95d52f9e Fix MSVC compile error 2023-01-27 15:36:32 +05:30
Kovid Goyal 649baf052f Nicer error formatting when cross compiling 2023-01-27 15:20:02 +05:30
Kovid Goyal 039b684269 Sadly the linux build VMs dont support c++20 so we cant use lambdas as template arguments 2023-01-27 15:14:01 +05:30
Kovid Goyal 17450ddc1c Silence spurious warning from gcc 2023-01-27 14:44:23 +05:30
Kovid Goyal 65885f505e Use lambdas for template specialization 2023-01-27 13:54:03 +05:30
Kovid Goyal e145f42fdc Fix generation of compile_commands.json for windows specific extensions 2023-01-27 13:25:08 +05:30
Kovid Goyal 39f5192c99 Use cross compilation for extdev 2023-01-27 13:05:34 +05:30
Kovid Goyal ef9e669ef9 Cross compiling now actually works
At least for non-PyQt based extensions
2023-01-27 12:47:46 +05:30
Kovid Goyal d13404d9ea Refactor the build system to allow cross compiling windows native code extensions on linux 2023-01-27 12:03:37 +05:30
Kovid Goyal d6a0f4bb9d Clean up C/C++ std specifications 2023-01-26 21:06:39 +05:30
Kovid Goyal 58c9ca9519 ... 2023-01-26 20:49:13 +05:30
Kovid Goyal bf6db247a2 Command to automatically install the Windows SDK 2023-01-26 20:33:49 +05:30
Kovid Goyal c895aab7ac More fixes for compilation with clang-cl 2023-01-26 19:45:39 +05:30
Kovid Goyal 69656be428 clang cant compile the handle_raii class because it thinks INVALID_HANDLE_VALUE is not a constexpr
Make a standalone class for it instead of inheriting generic_raii
2023-01-26 19:27:36 +05:30
Kovid Goyal 2d386d87da free more carefully making sure we dont double free 2023-01-26 17:44:59 +05:30
Kovid Goyal 4e4088c27c ... 2023-01-26 16:30:02 +05:30
Kovid Goyal a92149c5b8 Move the compile_commands database into build dir 2023-01-26 13:27:05 +05:30
Kovid Goyal 0ec5ae02e9 DRYer 2023-01-26 09:38:37 +05:30
Kovid Goyal ad4aeaa1a0 Fix bug reported by sanitizer 2023-01-26 09:38:08 +05:30
Kovid Goyal 49e025b565 Cleanup some code 2023-01-26 09:17:09 +05:30
Kovid Goyal a08b99f40f Work on supporting word marks 2023-01-25 23:22:24 +05:30
Kovid Goyal f7bbbbaf3f Remove a bunch on unnecessary copies when constructing output messages
Also start work on custom mark support
2023-01-25 11:48:36 +05:30
Kovid Goyal aa11af3510 Smarter integer type handing in json_val 2023-01-25 11:04:43 +05:30
Kovid Goyal ecc3e96da8 Fix JSON serialization of numeric types 2023-01-25 10:37:12 +05:30
Kovid Goyal 623f999a54 Allow passing speech text with shared memory 2023-01-25 10:12:55 +05:30
Kovid Goyal 83891ed63e Code to get the memory address of a SharedMemory object 2023-01-25 09:13:00 +05:30
Kovid Goyal 1fecf2c380 Nicer debug() function, now like print() in Python
Also report HRESULT in hexadecimal form
2023-01-25 08:57:26 +05:30