From a94fe10320b7079fe16a80732e43aae615762488 Mon Sep 17 00:00:00 2001 From: Win Dictation Dev Date: Thu, 11 Jun 2026 21:28:53 +1200 Subject: [PATCH] Add GPLv3 license, docs (README, manual, architecture review); binaries via Releases page --- .gitignore | 3 +- release/WinDictation/LICENSE.txt | 674 ++++++++++++++++++ release/WinDictation/README.txt | 364 ++++------ ...ation-architecture-engineering-review.html | 520 ++++++++++++++ .../win-dictation-user-manual.html | 567 +++++++++++++++ 5 files changed, 1892 insertions(+), 236 deletions(-) create mode 100644 release/WinDictation/LICENSE.txt create mode 100644 release/WinDictation/win-dictation-architecture-engineering-review.html create mode 100644 release/WinDictation/win-dictation-user-manual.html diff --git a/.gitignore b/.gitignore index f3ce614..f06f8ec 100644 --- a/.gitignore +++ b/.gitignore @@ -43,9 +43,10 @@ models/*.bin !models/download-*.sh !models/download-*.cmd -# Release packages (keep structure but not binaries) +# Release packages - docs only, binaries via Releases page release/WinDictation/*.exe release/WinDictation/*.dll +release/WinDictation/models/ release/WinDictation.zip # IDE diff --git a/release/WinDictation/LICENSE.txt b/release/WinDictation/LICENSE.txt new file mode 100644 index 0000000..fa9287f --- /dev/null +++ b/release/WinDictation/LICENSE.txt @@ -0,0 +1,674 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Win Dictation Copyright (C) 2026 + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/release/WinDictation/README.txt b/release/WinDictation/README.txt index f7e5ff8..c589525 100644 --- a/release/WinDictation/README.txt +++ b/release/WinDictation/README.txt @@ -1,244 +1,138 @@ -# Whisper Dictation - AI Voice to Text for Windows +# Win Dictation โ€” Voice to Text for Windows -A high-performance, real-time speech-to-text application for Windows using OpenAI's Whisper model. +![screenshot](screenshot.png) -## โœจ Features +A push-to-talk speech-to-text utility for Windows. Press a hotkey, speak, and your words land in whatever app you were just using โ€” fully offline, powered by Whisper. -### Performance -- **Multi-Core CPU Support**: Automatically uses all available CPU cores (24 threads detected) -- **GPU Acceleration**: Auto-detects and uses CUDA, Vulkan, or Metal when available -- **Ring Buffer Audio**: Zero audio loss with lock-free ring buffer implementation -- **Optimized Processing**: AVX2/FMA instructions for maximum performance +## Quick Download -### User Interface -- **Modern Dark Theme**: Polished, professional interface -- **Real-Time Monitoring**: - - Live VU meter for audio levels - - Buffer status indicator - - GPU/CPU usage display -- **Smooth Animations**: 30 FPS UI updates for responsive experience -- **System Tray Integration**: Minimize to tray with hotkey support +**[Download Latest Release (WinDictation.zip)](release/WinDictation.zip)** -### Audio Processing -- **Voice Activity Detection (VAD)**: Automatically filters silence -- **Continuous Recording**: Maintains context between segments -- **Multiple Microphone Support**: Select from all available input devices -- **16kHz Sample Rate**: Optimized for Whisper model +Extract the ZIP file and run `win-dictation.exe`. The release includes all required DLLs and a Whisper model. -## ๐Ÿš€ Quick Start - -### Build - -```powershell -powershell -ExecutionPolicy Bypass -File examples/win-dictation/build.ps1 -``` - -The build script will: -1. Detect your GPU capabilities (CUDA, Vulkan) -2. Download and configure SDL2 -3. Build the application with optimal settings -4. Download the Whisper model (base.en - 140MB) -5. Deploy all required DLLs - -### Run - -``` -build/bin/Release/win-dictation.exe -``` - -Or double-click the exe in the build output directory. - -## ๐ŸŽฏ Usage - -### Controls -- **Start/Stop Recording**: Click button or press `Ctrl+Shift+R` -- **Clear Text**: Click "Clear" button -- **Change Microphone**: Select from dropdown (auto-restarts recording) -- **Minimize**: Close window (minimizes to system tray) -- **Exit**: Right-click tray icon โ†’ Exit - -### Indicators -- **Level**: Real-time audio input level -- **Buffer**: Current audio buffer usage (0-100%) -- **Status**: Shows GPU/CPU mode, recording state, thread count - -## โš™๏ธ Technical Details - -### Architecture - -#### Ring Buffer Audio Capture -- **Lock-Free Design**: Audio thread never blocks -- **30-Second Buffer**: Handles burst processing without loss -- **Atomic Operations**: Prevents race conditions - -#### Processing Pipeline -``` -Audio Input โ†’ Ring Buffer โ†’ VAD โ†’ Whisper Inference โ†’ Text Output -``` - -1. **SDL Audio Capture**: 512-sample chunks at 16kHz -2. **Ring Buffer**: Lock-free circular buffer -3. **VAD Processing**: Filters silence before inference -4. **Whisper Inference**: Multi-threaded with context overlap -5. **Text Output**: Appended to UI in real-time - -### Performance Optimizations - -#### CPU Mode (Current Build) -- All 24 CPU threads utilized -- AVX2/FMA SIMD instructions -- Optimized memory layout -- Minimal context switching - -#### GPU Mode (When Available) -- CUDA 12.4+ or Vulkan SDK required -- Automatic offloading to GPU -- Faster inference times -- Lower CPU usage - -### Model - -Currently using `ggml-base.en.bin`: -- **Size**: 140 MB -- **Parameters**: 74 million -- **Languages**: English only (optimized) -- **Speed**: ~5x real-time on CPU, >20x on GPU -- **Accuracy**: Excellent for general speech - -To use a different model, place it in `build/bin/Release/models/` and update the config in `main.cpp`. - -## ๐Ÿ”ง Troubleshooting - -### GPU Not Detected -- **CUDA**: Install CUDA Toolkit 12.4 or newer (CUDA 13.0 recommended) - - **See [CUDA-SETUP.md](CUDA-SETUP.md) for detailed installation guide** -- **Vulkan**: Install Vulkan SDK -- CPU-only mode still provides excellent performance with all cores - -### After Installing CUDA 13.0 -See **[CUDA-SETUP.md](CUDA-SETUP.md)** for complete setup instructions including: -- Verification steps -- Clean rebuild process -- Performance benchmarking -- Troubleshooting GPU issues - -### Audio Not Working -- Check microphone permissions in Windows Settings -- Verify correct device selected in dropdown -- Test microphone in Windows Sound settings - -### Poor Transcription Quality -- Ensure microphone is close (6-12 inches) -- Reduce background noise -- Check VU meter shows green when speaking -- Try a larger model (medium.en or large-v3-turbo) - -### High CPU Usage -- Normal during active transcription -- Reduces during silence (VAD filtering) -- Consider enabling GPU acceleration - -## ๐Ÿ“Š Performance Benchmarks - -### CPU-Only (24 threads, base.en model) -- **Latency**: ~2-3 seconds -- **Throughput**: ~5x real-time -- **CPU Usage**: 60-80% during speech -- **Memory**: ~500 MB - -### GPU-Accelerated (RTX 3090, base.en model) -- **Latency**: <1 second -- **Throughput**: >20x real-time -- **GPU Usage**: 20-30% -- **CPU Usage**: <10% -- **Memory**: ~1 GB (VRAM) - -## ๐Ÿ†• Recent Improvements - -### v2.0 (Current) -- โœ… **Ring buffer** implementation - no more dropped audio -- โœ… **Multi-core CPU** support - uses all available threads -- โœ… **GPU auto-detection** - CUDA/Vulkan support -- โœ… **Modern UI** - dark theme, smooth animations -- โœ… **VAD integration** - skip silence for efficiency -- โœ… **Better error handling** - graceful fallbacks -- โœ… **Status indicators** - real-time monitoring -- โœ… **Build script** - automated setup and deployment - -### Previous Issues (Fixed) -- โŒ Audio chunks lost between recording and processing -- โŒ No GPU utilization -- โŒ Only used 1-2 CPU cores -- โŒ Slow, glitchy interface -- โŒ No real-time feedback -- โŒ Poor error messages - -## ๐ŸŽจ UI Features - -### Modern Dark Theme -- Background: `#202124` -- Surface: `#292A2D` -- Primary: `#8AB4F8` (Blue) -- Success: `#81C995` (Green) -- Text: `#E8EAED` - -### Responsive Layout -- Auto-resizes with window -- Maintains proper spacing -- Smooth transitions - -### Visual Feedback -- VU meter with color coding -- Buffer status bar -- GPU/CPU indicator -- Thread count display - -## ๐Ÿ”ฎ Future Enhancements - -- [ ] Push-to-talk mode -- [ ] Multiple language support -- [ ] Punctuation model integration -- [ ] Export to file (TXT, SRT) -- [ ] Custom hotkey configuration -- [ ] Noise reduction filter -- [ ] Model switching in UI -- [ ] Real-time word highlighting - -## ๐Ÿ“ License - -This example is part of the whisper.cpp project and follows the same license (MIT). - -## ๐Ÿค Contributing - -Improvements welcome! The code is designed to be: -- **Readable**: Clear structure and comments -- **Maintainable**: Modular design -- **Extensible**: Easy to add features -- **Performant**: Optimized critical paths - -## ๐Ÿ’ก Tips - -### For Best Results -1. Use a quality microphone -2. Position mic 6-12 inches from mouth -3. Speak clearly and naturally -4. Minimize background noise -5. Keep buffer below 50% (adjust step_ms if needed) - -### For Development -- See `transcriber.h/cpp` for core logic -- See `main.cpp` for UI implementation -- Adjust parameters in `WhisperConfig` struct -- Enable logging in `whisper_full_params` - -## ๐Ÿ“š Resources - -- [Whisper.cpp](https://github.com/ggerganov/whisper.cpp) -- [Whisper Paper](https://arxiv.org/abs/2212.04356) -- [Model Download](https://huggingface.co/ggerganov/whisper.cpp) -- [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) -- [Vulkan SDK](https://vulkan.lunarg.com/) +For new releases, run `.\src\package.ps1` after building, then attach `dist\WinDictation.zip` to a [Gitea Release](https://docs.gitea.com/usage/packages/overview) on your instance. --- -**Built with โค๏ธ using whisper.cpp** +## Documentation + +- **[User Manual](win-dictation-user-manual.html)** โ€” How to use every feature +- **[Architecture & Engineering Review](win-dictation-architecture-engineering-review.html)** โ€” Deep dive into the codebase for developers + +--- + +## Features + +### Performance +- **Physical-core threading**: Uses one thread per physical core for efficient batch transcription +- **CPU-only**: Optimised for ordinary laptops โ€” no GPU required +- **Self-calibrating progress**: Learns transcription speed per model and machine, delivering a smooth countdown + +### User Interface +- **Single-surface rendering**: No inter-window seams or hairlines โ€” the entire UI is one painted surface +- **Dark theme**: Calm, elevated card design with hover/press feedback +- **Per-monitor DPI awareness**: Looks sharp at any display scale +- **System tray**: Minimise to tray, global hotkey to record + +### Audio Processing +- **Push-to-talk**: Press Ctrl+Shift+Space, speak, press again to transcribe +- **Multiple microphones**: Select from all available input devices +- **16 kHz sample rate**: Optimised for Whisper +- **Silence trimming**: Leading and trailing silence is trimmed before transcription + +## Quick Start + +1. Launch `win-dictation.exe` +2. Click into wherever you want text, then press `Ctrl+Shift+Space` +3. Speak, then press `Ctrl+Shift+Space` again +4. Your words appear in the app you were using + +Full instructions in the [User Manual](win-dictation-user-manual.html). + +### Controls +- **Record/Stop**: Click the pill or press `Ctrl+Shift+Space` +- **Hide window**: `Ctrl+Shift+H` +- **Pin**: Keep window always-on-top +- **Copy / Paste / Clear**: Text actions below the transcript +- **Model / Mic / History**: Select from popup menus + +## Building from Source + +### Prerequisites + +- **Windows 10/11** +- **CMake** 3.5+ +- **Visual Studio 2022** with C++ workload +- **SDL2** (included in deps/) + +### Build Steps + +```powershell +cmake -S . -B build -G "Visual Studio 17 2022" ^ + -DSDL2_DIR="deps/SDL2-2.28.5/cmake" +cmake --build build --config Release +``` + +The executable will be at `build\bin\Release\win-dictation.exe`. + +## Technical Details + +### Architecture + +``` +Hotkey โ†’ SDL Capture โ†’ Stop โ†’ Batch whisper_full โ†’ Text โ†’ Auto-paste +``` + +1. **SDL audio capture**: 16 kHz mono recording into memory. CPU stays near idle while recording. +2. **Stop-and-transcribe**: One `whisper_full` call processes the full clip at once. +3. **Progress estimation**: Decayed online least-squares model per machine/model, fused with whisper's chunk progress into a strictly monotonic countdown. +4. **Text output**: Inserted at cursor with smart spacing, copied to clipboard, and optionally auto-pasted into the window you came from. + +### Models + +Place `.bin` files in `models/` next to the executable, or download them from the Settings screen in-app: + +| Model | Size | Best for | +|-------|------|----------| +| tiny.en | ~75 MB | Fastest โ€” everyday dictation | +| tiny.en-q8_0 | ~42 MB | Same speed, smaller file | +| base.en-q5_1 | ~59 MB | Good accuracy bump for little cost | +| base.en | ~142 MB | More accurate; still reasonable on two cores | +| small.en-q5_1 | ~182 MB | Accurate, but slower | +| small.en | ~466 MB | Most accurate โ€” and slowest | + +## Project Structure + +``` +win-dictation/ +โ”œโ”€โ”€ src/ # Application source +โ”‚ โ”œโ”€โ”€ main.cpp # Window, painting, interaction, settings, clipboard, popups +โ”‚ โ”œโ”€โ”€ transcriber.* # SDL capture, Whisper preload/inference, progress callbacks +โ”‚ โ”œโ”€โ”€ timing.h # Learned timing model + live progress estimator +โ”‚ โ”œโ”€โ”€ history.h # Session text files, index, pruning +โ”‚ โ”œโ”€โ”€ downloader.h # WinHTTP model downloader (background thread) +โ”‚ โ”œโ”€โ”€ stats.h # Lifetime usage totals + derived figures +โ”‚ โ”œโ”€โ”€ settings.h # INI persistence +โ”‚ โ”œโ”€โ”€ text_util.h # Transcript concatenation helpers +โ”‚ โ”œโ”€โ”€ logging.h # Timestamped file log +โ”‚ โ””โ”€โ”€ tests/ # Unit tests (test-core.exe) +โ”œโ”€โ”€ whisper/ # Whisper.cpp library +โ”œโ”€โ”€ ggml/ # GGML tensor library +โ”œโ”€โ”€ models/ # Whisper model files +โ”œโ”€โ”€ history/ # Saved dictation sessions +โ”œโ”€โ”€ release/ # Pre-built package +โ””โ”€โ”€ CMakeLists.txt # Build configuration +``` + +## License + +[GNU General Public License v3.0](LICENSE) + +This project is licensed under GPLv3. It incorporates [whisper.cpp](https://github.com/ggerganov/whisper.cpp) (MIT), [ggml](https://github.com/ggerganov/ggml) (MIT), and [SDL2](https://www.libsdl.org/) (zlib). + +## Resources + +- [User Manual](win-dictation-user-manual.html) +- [Architecture & Engineering Review](win-dictation-architecture-engineering-review.html) +- [Whisper.cpp](https://github.com/ggerganov/whisper.cpp) +- [Model Downloads](https://huggingface.co/ggerganov/whisper.cpp) diff --git a/release/WinDictation/win-dictation-architecture-engineering-review.html b/release/WinDictation/win-dictation-architecture-engineering-review.html new file mode 100644 index 0000000..46249d8 --- /dev/null +++ b/release/WinDictation/win-dictation-architecture-engineering-review.html @@ -0,0 +1,520 @@ + + + + + +Win Dictation โ€” Architecture & Engineering Review + + + + + + + +
+ +
+

Architecture ยท Code Analysis ยท Engineering Verdict

+

Win Dictation: under the hood

+

A guided walk through a native Win32 C++ speech-to-text app โ€” how it's built, why it's built that way, and an honest assessment of the code for anyone picking it up for the first time.

+
+ ~3,400 lines C++ (app) + Win32 + GDI+ + SDL2 + whisper.cpp + Single .exe, no runtime deps + Target 2-core i5, CPU-only +
+
+ + + + +
+
01

The verdict, up front

+
+

Bottom line

+

A genuinely strong, characterful single-purpose tool that punches well above hobby grade.

+

The hard engineering โ€” the architecture choice, the self-calibrating progress estimator, the seam-free single-surface renderer โ€” is thoughtful and well-executed. The app does exactly one thing and does it well on hardware most tools would choke on.

+

What holds it back is organizational debt, not algorithmic weakness: a 1,500-line main.cpp, a layer of vestigial child-window controls left over from an earlier design, and a pile of stale documentation that describes a GPU-streaming app this no longer is. None of it breaks the running product โ€” but all of it raises the cost of the next person walking in.

+
+

The sections below back up every part of that judgement with specifics from the source.

+
+ + +
+
02

Stack at a glance

+

Deliberately lean. No UI framework, no managed runtime, no garbage collector โ€” just the OS and three libraries.

+
+

Language

C++ (MSVC, Release /O2 /GL /LTCG, AVX2/FMA/F16C)

+

UI

Raw Win32 + GDI+ immediate-mode painted surface

+

Audio capture

SDL2 16 kHz mono, F32

+

Inference

whisper.cpp whisper_full, CPU backend

+

Networking

WinHTTP model downloads, system proxy aware

+

Persistence

Plain INI + UTF-8 text files no database

+

Build

CMake + a PowerShell convenience script

+

Footprint

One .exe + a few DLLs + model tiny RAM, no install

+
+

The whole product is native code with no framework abstraction between it and the Win32 API. That's the source of both its biggest strength (a tiny, fast, dependency-light binary) and its biggest cost (everything is hand-rolled, including the widgets).

+
+ + +
+
03

Architecture & data flow

+

A linear pipeline with a single inference step. Audio in, text out, no streaming loop.

+
+

trigger

Hotkey

Global RegisterHotKey. Captures the previously focused window.

+

capture

SDL2 mic

16 kHz mono into an in-memory buffer. Near-zero CPU.

+

buffer

PCM in RAM

Accumulated under a mutex; RMS energy tracked for the meter.

+

inference

whisper_full

One pass on a worker thread when you stop. Trim โ†’ transcribe โ†’ clean.

+

deliver

Insert + paste

Text to caret, to clipboard, into the prior window.

+
+

Two side channels run alongside the main pipeline: a progress estimator that predicts and smooths the transcription countdown, and a timing model that learns this machine's speed and feeds back into the next prediction. Results return to the UI thread exclusively via PostMessage; shared flags are std::atomic.

+
+

Mental model

+

Think of it as a tape recorder with a transcription button, not a live captioner. The architecture has no per-frame transcription loop at all โ€” which, on a 2-core CPU, is the whole point.

+
+
+ + +
+
04

The defining decision

+

The single most important thing to understand: this app was rebuilt from a live-streaming design into a push-to-talk batch design โ€” and that was the right call.

+

An earlier version used the classic whisper.cpp streaming approach: a rolling 5โ€“6 second window re-transcribed every ~0.4 seconds. That technique assumes spare cores. On the target machine โ€” an Intel i5-7th-gen with two physical cores โ€” the buffer backlogged, audio was re-transcribed, and the UI starved. The symptom looked like "the model is slow"; the real cause was an architecture that needed hardware the target didn't have.

+

The fix wasn't a faster model. It was removing the streaming loop entirely:

+ + + + + + + +
AspectOld: streaming windowNew: push-to-talk batch
CPU while speakingPinned โ€” constant re-inferenceNear idle โ€” just buffering
Inference callsMany per secondExactly one, on stop
AccuracyLower โ€” partial context windowsHigher โ€” full clip, full context
UI responsivenessStarved under loadFree until the single pass
PredictabilityVariable lagPredictable few-second wait
+

This is textbook root-cause engineering: the team correctly diagnosed that the bottleneck was the shape of the work, not its size, and changed the shape. Everything else in the codebase โ€” the batch worker, the progress estimator, the physical-core thread default โ€” follows from this one decision.

+
+ + +
+
05

Threading model

+

Four threads, one rule: only the UI thread touches the UI. Everything else reports back by message.

+ + + + + + +
ThreadLifetimeJob
UI threadWhole appMessage loop, all painting, the 16 ms animation timer and 50 ms update timer.
Model preloadDetached, onceLoads the Whisper context off the UI thread at startup so the window appears instantly.
Transcribe workerPer clipRuns whisper_full; posts WM_APP_PROGRESS during and WM_APP_RESULT when done.
DownloaderPer downloadWinHTTP fetch on its own thread; posts WM_APP_DLPROGRESS.
+

Cross-thread state is handled with discipline rather than locks where possible: std::atomic booleans (m_recording, m_busy, m_abort, g_modelLoaded, g_modelOk) gate state transitions, and the only shared buffer โ€” the captured PCM โ€” is protected by a dedicated mutex. The audio callback (driven by SDL's own thread) appends under that mutex; stop_and_transcribe swaps the buffer out under the same lock before handing it to the worker. That swap-not-copy handoff is a nice touch.

+
// transcriber.cpp โ€” physical cores, not logical, by design
+int Transcriber::default_threads() {
+    unsigned hc = std::thread::hardware_concurrency();
+    if (hc <= 2) return (int)std::max(1u, hc);
+    return (int)(hc / 2);   // 4 logical โ†’ 2 worker threads
+}
+

Defaulting to physical cores rather than hardware_concurrency() is the correct choice for compute-bound SIMD inference โ€” hyperthreads contend for the same execution units and would only add scheduling overhead.

+
+ + +
+
06

Source map, file by file

+

The app is small and mostly header-only outside the two big translation units. Here's where everything lives.

+ + + + + + + + + + + +
FileRoleNotes
main.cppWindow, painting, interaction, settings view, clipboard, paste, model selection, popups~1,500 lines. The monolith โ€” see ยง13.
transcriber.{h,cpp}SDL capture, Whisper preload/inference, progress & abort callbacksClean, well-scoped class. The model layer.
timing.hPer-model least-squares timing model + live progress estimator + INI persistenceThe standout module. See ยง08.
history.hSession text files, UTF-8 r/w with BOM, index, pruning to 100Self-contained, header-only.
downloader.hWinHTTP model downloader on a background thread.part + atomic rename, cancel, proxy-aware.
stats.hLifetime usage totals + derived figures (wpm, real-time factor, time saved)INI-backed, header-only.
settings.hApp settings read/write via GetPrivateProfile*Simple and transparent.
text_util.h ยท logging.hTranscript concatenation; timestamped file logTiny helpers.
tests/test_core.cppUnit checks: append logic, bad-model handling, real-WAV transcription, progress monotonicityModest but meaningful. Built as test-core.
+

The decision to make most subsystems header-only and independent (timing.h, stats.h, history.h, downloader.h, settings.h) is a good one for a project this size: each is cohesive, individually readable, and free of cross-dependencies. The contrast with main.cpp โ€” which absorbs everything else โ€” is stark.

+
+ + +
+
07

Deep dive: the single-surface UI engine

+

There are no buttons. Everything you see is painted onto one double-buffered surface โ€” and that's a deliberate fix, not a shortcut.

+

The previous UI composited around nine separate themed child windows (buttons, statics, an edit). That produced thin hairline seams around every control โ€” the hard-edged holes WS_CLIPCHILDREN punches per child, plus the edit's themed border. Rather than chase pixel borders, the rebuild eliminated the cause: collapse the controls into one painted region.

+

The model is a small immediate-mode system:

+
    +
  • A flat Widget g_w[] array โ€” each entry is a kind, a rectangle, and hover/pressed/anim state. No HWNDs.
  • +
  • LayoutWidgets() positions them; PaintSurface() draws each into an off-screen DC with GDI+, then blits once (no flicker).
  • +
  • HitTest() maps a click point to a widget; OnClick() dispatches the action.
  • +
  • An animation clock eases each widget's anim toward a target (hover 0.6, active 1.0) on a 16 ms timer that stops itself when nothing is moving โ€” no idle CPU burn.
  • +
+

Two "views" โ€” Main and Settings โ€” render onto the same surface, toggled by SwitchView(). Dropdowns (mic, history) are the one exception: they're real top-level WS_POPUP windows, because a surface-painted dropdown would render behind the transcript edit (a child HWND always paints above its parent's surface). That's a correct, well-reasoned exception.

+
+

A sign of maturity

+

The popup code carries a comment never to open a MessageBox from inside it โ€” because WA_INACTIVE self-destroys the popup mid-handler, causing a use-after-free. Recognising that class of Win32 lifetime bug, and the GDI+ "GetHDC locks the Graphics object" trap documented elsewhere, shows real depth.

+
+

The one real child window that survives is the transcript EDIT โ€” kept because a hand-rolled text editor with selection, scrolling, IME and undo is genuinely not worth rebuilding. Pragmatic.

+

The cost of this approach

+

Custom-painted controls are invisible to screen readers and UI Automation, and the app explicitly hides focus rectangles. The transcript box is accessible; the buttons are not. For a personal productivity tool this is a defensible trade, but it's the kind of thing worth stating out loud.

+
+ + +
+
08

Deep dive: the progress estimator

+

The crown jewel. Most apps fake a progress bar; this one runs a small statistical model that learns your machine.

+

Whisper only reports coarse progress (per 30-second chunk), so a naive bar jumps โ€” 0, 34, 72, 100 โ€” and a naive "time left" computed from stale percentages actually counts up. timing.h solves both. It has two parts.

+

1 โ€” A learned timing model

+

Processing time is modelled as a linear function of audio length, proc = a + bยทaudio, fitted by decayed online least-squares. Each completed transcription feeds back a real sample; older samples decay (factor 0.97) so the model tracks the current machine state. Defaults are seeded per model family (tiny/base/small) so even the very first clip has a sane estimate, and the accumulators persist per-model in the INI.

+
void add_sample(double audio_sec, double proc_sec) {
+    const double decay = 0.97;
+    n*=decay; sx*=decay; sy*=decay; sxx*=decay; sxy*=decay;
+    n+=1; sx+=audio_sec; sy+=proc_sec;
+    sxx+=audio_sec*audio_sec; sxy+=audio_sec*proc_sec;
+    recompute();   // closed-form slope/intercept
+}
+

2 โ€” A live estimator that only counts down

+

On stop, begin(predict) seeds a predicted total. As Whisper reports chunk progress, on_whisper() folds it in as a measurement via an EMA (ฮฑ = 0.5) โ€” nudging the estimate without the jumpy jumps. Meanwhile tick() advances a displayed "remaining" value that is strictly monotonic downward, with a clamped catch-up rate so it can speed up but never lurch backward, easing to 95% and snapping to 100% only on the real result.

+
void tick(double dt, float& out_frac, float& out_remaining) {
+    t += dt; disp_rem -= dt;
+    double raw_rem = std::max(0.0, T_hat - t);
+    double err = raw_rem - disp_rem;
+    if (err < 0) disp_rem += std::max(err, -maxCatchUp*dt);  // catch up, never jump back
+    double frac = t/(t+disp_rem);
+    if (frac > 0.95) frac = 0.95;   // park at 95% until done
+    out_frac = (float)frac; out_remaining = (float)disp_rem;
+}
+

This is more thought than most commercial apps put into a progress bar, and the test suite even asserts the progress is non-decreasing. It's the clearest signal in the codebase that someone cared about the feel of the product, not just its function.

+
+ + +
+
09

Deep dive: the transcriber

+

The cleanest class in the project โ€” a tidy boundary between the OS/model and the rest of the app.

+

Transcriber owns the Whisper context and the SDL device, and exposes a small, sensible surface: preload, reload, start_recording, stop_and_transcribe, cancel, plus state queries and two callbacks (result, progress). Inference parameters are configured sensibly for dictation โ€” greedy sampling, no timestamps, no prior context, blank/non-speech suppression, temperature 0 โ€” and an abort_callback lets a long transcription be cancelled mid-flight.

+

Two small details worth calling out:

+
    +
  • Silence trimming. Before inference, leading/trailing silence is trimmed from the clip โ€” cheaper and more accurate than transcribing dead air. (Note: this trims the buffer; it does not auto-stop recording โ€” see the doc-drift note in ยง13.)
  • +
  • Output cleanup. clean_text() strips Whisper's [BLANK_AUDIO] / [NOISE] artifacts and trims whitespace, so the user never sees model noise.
  • +
+

The class is also defensively coded: a missing model file makes preload return false cleanly (the test suite verifies this), start_recording bails if a device won't open, and clips under ~0.3 s short-circuit to an empty result rather than invoking the model.

+
+ + +
+
10

History, downloads & persistence

+

No database, no registry sprawl โ€” everything is a file next to the executable. Transparent and portable.

+

Session history

+

Each session is one UTF-8 text file in history\, named by timestamp. The clever bit is live archiving: the first clip of a session creates the file; subsequent clips rewrite the same file with the full text. So a session is always one tidy, crash-safe file โ€” not a scatter of fragments โ€” and it appears in the History popup immediately. A g_sessionPath global plus a FinalizeSession() helper handle the edge cases (manual edits, typed-only sessions, loading an old entry without resurrecting it). The list is capped at 100 with automatic pruning.

+
+

A real bug was fixed here

+

An earlier version stamped every fresh transcription as "loaded from history," so the duplicate-guard silently skipped archiving โ€” sessions never reached disk while the UI claimed "Saved." The fix (live archiving + a corrected guard) is documented and shows the team chasing subtle state bugs to ground.

+
+

Model downloads

+

The downloader is more robust than it needed to be, in a good way: it streams to a .part file then does an atomic rename on success (no half-files), honors the system proxy, follows the Hugging Face โ†’ CDN redirects, supports cancellation, allows only one download at a time, and sweeps up stray .part files at startup.

+

Settings, timing & stats

+

All three live in a single win-dictation.ini under different sections โ€” app settings, per-model timing accumulators, and lifetime stats. Using the OS's own GetPrivateProfile* API means zero parsing code and a file a user can read and edit by hand. For an app of this scope, that's exactly the right level of machinery.

+
+ + +
+
11

Anatomy of one dictation

+

Following a single clip end-to-end ties the whole system together.

+
    +
  1. WM_HOTKEY fires โ†’ the app records g_prevForeground and the current selection (EM_GETSEL) so it knows where to paste and where to insert.
  2. +
  3. g_tx.start_recording() opens the SDL device; the audio callback appends PCM under the capture mutex and updates the RMS energy meter.
  4. +
  5. The 50 ms UI timer animates the level meter and ticks the on-screen recording clock.
  6. +
  7. Second WM_HOTKEY โ†’ g_est.begin(g_timing.predict(len)) seeds the progress estimate; g_tx.stop_and_transcribe() swaps the buffer to a worker thread.
  8. +
  9. The worker runs run_inference() โ†’ whisper_full. Whisper's progress callback posts WM_APP_PROGRESS; the estimator's on_whisper() EMA-folds it in.
  10. +
  11. On completion the worker posts WM_APP_RESULT.
  12. +
  13. The UI thread then, in order: snaps progress to 100%, records a real timing sample (add_sample + SaveTiming), updates lifetime stats, inserts the text at the saved caret with smart spacing via EM_REPLACESEL (undoable), archives the session, copies to the clipboard, and pastes into g_prevForeground.
  14. +
+

Every piece of the architecture shows up in that one trip: the atomics, the message hand-back, the estimator, the learned timing feedback loop, the editable transcript, the live history. It's a coherent design.

+
+ + +
+
12

What's done well

+
+

The architecture fits the hardware

Push-to-talk batch over streaming is the correct response to a 2-core CPU, reached by genuine root-cause analysis rather than knob-twiddling.

+

The progress estimator is exceptional

Decayed online least-squares + EMA fusion + a strictly monotonic countdown is far beyond what the task demanded โ€” and it shows in the feel.

+

Seam-free UI by elimination, not patching

Collapsing nine child windows into one painted, double-buffered, DPI-aware, self-throttling surface removed the problem at its source.

+

Clean module boundaries (outside main)

Header-only, dependency-free subsystems (timing, history, downloader, stats, settings) are each individually readable and testable.

+

Robustness in the right places

Atomic rename downloads, crash-safe live history, graceful missing-model handling, cancellable inference, single-instance mutex, model preload off the UI thread.

+

Real product thoughtfulness

Smart insertion spacing, undoable edits, auto-paste into the prior window, auto-hide, learned timing, friendly stats. These are details a careful builder adds.

+
+
+ + +
+
13

What holds it back

+

All fixable, and none of it affects the running app. But it's exactly what a newcomer trips over.

+
+

main.cpp is a 1,500-line god object

UI, layout, painting, the entire settings screen, clipboard, paste mechanics, model selection, the popup window class, and stats formatting all live in one translation unit with dozens of globals. It works, but it's the hardest part of the codebase to onboard into. Splitting the settings view, the popup, and the painting helpers into their own files would pay for itself quickly.

+

Vestigial child windows & duplicate code paths

Startup still creates ~9 owner-draw child controls (record, pin, copy, paste, clear, two selects, two statics) and then immediately hides all but the transcript edit. Their dead WM_COMMAND handlers duplicate the painted-widget OnClick logic โ€” e.g. the Copy action exists in two near-identical places. Leftovers from the rebuild that should be deleted.

main.cpp โ€” CreateWindow(...) blocks then ShowWindow(..., SW_HIDE)

+

Documentation describes a different app

This is the most actively misleading issue. CUDA-SETUP.md, QUICK-REBUILD-GPU.md and FIXES-APPLIED.md describe a streaming, VAD, ring-buffer, 24-thread, RTX 3090 design that no longer exists. build.ps1 still hunts for CUDA and downloads base.en though the product is a CPU-only tiny.en app. TESTING.md references a test-audio.exe the CMake doesn't build (it builds test-core). A newcomer reading the docs would form a completely wrong mental model.

+

The README claims a feature that isn't there

Both README.md and CHANGES.md describe a "500 ms silence auto-end timer." The recording loop has no such logic โ€” it only auto-stops at the 10-minute safety cap. (Silence is trimmed before inference, which is likely the source of the confusion.) Either implement it or remove the claim.

main.cpp WM_TIMER recording branch vs README "Audio Processing"

+

Heavy reliance on global mutable state

The UI is coordinated through dozens of file-scope globals (g_*), a mix of atomics and plain values. It's manageable at this size and the threading is disciplined, but it makes the code hard to reason about in isolation and easy to break with a careless edit.

+

Build declares C++11 but uses C++17

CMakeLists.txt sets CMAKE_CXX_STANDARD 11, yet the code uses std::size() (C++17). It compiles only because MSVC's default is newer. Set the standard to 17 explicitly so the build is honest and portable.

+

Minor: redundant color systems & no in-app hotkey editor

Three overlapping palettes coexist (CR_* COLORREF, T_* GDI+ Color, C_* aliases). And changing the hotkey requires hand-editing the INI โ€” a natural gap given the polished Settings screen already exists.

+
+
+ + +
+
14

Recommendations

+

If the next session had a short to-do list, this would be it โ€” ordered by payoff for effort.

+
    +
  1. Purge or archive the stale docs high

    Delete or clearly mark CUDA-SETUP.md, QUICK-REBUILD-GPU.md, FIXES-APPLIED.md, TESTING.md and DESIGN.md as describing the retired streaming design. This is the single biggest improvement to onboarding, and it's nearly free.

  2. +
  3. Reconcile the README with reality high

    Remove the "500 ms silence auto-end" claim (or implement it). Update the model table and build commands to match the CPU-only product.

  4. +
  5. Delete the vestigial child windows medium

    Remove the hidden owner-draw controls and their dead WM_COMMAND handlers so there's exactly one code path per action. De-duplicate Copy.

  6. +
  7. Break up main.cpp medium

    Lift the Settings view, the popup window, and the GDI+ drawing helpers into their own files. Even a mechanical split dramatically improves navigability.

  8. +
  9. Fix the build standard & align build.ps1 medium

    Set CMAKE_CXX_STANDARD 17. Strip the CUDA detection from the build script and default it to fetching tiny.en.

  10. +
  11. Add an in-app hotkey picker low

    The Settings surface already exists; surfacing the hotkey there closes an obvious UX gap and removes a troubleshooting step.

  12. +
+
+ + +
+
15

Scorecard & final word

+
+
Architecture & design9.2
+
Performance fit for target9.3
+
UX & polish8.7
+
Robustness & error handling7.5
+
Code organization5.5
+
Maintainability5.8
+
Testing4.8
+
Documentation accuracy3.8
+
7.1Strong, with cleanup debt.
An impressive core wrapped in organizational and documentation drift. The engineering earns a high mark; the housekeeping pulls the average down.
+
+
+

Final word

+

Win Dictation is a good codebase โ€” at its core, an impressive one. The architectural judgement (batch over streaming), the standout progress estimator, and the seam-free renderer are the work of someone who diagnoses root causes and cares about how software feels. Those are the hard parts, and they're done right.

+

What separates it from "great" is entirely recoverable: a monolithic main file, dead code from a prior design, and documentation that actively describes a different application. A focused day of cleanup โ€” most of it deletion โ€” would lift this from "strong for its niche" to "exemplary small-app code." The good news for anyone inheriting it: the bones are excellent, and the to-do list is short.

+
+ +
+ +
+ + + + + diff --git a/release/WinDictation/win-dictation-user-manual.html b/release/WinDictation/win-dictation-user-manual.html new file mode 100644 index 0000000..1f213cc --- /dev/null +++ b/release/WinDictation/win-dictation-user-manual.html @@ -0,0 +1,567 @@ + + + + + +Win Dictation โ€” User Manual + + + + + + + +
+ + +
+

User Manual ยท v3

+
+
+ +
+

Win Dictation

+
+

A push-to-talk speech-to-text utility for Windows. Press a hotkey, speak, and your words land in whatever app you were just using โ€” fully offline, powered by Whisper.

+
+ Offline ยท runs on your machine + Hotkey Ctrl+Shift+Space + CPU-only ยท no GPU required + Whisper ยท tiny.en โ†’ small.en +
+
+ + + + + +
+
01

What Win Dictation is

+

A small, focused desktop tool that turns your voice into text anywhere on Windows โ€” no browser, no cloud, no account.

+

Win Dictation sits quietly in your system tray. When you want to dictate, you press a global hotkey, speak a sentence or a paragraph, then press the hotkey again. A second or two later the transcribed text is copied to your clipboard and โ€” by default โ€” automatically pasted into whatever window you were using: your email, a chat box, a code editor, a document.

+

Everything happens on your computer. The audio never leaves the machine; transcription runs locally using whisper.cpp, a compact build of OpenAI's Whisper model. That means it works on a plane, behind a firewall, or anywhere with no internet at all.

+
+

Built for modest hardware

+

This build is tuned for an ordinary CPU-only laptop โ€” the kind with two physical cores and no graphics card. It uses a fast, lightweight model by default and keeps your processor nearly idle while you speak, only working hard for a brief moment after you stop.

+
+
+ + +
+
02

Quick start in 60 seconds

+

Three steps. No setup, no sign-in.

+
    +
  1. +

    Launch win-dictation.exe

    +

    The window opens and a microphone icon appears in your system tray. Wait a moment for the status line to change from โ€œLoading modelโ€ฆโ€ to โ€œReadyโ€.

    +
  2. +
  3. +

    Click into wherever you want the text, then press Ctrl+Shift+Space

    +

    Put your cursor in the email, chat box, or document first. Then hit the hotkey. The Record button turns red and a green level meter shows itโ€™s hearing you.

    +
  4. +
  5. +

    Speak, then press the hotkey again

    +

    Talk naturally. When youโ€™re done, press Ctrl+Shift+Space once more. A short progress bar runs, and your words appear โ€” pasted straight into the app you were using.

    +
  6. +
+
+

That's the whole loop

+

Press to start, speak, press to finish. The text is on your clipboard and dropped into your previous window. You never have to click back into Win Dictation.

+
+
+ + +
+
03

The interface, explained

+

The whole app is a single window. Here is every control on it.

+ +
+
+
Dictationโ€” โ–ข โœ•
+
+
+
Record1
+
2
+
3
+
+
Ready  โ€ข  2 threads4
+
Win-dictate is a desktop, whisper powered, speech to text application!5
+
+
Microphone (Realtek Audio)โŒ„6
+
HistoryโŒ„7
+
+
CopyPasteClear8
+
+
+
+ +
+
1Record / StopThe big pill. Click to start; it turns red and reads โ€œStopโ€ while recording. Same as the hotkey.
+
2PinKeeps the window always on top. Blue when active. On by default.
+
3Settings (cog)Opens the Settings screen for choosing and downloading models, and viewing your stats.
+
4Status lineShows โ€œReadyโ€ and the thread count when idle, a timer while recording, and a live countdown while transcribing.
+
5Transcript boxWhere text appears. You can edit it freely โ€” click in and type, fix, or delete.
+
6Microphone selectorChoose which input device to record from. Opens a dropdown of all your mics.
+
7HistoryOpens a list of past dictation sessions you can reload โ€” or delete individually.
+
8Copy ยท Paste ยท ClearCopy the transcript, paste it into your last window, or clear the box (saving it to history first).
+
+ +

The status line is your dashboard

+

That one line of dim text under the Record button tells you everything about the app's state:

+ + + + + + + + +
You seeIt means
Loading modelโ€ฆStarting up โ€” the speech model is being read into memory. Wait a second.
Ready ยท 2 threadsIdle and ready to record. The number is how many CPU threads it will use.
Recording 0:14Listening. The timer counts how long you've been speaking. A green level meter pulses with your voice.
Transcribing 0:14 ยท 62% ยท 3s leftWorking on your audio. The bar fills and the countdown ticks down to zero.
Pasted / CopiedDone. Your text went to the clipboard (and into your previous window if auto-paste is on).
No speech detectedThe clip was silent or too short to transcribe. Nothing was added.
+
+ + +
+
04

How dictation works

+

Win Dictation is push-to-talk, not live streaming. You record a whole clip, then it transcribes the whole thing at once.

+

This is a deliberate design choice. Instead of trying to transcribe word-by-word as you speak (which pins a CPU at 100% and stutters on a modest laptop), Win Dictation simply records your audio cheaply while you talk, then does one fast transcription pass the moment you stop. The result is calmer, more accurate, and far lighter on your battery.

+ +

What happens when you record

+
    +
  1. You press the hotkey. The app remembers which window you were in, and where your text cursor was sitting inside the transcript box.
  2. +
  3. It records. Audio is captured at 16 kHz and held in memory. CPU use stays near zero. The level meter shows it's hearing you.
  4. +
  5. You press the hotkey again. Recording stops. Silence at the start and end of your clip is trimmed away automatically.
  6. +
  7. It transcribes. The full clip is run through Whisper once. The progress bar shows a smooth, self-calibrating estimate of how long it will take.
  8. +
  9. The text lands. It's inserted at your cursor (with smart spacing so words don't run together), copied to the clipboard, and pasted into your previous window.
  10. +
+ +
+

There is no โ€œstop on silenceโ€

+

Recording continues until you press the hotkey again (or click Stop). Pausing to think won't end the session โ€” take your time. The only automatic stop is a safety cap at 10 minutes per clip.

+
+ +

The transcript box is editable

+

Unlike many dictation tools, the text area is fully editable. Click anywhere in it to fix a misheard word, delete a stray sentence, or type manually. When you dictate again, the new text is inserted at your cursor โ€” so you can build up a document piece by piece, placing each new chunk exactly where you want it.

+
+ + +
+
05

Keyboard & hotkeys

+

Two global shortcuts work from anywhere in Windows, even when the window is hidden.

+
Ctrl+Shift+Space
Start / stop recording. The core hotkey. Press once to begin, once more to transcribe. If a transcription is already running, pressing it again cancels it.
+
Ctrl+Shift+H
Hide the window. Tucks Win Dictation away to the tray (and cancels any recording in progress). The hotkeys still work while hidden.
+
Esc (in a dropdown)
Closes an open Microphone or History popup without choosing anything.
+
Delete (in History)
Deletes the history entry you're hovering over.
+
+

If the hotkey doesn't work

+

You may see Hotkey in use โ€” edit win-dictation.ini. That means another program already grabbed Ctrl+Shift+Space. You can change it by editing the hkMods and hkVk values in the win-dictation.ini file (see the FAQ).

+
+
+ + +
+
06

Auto-paste & the active window

+

The feature that makes Win Dictation feel invisible: it types into other apps for you.

+

When you trigger recording, the app notes which window had focus a moment before. After transcription, if Auto-paste is enabled (it is by default), it brings that window back to the front and pastes your text there automatically. You dictate, and the words appear in your email โ€” you never touch Win Dictation's own window.

+

If you'd rather paste manually, turn auto-paste off in the tray menu. The text is always still copied to your clipboard, and the Paste button will send it to your last window on demand.

+
+

Pair it with Auto-hide

+

Turn on Auto-hide (tray menu) and the window disappears the instant it pastes. Combined with the global hotkey, dictation becomes a pure overlay: tap, speak, tap, and your words flow into whatever you're doing.

+
+
+ + +
+
07

History & sessions

+

Every dictation session is saved automatically, so you never lose a transcript.

+

A session is everything you dictate between clears. As soon as you finish your first clip, Win Dictation writes it to a timestamped text file. Each additional clip in that session updates the same file โ€” so one session is one tidy file, kept up to date as you go.

+ +

Browsing and reloading

+

Click the History selector to open the list. Each entry shows its date, time, and a short preview of the text. Click one to load it back into the transcript box. The most recent sessions are at the top, and up to 100 sessions are kept (older ones are pruned automatically).

+ +

Deleting entries

+

Hover over any history row and a small โœ• appears on its right edge โ€” click it to delete that session's file. You can also press Delete on the hovered row. The list stays open after each delete so you can tidy up several at once. The window even shrinks to fit as the list gets shorter.

+
+

Deletion is permanent

+

Removing a history entry deletes its text file from disk immediately โ€” there is no confirmation prompt and no undo. The files themselves live in a history\ folder next to the program, if you ever want to back them up.

+
+
+ + +
+
08

Models & the Settings screen

+

A model is the AI that turns sound into words. Bigger models are more accurate but slower. Click the cog to manage them.

+

The Settings screen lists every model Win Dictation can use. Each row shows the model's name, file size, and a short hint. Installed models have a filled radio button you can select; ones you don't have yet show a Download button that fetches them directly from Hugging Face with a live progress percentage.

+ + + + + + + + + +
ModelSizeCharacter
tiny.en~75 MBThe default. Quick and light โ€” ideal for this CPU.fastest
tiny.en-q8_0~42 MBSame speed, smaller file (compressed).fastest
base.en-q5_1~59 MBA noticeable accuracy bump for little cost.good balance
base.en~142 MBMore accurate; still reasonable on two cores.balance
small.en-q5_1~182 MBAccurate, but slow on this machine.slow here
small.en~466 MBThe most accurate offered โ€” and the slowest.slowest
+ +

Choosing a model

+
    +
  1. Open Settings (the cog), and find the model you want.
  2. +
  3. If it isn't installed, click Download and wait for it to reach 100%. You can cancel mid-download, and only one downloads at a time.
  4. +
  5. Click the model's row to select it (the dot fills in).
  6. +
  7. Click Save. The app reloads with the new model and remembers your choice. Back or Cancel discards any change.
  8. +
+
+

A good rule of thumb

+

Stick with tiny.en or base.en-q5_1 for everyday use on a two-core laptop. Step up to base.en if you want better accuracy and don't mind waiting a beat longer. The small models are best reserved for short, important clips where accuracy matters most.

+
+ +

The progress bar learns your machine

+

You'll notice the transcription countdown is unusually accurate. That's because Win Dictation measures how fast your specific computer is with each model and remembers it. The more you use a model, the better its time estimates become โ€” the bar counts steadily down rather than jumping around.

+
+ + +
+
09

System tray & options

+

Win Dictation lives in the tray. Right-click its icon for the quick options menu.

+
+

Auto-paste

Paste transcribed text into your previous window automatically. On by default.

+

Always on top

Keep the window above other apps. Mirrors the Pin button. On by default.

+

Auto-hide

Hide the window automatically right after it pastes. Off by default.

+

Exit

Fully quits the app. Closing the window only hides it to the tray โ€” use this to stop it entirely.

+
+

Double-clicking the tray icon brings the window back. Closing the window with the โœ• doesn't quit โ€” it just hides, so the hotkey keeps working in the background. Your window position, pinned state, and these toggles are all remembered between launches.

+
+ + +
+
10

Your statistics

+

Scroll down in Settings to see a running tally of your dictation habits.

+

Win Dictation quietly keeps lifetime totals and turns them into friendly figures:

+
    +
  • Total audio dictated and the number of clips.
  • +
  • Word count, plus your average speaking pace in words per minute.
  • +
  • Total processing time and your machine's real-time factor (e.g. โ€œ4ร— real-timeโ€ means it transcribes four seconds of audio every second).
  • +
  • Your longest single clip.
  • +
  • An estimate of the time you've saved versus typing at 40 wpm.
  • +
+

These numbers are stored locally and are just for your own curiosity โ€” nothing is reported anywhere.

+
+ + +
+
11

Tips for best results

+
+

Click first, then dictate

Put your text cursor in the destination app before pressing the hotkey, so auto-paste knows where to send the words.

+

Speak in natural phrases

Whisper transcribes best with full sentences and natural rhythm. You don't need to over-enunciate or pause between words.

+

Pick the right mic

If accuracy is poor, check the Microphone selector โ€” a headset or dedicated mic beats a distant laptop mic in a noisy room.

+

Match model to task

Quick chat replies? tiny.en. A careful paragraph of prose? Try base.en for fewer corrections.

+

Edit in place

Fix the odd misheard word right in the transcript box, then Copy โ€” faster than re-recording the whole thing.

+

Let it warm up

The very first transcription after launch can be a touch slower as the model settles into memory. It's quick from then on.

+
+
+ + +
+
12

Troubleshooting

+ + + + + + + + + +
SymptomWhat to do
โ€œModel not foundโ€The selected .bin model file is missing. Open Settings and download a model (start with tiny.en), or place a .bin file in the models\ folder next to the program and restart.
โ€œHotkey in useโ€Another app owns Ctrl+Shift+Space. Change the hotkey in win-dictation.ini, or close the conflicting app. You can still record by clicking the Record button.
โ€œMicrophone errorโ€The chosen input device couldn't be opened. Pick a different mic from the selector, make sure it isn't in use by another app, and check Windows mic permissions.
โ€œNo speech detectedโ€The clip was silent, too quiet, or under ~0.3 seconds. Check the level meter moves when you talk, and confirm the right mic is selected.
Text pasted into the wrong placeAuto-paste targets whatever window was focused just before you pressed the hotkey. Click into your destination first. If in doubt, turn auto-paste off and use the Paste button deliberately.
Transcription feels slowYou're likely on a larger model. Switch to tiny.en or base.en-q5_1 in Settings. The small models are inherently slow on a two-core CPU.
Window vanishedIt hid to the tray. Double-click the tray icon, press Ctrl+Shift+H, or right-click the tray icon โ†’ Show Window.
+
+ + +
+
13

FAQ & where things live

+ +

Does my voice get sent anywhere?

+

No. All recording and transcription happen on your computer. The only time the app reaches the internet is when you click Download to fetch a model file.

+ +

Can it run completely offline?

+

Yes โ€” once you have at least one model installed, no internet is needed ever again.

+ +

What languages does it support?

+

This build is tuned for English (the .en models). It's optimised for accuracy and speed in English on modest hardware.

+ +

Where are my files kept?

+

Everything sits next to win-dictation.exe:

+ + + + + + +
LocationWhat's there
models\Your downloaded .bin speech models.
history\One text file per dictation session.
win-dictation.iniYour settings, hotkey, window position, learned timing, and statistics.
win-dictation.logA simple timestamped activity log, handy if something misbehaves.
+ +

How do I change the hotkey?

+

Open win-dictation.ini in any text editor and edit the hkMods and hkVk values under [app] (they're standard Windows key codes), then restart the app. A built-in settings option for this is a natural future addition.

+ +

Why is it called โ€œpush-to-talkโ€ if I'm not holding a button?

+

It's toggle-style push-to-talk: one press starts, another stops. You're not transcribing live as you speak โ€” you capture a clip, then it's processed. This is what keeps it fast and light on a CPU-only machine.

+ + +
+ +
+ + + + +