diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..f01e90f
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,21 @@
+# Keep the gateway build context small and web/node artifacts out of the image.
+web/
+**/node_modules
+.next
+.git
+.github
+.gitea
+.venv
+**/__pycache__
+*.pyc
+*.egg-info
+.pytest_cache
+.ruff_cache
+tests/
+*.db
+.env
+.env.*
+!.env.example
+_boot*
+DESIGN.md
+docs/
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ea5d8aa
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+__pycache__/
+*.py[cod]
+jrich-wakeword-runs/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..5779131
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,232 @@
+GNU GENERAL PUBLIC LICENSE
+Version 3, 29 June 2007
+
+Copyright © 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.
+
+ project-template
+ Copyright (C) 2026 westtexasfish
+
+ 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:
+
+ project-template Copyright (C) 2026 westtexasfish
+ 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/README.md b/README.md
index ae34879..a7c28bb 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,162 @@
-# jrich-wakeword-trainer
+# JRich Wakeword Trainer
-Downloadable LiveKit WakeWord training launcher and pinned container runtime for JR-Gateway
\ No newline at end of file
+This download trains English multi-word LiveKit WakeWord classifiers on your NVIDIA GPU. Download
+the current Linux or Windows/WSL2 archive from the JR-Gateway **Wakewords** page or from the
+[public trainer releases](https://git.jimandkrista.com/jr-public/jrich-wakeword-trainer/releases).
+The ML environment runs in a pinned Docker image; the host launcher uses only Python's standard
+library.
+No microphone audio, API credential, Docker socket, or network service enters the training
+container.
+
+## Host requirements
+
+- Linux with Python 3.11 or newer;
+- Docker Engine accessible to your user;
+- an NVIDIA GPU, compatible driver, and NVIDIA Container Toolkit;
+- 32 GB RAM and eight CPU cores recommended; and
+- at least 40 GiB free for the first experiment. The reusable LiveKit assets currently occupy
+ about 17 GB.
+
+Windows is supported through WSL2, not as a native Windows CUDA application. Use the `.zip`
+download and run `start-windows.ps1`; it copies the small launcher into your Ubuntu WSL2 filesystem
+and starts the same Linux wizard. Install the current NVIDIA Windows driver, enable WSL2, and make
+Docker with NVIDIA GPU access available inside WSL2; do not install a second Linux NVIDIA display
+driver in WSL.
+
+An exclusive GPU with at least 12 GB VRAM is the friendly recommendation. The measured default uses
+Piper batch 10 and can coexist more safely on a 24 GB RTX 3090, but other GPU processes still reduce
+the available margin.
+
+## Start the trainer
+
+On Linux, extract the `.tar.gz` and run:
+
+```bash
+./start.sh
+```
+
+On Windows, extract the `.zip`, right-click `start-windows.ps1`, and choose **Run with PowerShell**.
+The script verifies WSL2 is available, copies the launcher into your WSL home, and starts it there.
+
+The launcher automatically pulls this exact public runtime when it is absent:
+
+```text
+git.jimandkrista.com/jr-public/jrich-wakeword-training@sha256:cef5b1e769a6160bbde69f67df76f0b865f02c27794a3da096398c18cc9a3c2f
+```
+
+It verifies the registry manifest digest, resolves it to an immutable local image ID, and only then
+creates the request. No Gitea account or registry login is required. To build the same image locally
+instead, run:
+
+From the extracted archive:
+
+```bash
+scripts/build-wakeword-training-image jr-wakeword-training:0.2.1-jrich-2
+```
+
+The build is the only dependency-installing step. It verifies the reviewed dependency hashes and
+bundles LiveKit WakeWord 0.2.1, PyTorch/TorchAudio 2.7.1 CUDA 12.6, ONNX export, and offline
+pronunciation data.
+
+## Interactive training
+
+```bash
+scripts/jrich-wakeword-trainer
+```
+
+The wizard asks for spoken phrases, near misses, and labels, shows the complete resolved request, checks Docker,
+the selected GPU, and free disk, then downloads/cache-populates the LiveKit assets. Actual training
+runs with `--network none`. Progress is streamed to the terminal and every attempt is retained under
+`./jrich-wakeword-runs/runs/`.
+
+On a shared GPU, explicitly acknowledge the coexistence trade-off:
+
+```bash
+scripts/jrich-wakeword-trainer --allow-active-gpu-processes
+```
+
+The runner never stops other GPU processes. Without that option it fails closed when another
+compute process is active.
+
+The setup cache is inventoried by relative path, byte size, and SHA-256 after setup. The final
+content-addressed source lock—not its location—is part of the immutable training request, and the
+offline container verifies the complete inventory again before it starts a LiveKit stage. Moving an
+unchanged cache preserves its identity; changing, adding, or removing a file does not.
+
+## Automated and overrideable use
+
+Every prompt has a flag equivalent. This produces a resolved plan without Docker or training when
+the immutable image ID and GPU UUID are supplied:
+
+```bash
+scripts/jrich-wakeword-trainer \
+ --non-interactive --plan \
+ --phrase "Hey Jay Rich" \
+ --phrase "Yo Jay Rich" \
+ --near-miss "Jay Rich" \
+ --model-name jrich --family-slug jrich \
+ --image-ref sha256: \
+ --gpu-uuid GPU-
+```
+
+Use `--pipeline-config overrides.json` for a validated deep override of built-in fields. Precedence
+is measured built-in profile, then the JSON override. Unknown keys fail rather than being silently
+ignored. Useful overrides include:
+
+```json
+{
+ "tts_batch_size": 4,
+ "model": {"model_size": "small"},
+ "steps": 30000,
+ "threshold": 0.62
+}
+```
+
+The generic default threshold is `"auto"`, which records LiveKit's held-out calibrated operating
+point. A manual threshold override should be justified by frozen per-phrase and negative evaluation,
+not microphone observations used repeatedly for tuning.
+
+Use `--skip-setup` after the versioned cache is populated. Use `--cache-dir` and `--work-root` to put
+large data on another disk.
+
+Use `--setup-only` with at least one `--phrase` to populate the cache without starting training.
+It prints the canonical source-lock digest required by the API worker.
+
+To revisit a completed local experiment, pass `--reuse-from ` with the same phrases,
+sources, image, and model name, then increase sample counts and/or adjust training settings in the
+override file. This creates a new immutable attempt, copies only the prior generated corpus, rebuilds
+augmentation/features, and trains from scratch. It is deliberately called corpus reuse—not exact
+checkpoint resume or PT warm start.
+
+A failed, canceled, or timed-out attempt may also be a reuse source when its generation stage
+finished and its per-file stage hashes still match. An identical terminal request can be retried as
+a new immutable attempt with `--retry-of `. Inspect and control a foreground/background
+attempt from another terminal with:
+
+```bash
+scripts/jrich-wakeword-trainer --status
+scripts/jrich-wakeword-trainer --logs
+scripts/jrich-wakeword-trainer --cancel
+```
+
+Cancellation writes an attempt-scoped marker; the owning runner observes it and stops only its own
+deterministically named container. Failed, canceled, and timed-out attempts return a nonzero process
+exit code, which is also the contract a future API worker can trust.
+
+## Results and privacy
+
+A successful Local Training Experiment ends in `completed`, not in a catalog publication state. Its
+attempt directory contains:
+
+- `exports/-public.tar.gz`: ONNX, manifest, evaluation, license/notices, and checksums for clients;
+- `output/*.pt`, feature arrays, generated/augmented audio, and metrics: private retraining material;
+- `training-result.json`: hashes and a compact private-artifact inventory;
+- resolved request/configuration, logs, resource evidence, stage evidence, and checksums.
+
+The final PT contains model weights, not a complete optimizer/RNG checkpoint. It supports safe
+re-export and a future explicit warm start, but not exact interrupted-training resume. Do not share
+the private run directory unless you intend to share its generated/training data and provenance.
+
+The future authenticated training API will submit the same versioned Wakeword Training Request to
+the same runner. API ownership, quota, leases, cancellation authorization, object storage, and
+publication remain server-side concerns rather than alternate ML behavior.
diff --git a/RELEASE.json b/RELEASE.json
new file mode 100644
index 0000000..ab37c57
--- /dev/null
+++ b/RELEASE.json
@@ -0,0 +1,14 @@
+{
+ "release": "0.2.1-jrich-2",
+ "requirements": {
+ "minimum_free_bytes": 42949672960,
+ "recommended_cpu_cores": 8,
+ "recommended_gpu_vram_bytes": 12884901888,
+ "recommended_memory_bytes": 34359738368
+ },
+ "runtime": {
+ "image": "git.jimandkrista.com/jr-public/jrich-wakeword-training@sha256:cef5b1e769a6160bbde69f67df76f0b865f02c27794a3da096398c18cc9a3c2f",
+ "platform": "linux/amd64"
+ },
+ "schema_version": 1
+}
diff --git a/SHA256SUMS b/SHA256SUMS
new file mode 100644
index 0000000..af8b365
--- /dev/null
+++ b/SHA256SUMS
@@ -0,0 +1,28 @@
+aa09140e141b4e2901ec5a734ee512102abe8d5ac7c13a8292f24839886c9636 .dockerignore
+04c1bfb6d817ff1dd096950a52a93d31faf0105d34685e56958f17722a39e1b1 LICENSE
+fa985bab447aaa7bf2dfe5d11e3d51d50f85018376c44e5497450b71d064173f README.md
+34944d524fd3d12ee2dad5dbbf80d162d916c1726850211c5c73bf94ee83a1d8 RELEASE.json
+5327deebabd5500e481e0734d2d1262a706718ed257c68ace6e51ed81c8583d9 THIRD_PARTY_NOTICES.md
+4f517a9fd049cc5ba11f3b85eff9d2f0af5cc43ff859c3fc9cb3e8273ac54eb3 deploy/wakeword-training/Dockerfile
+f38d7c053cee67b2ffff9736e2cc6ec1ca361941889069afac0597c2fb5245eb deploy/wakeword-training/README.md
+5327deebabd5500e481e0734d2d1262a706718ed257c68ace6e51ed81c8583d9 deploy/wakeword-training/THIRD_PARTY_NOTICES.md
+7da440937b2c123508136e8cea0576449bc0dad7957abb4d7878e604d2299981 deploy/wakeword-training/base-image.lock.json
+719abd594c0c3f5e54d7c49a3647d4ebc7e190c12c0196ea358c9a8bfc0be223 deploy/wakeword-training/finalize-run.py
+c892829293064b79261f7e2dbe656d1d4993f412c5bbd11df2b6e42f2433f362 deploy/wakeword-training/presets/manual-poc-v1.json
+be2ac0a7e82ecdd838e9ed87db49562a1f839e252bf8f9ca2fb121d0a77af3bb deploy/wakeword-training/record-image-provenance.py
+3091b0cd786320c3a5f18232d95b39890bd348e985ba69164dee0db2acd94779 deploy/wakeword-training/requirements.in
+2c46484852bc5773a66d165b252ef08463ef1ff62e4591641ffb54783f8138e0 deploy/wakeword-training/requirements.wheelhouse.lock
+2656c4c69e93ccc3e4b2dc48cf6ef00702d7daaf0d940c7cf429274df1905b18 deploy/wakeword-training/run-commercial-pipeline.py
+5183f5ef1f293427b3f3b2c4108b07ec972ddb769cf518a1033c484f59433f81 deploy/wakeword-training/run-local-experiment.py
+956eeb774d4dcf9490c0257ba1c9fef031606737a1d680f1c5ff4cd6861d1e0d deploy/wakeword-training/run-quarantined-smoke.py
+573107a0027cfd77244f60326b3d266170c6f7655bc881999859550be06004b9 deploy/wakeword-training/source-lock.schema.json
+dd9be3e3fd1beeb177c9c21bb862c9bbebfa94a552e30f714be984a1080caf63 deploy/wakeword-training/stage_evidence.py
+7316fc52ebdcd21dd9ef610cabaa465824330f8b3f79a881eff0e81fb3a6b402 deploy/wakeword-training/training-request-v1.schema.json
+8fdf2177ba14d8c86a3a85b453d05b67d68172f924daa0203d40132f7efce11b scripts/build-wakeword-training-image
+6f81326d4393582457d50f90024afb8607b048e8cae1bf596c1e2fdf6ba12fd1 scripts/jrich-wakeword-trainer
+a9525de2a4118f9da51a9cb67c53700c5439f8d3cd0507115c1968b529b4a319 scripts/run-wakeword-training
+299f8d0e177ef05a5718b09bc86a3fa04c018b6dfe02df61cf7167b2981bed9f scripts/wakeword_trainer.py
+e4aa3a54267ccd159fa599e5e4a6d001f70971384455a7a0b2255be3ae5aafdd scripts/wakeword_training.py
+c736dea62a81e13405d1ca6a2447246a9f334732f1e49748a52da2e2e0dc8466 scripts/wakeword_training_image.py
+61d10266d854f495b1b5f4b41e014ac5aa926437a6e1cbcc97abb1d99742d487 start-windows.ps1
+be2f3c33ca1ba3987180279e0f35eddbefeecdde363cbb6e2424b065fb53e401 start.sh
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
new file mode 100644
index 0000000..82f1a8e
--- /dev/null
+++ b/THIRD_PARTY_NOTICES.md
@@ -0,0 +1,15 @@
+# Third-party notices
+
+The training image integrates
+[LiveKit WakeWord 0.2.1](https://github.com/livekit/livekit-wakeword/tree/v0.2.1),
+licensed under Apache License 2.0. Its pinned source revision and source-distribution checksum are
+recorded in the image and every run's provenance.
+
+The image also contains the exact Python and OS packages recorded in
+`requirements.wheelhouse.lock`, the pinned base-image lock, and per-run image provenance. Those
+components retain their own licenses.
+
+Training models, speech corpora, generated speech, background audio, room impulse responses, and
+general-negative feature datasets are separate works with separate terms. The downloadable source
+archive does not contain the approximately 17 GB LiveKit setup cache and does not grant rights to
+redistribute any downloaded or generated training data.
diff --git a/deploy/wakeword-training/Dockerfile b/deploy/wakeword-training/Dockerfile
new file mode 100644
index 0000000..002f3e4
--- /dev/null
+++ b/deploy/wakeword-training/Dockerfile
@@ -0,0 +1,48 @@
+# The matching lock records the tag provenance, platform, Python, PyTorch,
+# CUDA, and cuDNN compatibility. Never replace this with a mutable tag.
+ARG BASE_IMAGE=docker.io/pytorch/pytorch@sha256:639b8229ccfd8a3aa803cf49c33d6d6fe406750d79aaf723fe8c0eb1060d8cff
+FROM ${BASE_IMAGE}
+
+ARG BASE_IMAGE
+ARG PYTHON_VERSION=3.11
+LABEL org.opencontainers.image.title="jr-wakeword-training" \
+ org.opencontainers.image.description="Offline LiveKit WakeWord 0.2.1 training lane" \
+ org.opencontainers.image.source="https://github.com/livekit/livekit-wakeword" \
+ org.opencontainers.image.revision="1ec7f680df30ff4ca0ebae6b5983441e94b10980" \
+ org.opencontainers.image.version="0.2.1"
+
+ENV PYTHONDONTWRITEBYTECODE=1 \
+ PYTHONUNBUFFERED=1 \
+ PIP_NO_CACHE_DIR=1 \
+ PIP_DISABLE_PIP_VERSION_CHECK=1 \
+ NLTK_DATA=/usr/local/share/nltk_data
+
+RUN case "${BASE_IMAGE}" in *@sha256:*) ;; *) echo "BASE_IMAGE must be digest-pinned" >&2; exit 64;; esac \
+ && apt-get update \
+ && apt-get install -y --no-install-recommends espeak-ng libsndfile1 ffmpeg sox time \
+ && rm -rf /var/lib/apt/lists/* \
+ && python -c "import sys; assert sys.version_info[:2] == (${PYTHON_VERSION%.*}, ${PYTHON_VERSION#*.})"
+
+WORKDIR /opt/jr-wakeword
+
+# The complete hash lock is generated with uv and reviewed in source control.
+# Network access is permitted only at image build time; a launched training
+# container is network-isolated and never resolves or installs dependencies.
+COPY deploy/wakeword-training/requirements.wheelhouse.lock ./requirements.wheelhouse.lock
+RUN python -m pip install --require-hashes -r requirements.wheelhouse.lock \
+ && python -c "from importlib.metadata import version; assert version('livekit-wakeword') == '0.2.1'; assert version('torch') == version('torchaudio')" \
+ && python -c "import nltk; assert nltk.download('cmudict', download_dir='/usr/local/share/nltk_data', quiet=True, raise_on_error=True)"
+
+COPY scripts/wakeword_training_image.py ./wakeword_training_image.py
+COPY deploy/wakeword-training/run-commercial-pipeline.py ./run-commercial-pipeline.py
+COPY deploy/wakeword-training/run-local-experiment.py ./run-local-experiment.py
+COPY deploy/wakeword-training/run-quarantined-smoke.py ./run-quarantined-smoke.py
+COPY deploy/wakeword-training/stage_evidence.py ./stage_evidence.py
+COPY deploy/wakeword-training/record-image-provenance.py ./record-image-provenance.py
+COPY deploy/wakeword-training/finalize-run.py ./finalize-run.py
+
+# Do not add listener extras, microphone SDK packages, gateway source, gateway credentials,
+# Docker socket access, or published ports in this one-shot image.
+# DockerTrainingExecutor supplies the explicit commercial/quarantined wrapper
+# as argv. CMD keeps that argv from being appended to a fixed ENTRYPOINT.
+CMD ["python", "/opt/jr-wakeword/run-commercial-pipeline.py", "/run/resolved-config.yaml"]
diff --git a/deploy/wakeword-training/README.md b/deploy/wakeword-training/README.md
new file mode 100644
index 0000000..335a1da
--- /dev/null
+++ b/deploy/wakeword-training/README.md
@@ -0,0 +1,61 @@
+# Wakeword Training Image
+
+This directory packages the one-shot, GPU-only image used by both the offline
+operator runner and downloadable local trainer. It is not part of `compose.yaml`,
+exposes no port, and contains no gateway credentials or listener dependencies.
+
+The image uses LiveKit WakeWord `0.2.1`, source revision
+`1ec7f680df30ff4ca0ebae6b5983441e94b10980`, and source-distribution SHA-256
+`cf2d9cf4867812c06788f64c15e49abd909d9d6291f0a13f1c3f9cb649fa6127`.
+
+The gateway's `.env` deliberately contains only `WAKEWORD_CATALOG_*` settings.
+Do not add runner GPU, image, work-root, timeout, or retention values to it: the
+host-only runner receives those as explicit invocation inputs and refuses to run
+without `--enable`. This directory is neither a Compose service nor normal CI input.
+
+Before an operator builds it, run:
+
+```bash
+scripts/build-wakeword-training-image \
+ registry.example/jr-wakeword-training:0.2.1
+```
+
+The command builds from the reviewed, complete
+`requirements.wheelhouse.lock` with SHA-256 hashes; it never rewrites that lock.
+Refresh the lock only in a separate reviewed dependency-update change, then
+commit it before building a release image. It becomes part of each run's
+provenance. The pinned base image is in `base-image.lock.json`; the image build
+may install the reviewed dependencies, but a training container runs with
+`--network none`. Do not run this setup during normal gateway CI.
+
+The runtime is designed for `--network none`, a read-only `/inputs` bind mount,
+a writable `/run` bind mount, a read-only container root, and no Linux
+capabilities. A commercial run validates `sources.lock.json`, rejects default
+ACAV, unknown-license RIR mirrors, and unapproved Piper/VoxCPM outputs, copies
+only hash-locked files into `/run`, then invokes the released CLI's `augment`,
+`train`, `export`, and `eval` stages. It never calls `livekit-wakeword setup`
+or `generate` in the commercial lane.
+
+For compatibility with the released CLI only, source-lock-approved
+general-negative feature bundles are copied to its fixed ACAV/validation
+filenames beneath the isolated staging directory. The recorded source lock and
+materialization manifest retain their real source IDs and hashes; no ACAV data
+is admitted or downloaded.
+
+`quarantined_smoke` is a separately named wrapper and stays permanently
+non-promotable. It may exercise the upstream `run` command only after its
+operator has separately prepared test data; network isolation still prevents
+an implicit setup/download in the run container.
+
+`local_experiment` is the downloadable-trainer lane. A separate, explicit setup
+container may populate the user's versioned LiveKit cache with normal network
+access. The training container then runs the released `generate`, `augment`,
+`train`, `export`, and `eval` stages with `--network none`. It produces a local
+result, never `publish-candidate.json`. See
+[`docs/wakeword-trainer.md`](../../docs/wakeword-trainer.md).
+
+The source-lock format is documented by `source-lock.schema.json`; runtime
+validation additionally verifies every source/terms hash, publisher, version,
+revision, attribution, commercial disposition, approver, and partition. Raw
+inputs and features remain in `/run` evidence only and are never serving
+artifacts.
diff --git a/deploy/wakeword-training/THIRD_PARTY_NOTICES.md b/deploy/wakeword-training/THIRD_PARTY_NOTICES.md
new file mode 100644
index 0000000..82f1a8e
--- /dev/null
+++ b/deploy/wakeword-training/THIRD_PARTY_NOTICES.md
@@ -0,0 +1,15 @@
+# Third-party notices
+
+The training image integrates
+[LiveKit WakeWord 0.2.1](https://github.com/livekit/livekit-wakeword/tree/v0.2.1),
+licensed under Apache License 2.0. Its pinned source revision and source-distribution checksum are
+recorded in the image and every run's provenance.
+
+The image also contains the exact Python and OS packages recorded in
+`requirements.wheelhouse.lock`, the pinned base-image lock, and per-run image provenance. Those
+components retain their own licenses.
+
+Training models, speech corpora, generated speech, background audio, room impulse responses, and
+general-negative feature datasets are separate works with separate terms. The downloadable source
+archive does not contain the approximately 17 GB LiveKit setup cache and does not grant rights to
+redistribute any downloaded or generated training data.
diff --git a/deploy/wakeword-training/base-image.lock.json b/deploy/wakeword-training/base-image.lock.json
new file mode 100644
index 0000000..26069b8
--- /dev/null
+++ b/deploy/wakeword-training/base-image.lock.json
@@ -0,0 +1,10 @@
+{
+ "schema_version": 1,
+ "image": "docker.io/pytorch/pytorch@sha256:639b8229ccfd8a3aa803cf49c33d6d6fe406750d79aaf723fe8c0eb1060d8cff",
+ "source_tag": "pytorch/pytorch:2.7.1-cuda12.6-cudnn9-devel",
+ "platform": "linux/amd64",
+ "python": "3.11",
+ "pytorch": "2.7.1+cu126",
+ "cuda": "12.6",
+ "cudnn": "9"
+}
diff --git a/deploy/wakeword-training/finalize-run.py b/deploy/wakeword-training/finalize-run.py
new file mode 100644
index 0000000..4c9d6e5
--- /dev/null
+++ b/deploy/wakeword-training/finalize-run.py
@@ -0,0 +1,219 @@
+"""Seal upstream outputs into the runner/catalog evidence contract."""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import shutil
+import sys
+from pathlib import Path
+from typing import Any
+
+RUN_DIR = Path("/run")
+REQUIRED_EVALUATION = (
+ "phrase_duration_evidence",
+ "release_negative_hours",
+ "release_false_activations",
+ "speaker_macro_recall",
+ "p95_detection_latency_ms",
+)
+
+
+def _sha256(path: Path) -> str:
+ return hashlib.sha256(path.read_bytes()).hexdigest()
+
+
+def _load(path: Path) -> dict[str, Any]:
+ value = json.loads(path.read_text(encoding="utf-8"))
+ if not isinstance(value, dict):
+ raise ValueError(f"{path.name} must be a JSON object")
+ return value
+
+
+def _canonical(value: dict[str, Any]) -> bytes:
+ return json.dumps(value, sort_keys=True, separators=(",", ":")).encode("utf-8")
+
+
+def _validate_onnx(path: Path) -> None:
+ import onnx
+
+ model = onnx.load(path)
+ onnx.checker.check_model(model)
+ if not any(item.version == 18 for item in model.opset_import):
+ raise ValueError("classifier must use ONNX opset 18")
+ inputs = {item.name: item for item in model.graph.input}
+ outputs = {item.name for item in model.graph.output}
+ embeddings = inputs.get("embeddings")
+ if embeddings is None or "score" not in outputs:
+ raise ValueError("classifier must expose embeddings input and score output")
+ dimensions = embeddings.type.tensor_type.shape.dim
+ if embeddings.type.tensor_type.elem_type != onnx.TensorProto.FLOAT or [
+ item.dim_value for item in dimensions[-2:]
+ ] != [16, 96]:
+ raise ValueError("classifier must accept FP32 (batch,16,96) embeddings")
+
+
+def _upstream_eval(output_dir: Path) -> dict[str, Any] | None:
+ candidates = sorted(output_dir.rglob("*_eval.json"))
+ if len(candidates) != 1:
+ return None
+ return _load(candidates[0])
+
+
+def _evaluation(
+ run_kind: str, primary_phrase: str, variants: list[str], output_dir: Path
+) -> dict[str, Any]:
+ if run_kind == "commercial":
+ value = _load(RUN_DIR / "release-evaluation.json")
+ if any(key not in value for key in REQUIRED_EVALUATION):
+ raise ValueError("release-evaluation.json is incomplete")
+ phrases = [primary_phrase, *variants]
+ durations = value["phrase_duration_evidence"]
+ if not isinstance(durations, dict) or any(
+ phrase not in durations
+ or not isinstance(durations[phrase], list)
+ or not durations[phrase]
+ or any(
+ not isinstance(item, (int, float)) or not 0 < item <= 1.8
+ for item in durations[phrase]
+ )
+ for phrase in phrases
+ ):
+ raise ValueError("phrase duration evidence is incomplete or exceeds 1.80 seconds")
+ return {**value, "schema_version": 1}
+ result = {
+ "schema_version": 1,
+ "phrase_duration_evidence": {phrase: [1.0] for phrase in [primary_phrase, *variants]},
+ "release_negative_hours": 0.0,
+ "release_false_activations": 0,
+ "speaker_macro_recall": 0.0,
+ "p95_detection_latency_ms": 0.0,
+ "quarantined": run_kind == "quarantined_smoke",
+ }
+ upstream = _upstream_eval(output_dir)
+ if upstream is not None:
+ result["upstream_metrics"] = upstream
+ return result
+
+
+def _upstream_evaluation_artifacts(output_dir: Path, *, commercial: bool) -> list[dict[str, str]]:
+ """Record the raw artefacts emitted by LiveKit's ``eval`` stage.
+
+ The catalog consumes our compact JSON evidence, but keeping hashes of the
+ upstream output makes that evidence independently reviewable. We do not
+ copy or reinterpret the files: LiveKit keeps its native filenames and
+ format under the sealed output directory.
+ """
+
+ candidates = [
+ path
+ for path in output_dir.rglob("*")
+ if path.is_file()
+ and path.name not in {"manifest.json", "evaluation.json", "classifier.onnx"}
+ and ("eval" in path.name.lower() or "det" in path.name.lower())
+ ]
+ if commercial and not candidates:
+ raise ValueError("commercial output is missing an upstream LiveKit evaluation artifact")
+ return [
+ {
+ "path": path.relative_to(output_dir).as_posix(),
+ "sha256": _sha256(path),
+ }
+ for path in sorted(candidates)
+ ]
+
+
+def main(config_path: Path) -> int:
+ request = _load(RUN_DIR / "request.json")["request"]
+ if not isinstance(request, dict):
+ raise ValueError("request payload is invalid")
+ run_kind = str(request["run_kind"])
+ if run_kind not in {"commercial", "local_experiment", "quarantined_smoke"}:
+ raise ValueError("request run_kind is invalid")
+ config = _load(config_path)
+ family_slug = config.get("family_slug")
+ version = config.get("version")
+ threshold = config.get("threshold")
+ if (
+ not isinstance(family_slug, str)
+ or not isinstance(version, int)
+ or not (isinstance(threshold, (int, float)) or threshold == "auto")
+ ):
+ raise ValueError("effective config requires family_slug, version, and threshold")
+ raw_variants = request["variants"]
+ if not isinstance(raw_variants, list) or not all(
+ isinstance(item, str) for item in raw_variants
+ ):
+ raise ValueError("request variants are invalid")
+ variants = list(raw_variants)
+ primary_phrase = str(request["primary_phrase"])
+ output_dir = RUN_DIR / "output"
+ evaluation = _evaluation(run_kind, primary_phrase, variants, output_dir)
+ if threshold == "auto":
+ upstream_metrics = evaluation.get("upstream_metrics")
+ if not isinstance(upstream_metrics, dict) or not isinstance(
+ upstream_metrics.get("optimal_threshold"), (int, float)
+ ):
+ raise ValueError("automatic threshold requires one upstream evaluation result")
+ threshold = float(upstream_metrics["optimal_threshold"])
+ classifiers = [path for path in output_dir.rglob("*.onnx") if path.is_file()]
+ if len(classifiers) != 1:
+ raise ValueError("upstream output must contain exactly one ONNX classifier")
+ _validate_onnx(classifiers[0])
+ classifier = output_dir / "classifier.onnx"
+ if classifiers[0] != classifier:
+ shutil.copyfile(classifiers[0], classifier)
+ image = _load(RUN_DIR / "image-provenance.json")
+ source = _load(RUN_DIR / "sources.lock.json")
+ upstream_artifacts = _upstream_evaluation_artifacts(
+ output_dir, commercial=run_kind == "commercial"
+ )
+ evaluation["upstream_cli_artifacts"] = upstream_artifacts
+ publication_status = {
+ "commercial": "review_required",
+ "local_experiment": "local_only",
+ "quarantined_smoke": "quarantined",
+ }[run_kind]
+ evaluation["promotion"] = {
+ "eligible": False,
+ "status": publication_status,
+ }
+ manifest = {
+ "schema_version": 1,
+ "family_slug": family_slug,
+ "version": version,
+ "primary_phrase": primary_phrase,
+ "phrase_variants": variants,
+ "language": "en",
+ "threshold": float(threshold),
+ "debounce_ms": 2000,
+ "runtime_compatibility": {
+ "format": "onnx", "architecture": "conv_attention", "precision": "fp32", "opset": 18
+ },
+ "runner_provenance": {
+ "image_digest": request["runner_image_digest"],
+ "livekit_wakeword_version": "0.2.1",
+ "source_revision": "1ec7f680df30ff4ca0ebae6b5983441e94b10980",
+ "dependency_lock_sha256": image["dependency_lock"]["sha256"],
+ },
+ "source_provenance": {
+ "source_lock_sha256": _sha256(RUN_DIR / "sources.lock.json"),
+ "approved": run_kind == "commercial",
+ "inventory": [
+ item.get("source_id", item.get("id", "unidentified"))
+ for item in source.get("sources", [])
+ if isinstance(item, dict)
+ ],
+ },
+ "evaluation_summary": evaluation,
+ "artifacts": {"onnx_sha256": _sha256(classifier), "evaluation_sha256": ""},
+ }
+ evaluation_path = output_dir / "evaluation.json"
+ evaluation_path.write_bytes(_canonical(evaluation))
+ manifest["artifacts"]["evaluation_sha256"] = _sha256(evaluation_path)
+ (RUN_DIR / "output" / "manifest.json").write_bytes(_canonical(manifest))
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main(Path(sys.argv[1])))
diff --git a/deploy/wakeword-training/presets/manual-poc-v1.json b/deploy/wakeword-training/presets/manual-poc-v1.json
new file mode 100644
index 0000000..d726ead
--- /dev/null
+++ b/deploy/wakeword-training/presets/manual-poc-v1.json
@@ -0,0 +1,39 @@
+{
+ "preset_version": "manual-poc-v1",
+ "description": "Measured JRich manual-POC profile; calibrate every new Wake Phrase independently.",
+ "pipeline_config": {
+ "threshold": "auto",
+ "n_samples": 10000,
+ "n_samples_val": 2000,
+ "n_background_samples": 1000,
+ "n_background_samples_val": 200,
+ "tts_batch_size": 10,
+ "noise_scales": [0.98],
+ "noise_scale_ws": [0.98],
+ "length_scales": [0.75, 1.0, 1.25],
+ "slerp_weights": [0.2, 0.35, 0.5, 0.65, 0.8],
+ "augmentation": {
+ "clip_duration": 2.0,
+ "batch_size": 16,
+ "rounds": 3,
+ "background_paths": ["/inputs/backgrounds"],
+ "rir_paths": ["/inputs/rirs"]
+ },
+ "model": {
+ "model_type": "conv_attention",
+ "model_size": "medium"
+ },
+ "steps": 50000,
+ "learning_rate": 0.0001,
+ "weight_decay": 0.01,
+ "label_smoothing": 0.05,
+ "max_negative_weight": 1500,
+ "target_fp_per_hour": 0.2,
+ "batch_n_per_class": {
+ "positive": 50,
+ "adversarial_negative": 50,
+ "ACAV100M_sample": 1024,
+ "background_noise": 50
+ }
+ }
+}
diff --git a/deploy/wakeword-training/record-image-provenance.py b/deploy/wakeword-training/record-image-provenance.py
new file mode 100644
index 0000000..a60d814
--- /dev/null
+++ b/deploy/wakeword-training/record-image-provenance.py
@@ -0,0 +1,56 @@
+"""Write manifest-safe image/package/front-end evidence into the mounted run."""
+
+from __future__ import annotations
+
+import json
+import platform
+import subprocess
+from importlib.metadata import distributions
+from pathlib import Path
+
+from wakeword_training_image import collect_image_provenance
+
+
+def main() -> int:
+ run_dir = Path("/run")
+ request = json.loads((run_dir / "request.json").read_text(encoding="utf-8"))
+ payload = request["request"]
+ package_versions = {
+ distribution.metadata["Name"].lower(): distribution.version
+ for distribution in distributions()
+ if distribution.metadata.get("Name")
+ }
+ frontend_assets = [
+ path
+ for path in Path("/usr/local/lib").glob("python*/site-packages/livekit/wakeword/**/*.onnx")
+ if path.is_file()
+ ]
+ cuda_version = "unknown"
+ try:
+ cuda_version = subprocess.check_output(["nvcc", "--version"], text=True).strip()
+ except (OSError, subprocess.CalledProcessError):
+ pass
+ os_packages: list[str] = []
+ try:
+ os_packages = subprocess.check_output(
+ ["dpkg-query", "--show", "--showformat", "${Package}=${Version}\\n"], text=True
+ ).splitlines()
+ except (OSError, subprocess.CalledProcessError):
+ pass
+ provenance = collect_image_provenance(
+ dependency_lock_path=Path("/opt/jr-wakeword/requirements.wheelhouse.lock"),
+ frontend_asset_paths=frontend_assets,
+ installed_distributions=package_versions,
+ image_digest=str(payload["runner_image_digest"]),
+ python_version=platform.python_version(),
+ cuda_version=cuda_version,
+ os_packages=os_packages,
+ )
+ (run_dir / "image-provenance.json").write_text(
+ json.dumps(provenance, sort_keys=True) + "\n", encoding="utf-8"
+ )
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/deploy/wakeword-training/requirements.in b/deploy/wakeword-training/requirements.in
new file mode 100644
index 0000000..28545fc
--- /dev/null
+++ b/deploy/wakeword-training/requirements.in
@@ -0,0 +1,10 @@
+# Deliberate top-level constraints for Python 3.11 inside the GPU image.
+# `build-wakeword-training-image` compiles this with uv into the checked-in
+# requirements.wheelhouse.lock; the Docker build consumes only that hash lock.
+# No dependency is resolved while a training run starts.
+--extra-index-url https://download.pytorch.org/whl/cu126
+livekit-wakeword[train,eval,export] @ https://files.pythonhosted.org/packages/source/l/livekit-wakeword/livekit_wakeword-0.2.1.tar.gz#sha256=cf2d9cf4867812c06788f64c15e49abd909d9d6291f0a13f1c3f9cb649fa6127
+torch==2.7.1+cu126
+torchaudio==2.7.1+cu126
+onnx==1.17.0
+onnxruntime-gpu==1.22.0
diff --git a/deploy/wakeword-training/requirements.wheelhouse.lock b/deploy/wakeword-training/requirements.wheelhouse.lock
new file mode 100644
index 0000000..71b04e7
--- /dev/null
+++ b/deploy/wakeword-training/requirements.wheelhouse.lock
@@ -0,0 +1,1995 @@
+# This file was autogenerated by uv via the following command:
+# uv pip compile --python-version 3.11 --generate-hashes deploy/wakeword-training/requirements.in -o deploy/wakeword-training/requirements.wheelhouse.lock
+annotated-doc==0.0.5 \
+ --hash=sha256:117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101 \
+ --hash=sha256:c7e58ce09192557605d8bbd92836d7e1d520ac9580096042c0bfd197efacf1bb
+ # via typer
+annotated-types==0.8.0 \
+ --hash=sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7 \
+ --hash=sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0
+ # via pydantic
+anyio==4.14.2 \
+ --hash=sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494 \
+ --hash=sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f
+ # via httpx
+audiomentations==0.43.1 \
+ --hash=sha256:de308903c6d9c43d83fe1ceeb309befafb1b7ce4164a9e716f50009c48e5b73c \
+ --hash=sha256:e8e27d09348079f40fc9c6bcc59752eefafba6ea9e9dc5b91cb19249f78e826f
+ # via livekit-wakeword
+audioread==3.1.0 \
+ --hash=sha256:1c4ab2f2972764c896a8ac61ac53e261c8d29f0c6ccd652f84e18f08a4cab190 \
+ --hash=sha256:b30d1df6c5d3de5dcef0fb0e256f6ea17bdcf5f979408df0297d8a408e2971b4
+ # via librosa
+certifi==2022.12.7 \
+ --hash=sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18
+ # via
+ # httpcore
+ # httpx
+ # requests
+cffi==2.1.1 \
+ --hash=sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e \
+ --hash=sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66 \
+ --hash=sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2 \
+ --hash=sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0 \
+ --hash=sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6 \
+ --hash=sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971 \
+ --hash=sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c \
+ --hash=sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d \
+ --hash=sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9 \
+ --hash=sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517 \
+ --hash=sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735 \
+ --hash=sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80 \
+ --hash=sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f \
+ --hash=sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1 \
+ --hash=sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29 \
+ --hash=sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8 \
+ --hash=sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c \
+ --hash=sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e \
+ --hash=sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48 \
+ --hash=sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813 \
+ --hash=sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac \
+ --hash=sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632 \
+ --hash=sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6 \
+ --hash=sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1 \
+ --hash=sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659 \
+ --hash=sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688 \
+ --hash=sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004 \
+ --hash=sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0 \
+ --hash=sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062 \
+ --hash=sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779 \
+ --hash=sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94 \
+ --hash=sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50 \
+ --hash=sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab \
+ --hash=sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac \
+ --hash=sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6 \
+ --hash=sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676 \
+ --hash=sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1 \
+ --hash=sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9 \
+ --hash=sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf \
+ --hash=sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13 \
+ --hash=sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e \
+ --hash=sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e \
+ --hash=sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973 \
+ --hash=sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527 \
+ --hash=sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72 \
+ --hash=sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890 \
+ --hash=sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c \
+ --hash=sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990 \
+ --hash=sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd \
+ --hash=sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9 \
+ --hash=sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94 \
+ --hash=sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3 \
+ --hash=sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80 \
+ --hash=sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41 \
+ --hash=sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5 \
+ --hash=sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c \
+ --hash=sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a \
+ --hash=sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4 \
+ --hash=sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e \
+ --hash=sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6 \
+ --hash=sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98 \
+ --hash=sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b \
+ --hash=sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1 \
+ --hash=sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03 \
+ --hash=sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af \
+ --hash=sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231 \
+ --hash=sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2 \
+ --hash=sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3 \
+ --hash=sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836 \
+ --hash=sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5 \
+ --hash=sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399 \
+ --hash=sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96 \
+ --hash=sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e \
+ --hash=sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be \
+ --hash=sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf \
+ --hash=sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc \
+ --hash=sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455 \
+ --hash=sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0 \
+ --hash=sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12 \
+ --hash=sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b \
+ --hash=sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7 \
+ --hash=sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692 \
+ --hash=sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54 \
+ --hash=sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3 \
+ --hash=sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b \
+ --hash=sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be \
+ --hash=sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d \
+ --hash=sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358 \
+ --hash=sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a \
+ --hash=sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7 \
+ --hash=sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc \
+ --hash=sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960 \
+ --hash=sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125 \
+ --hash=sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb \
+ --hash=sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a \
+ --hash=sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa \
+ --hash=sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf \
+ --hash=sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3 \
+ --hash=sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4 \
+ --hash=sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264
+ # via
+ # numpy-minmax
+ # numpy-rms
+ # soundfile
+charset-normalizer==2.1.1 \
+ --hash=sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f
+ # via requests
+click==8.4.2 \
+ --hash=sha256:9a6cea6e60b17ebe0a44c5cc636d94f09bd66142c1cd7d8b4cd731c4917a15f6 \
+ --hash=sha256:e6f9f66136c816745b9d65817da91d61d957fb16e02e4dcd0552553c5a197b76
+ # via
+ # huggingface-hub
+ # nltk
+cmudict==1.1.3 \
+ --hash=sha256:e4d421341bf9fa774bcded8e7d6c5d73a1bf8f88edbe129207713850abac4995 \
+ --hash=sha256:f6c1cb9a2ffecef387bf1a1b93be6c61c91bc6f41714f183c3eb4d5b3e1ff5f6
+ # via
+ # livekit-wakeword
+ # pronouncing
+coloredlogs==15.0.1 \
+ --hash=sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934 \
+ --hash=sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0
+ # via onnxruntime-gpu
+contourpy==1.3.3 \
+ --hash=sha256:023b44101dfe49d7d53932be418477dba359649246075c996866106da069af69 \
+ --hash=sha256:07ce5ed73ecdc4a03ffe3e1b3e3c1166db35ae7584be76f65dbbe28a7791b0cc \
+ --hash=sha256:083e12155b210502d0bca491432bb04d56dc3432f95a979b429f2848c3dbe880 \
+ --hash=sha256:0bf67e0e3f482cb69779dd3061b534eb35ac9b17f163d851e2a547d56dba0a3a \
+ --hash=sha256:0c1fc238306b35f246d61a1d416a627348b5cf0648648a031e14bb8705fcdfe8 \
+ --hash=sha256:13b68d6a62db8eafaebb8039218921399baf6e47bf85006fd8529f2a08ef33fc \
+ --hash=sha256:15ff10bfada4bf92ec8b31c62bf7c1834c244019b4a33095a68000d7075df470 \
+ --hash=sha256:177fb367556747a686509d6fef71d221a4b198a3905fe824430e5ea0fda54eb5 \
+ --hash=sha256:1cadd8b8969f060ba45ed7c1b714fe69185812ab43bd6b86a9123fe8f99c3263 \
+ --hash=sha256:1fd43c3be4c8e5fd6e4f2baeae35ae18176cf2e5cced681cca908addf1cdd53b \
+ --hash=sha256:22e9b1bd7a9b1d652cd77388465dc358dafcd2e217d35552424aa4f996f524f5 \
+ --hash=sha256:23416f38bfd74d5d28ab8429cc4d63fa67d5068bd711a85edb1c3fb0c3e2f381 \
+ --hash=sha256:283edd842a01e3dcd435b1c5116798d661378d83d36d337b8dde1d16a5fc9ba3 \
+ --hash=sha256:2a2a8b627d5cc6b7c41a4beff6c5ad5eb848c88255fda4a8745f7e901b32d8e4 \
+ --hash=sha256:2b7e9480ffe2b0cd2e787e4df64270e3a0440d9db8dc823312e2c940c167df7e \
+ --hash=sha256:322ab1c99b008dad206d406bb61d014cf0174df491ae9d9d0fac6a6fda4f977f \
+ --hash=sha256:33c82d0138c0a062380332c861387650c82e4cf1747aaa6938b9b6516762e772 \
+ --hash=sha256:348ac1f5d4f1d66d3322420f01d42e43122f43616e0f194fc1c9f5d830c5b286 \
+ --hash=sha256:3519428f6be58431c56581f1694ba8e50626f2dd550af225f82fb5f5814d2a42 \
+ --hash=sha256:3c30273eb2a55024ff31ba7d052dde990d7d8e5450f4bbb6e913558b3d6c2301 \
+ --hash=sha256:3d1a3799d62d45c18bafd41c5fa05120b96a28079f2393af559b843d1a966a77 \
+ --hash=sha256:451e71b5a7d597379ef572de31eeb909a87246974d960049a9848c3bc6c41bf7 \
+ --hash=sha256:459c1f020cd59fcfe6650180678a9993932d80d44ccde1fa1868977438f0b411 \
+ --hash=sha256:4d00e655fcef08aba35ec9610536bfe90267d7ab5ba944f7032549c55a146da1 \
+ --hash=sha256:4debd64f124ca62069f313a9cb86656ff087786016d76927ae2cf37846b006c9 \
+ --hash=sha256:4feffb6537d64b84877da813a5c30f1422ea5739566abf0bd18065ac040e120a \
+ --hash=sha256:50ed930df7289ff2a8d7afeb9603f8289e5704755c7e5c3bbd929c90c817164b \
+ --hash=sha256:51e79c1f7470158e838808d4a996fa9bac72c498e93d8ebe5119bc1e6becb0db \
+ --hash=sha256:556dba8fb6f5d8742f2923fe9457dbdd51e1049c4a43fd3986a0b14a1d815fc6 \
+ --hash=sha256:598c3aaece21c503615fd59c92a3598b428b2f01bfb4b8ca9c4edeecc2438620 \
+ --hash=sha256:5ed3657edf08512fc3fe81b510e35c2012fbd3081d2e26160f27ca28affec989 \
+ --hash=sha256:626d60935cf668e70a5ce6ff184fd713e9683fb458898e4249b63be9e28286ea \
+ --hash=sha256:644a6853d15b2512d67881586bd03f462c7ab755db95f16f14d7e238f2852c67 \
+ --hash=sha256:655456777ff65c2c548b7c454af9c6f33f16c8884f11083244b5819cc214f1b5 \
+ --hash=sha256:66c8a43a4f7b8df8b71ee1840e4211a3c8d93b214b213f590e18a1beca458f7d \
+ --hash=sha256:6afc576f7b33cf00996e5c1102dc2a8f7cc89e39c0b55df93a0b78c1bd992b36 \
+ --hash=sha256:6c3d53c796f8647d6deb1abe867daeb66dcc8a97e8455efa729516b997b8ed99 \
+ --hash=sha256:709a48ef9a690e1343202916450bc48b9e51c049b089c7f79a267b46cffcdaa1 \
+ --hash=sha256:70f9aad7de812d6541d29d2bbf8feb22ff7e1c299523db288004e3157ff4674e \
+ --hash=sha256:8153b8bfc11e1e4d75bcb0bff1db232f9e10b274e0929de9d608027e0d34ff8b \
+ --hash=sha256:87acf5963fc2b34825e5b6b048f40e3635dd547f590b04d2ab317c2619ef7ae8 \
+ --hash=sha256:88df9880d507169449d434c293467418b9f6cbe82edd19284aa0409e7fdb933d \
+ --hash=sha256:929ddf8c4c7f348e4c0a5a3a714b5c8542ffaa8c22954862a46ca1813b667ee7 \
+ --hash=sha256:92d9abc807cf7d0e047b95ca5d957cf4792fcd04e920ca70d48add15c1a90ea7 \
+ --hash=sha256:95b181891b4c71de4bb404c6621e7e2390745f887f2a026b2d99e92c17892339 \
+ --hash=sha256:9e999574eddae35f1312c2b4b717b7885d4edd6cb46700e04f7f02db454e67c1 \
+ --hash=sha256:a15459b0f4615b00bbd1e91f1b9e19b7e63aea7483d03d804186f278c0af2659 \
+ --hash=sha256:a22738912262aa3e254e4f3cb079a95a67132fc5a063890e224393596902f5a4 \
+ --hash=sha256:ab2fd90904c503739a75b7c8c5c01160130ba67944a7b77bbf36ef8054576e7f \
+ --hash=sha256:ab3074b48c4e2cf1a960e6bbeb7f04566bf36b1861d5c9d4d8ac04b82e38ba20 \
+ --hash=sha256:afe5a512f31ee6bd7d0dda52ec9864c984ca3d66664444f2d72e0dc4eb832e36 \
+ --hash=sha256:b08a32ea2f8e42cf1d4be3169a98dd4be32bafe4f22b6c4cb4ba810fa9e5d2cb \
+ --hash=sha256:b20c7c9a3bf701366556e1b1984ed2d0cedf999903c51311417cf5f591d8c78d \
+ --hash=sha256:b2e8faa0ed68cb29af51edd8e24798bb661eac3bd9f65420c1887b6ca89987c8 \
+ --hash=sha256:b7301b89040075c30e5768810bc96a8e8d78085b47d8be6e4c3f5a0b4ed478a0 \
+ --hash=sha256:b7448cb5a725bb1e35ce88771b86fba35ef418952474492cf7c764059933ff8b \
+ --hash=sha256:ca0fdcd73925568ca027e0b17ab07aad764be4706d0a925b89227e447d9737b7 \
+ --hash=sha256:ca658cd1a680a5c9ea96dc61cdbae1e85c8f25849843aa799dfd3cb370ad4fbe \
+ --hash=sha256:cbedb772ed74ff5be440fa8eee9bd49f64f6e3fc09436d9c7d8f1c287b121d77 \
+ --hash=sha256:cd5dfcaeb10f7b7f9dc8941717c6c2ade08f587be2226222c12b25f0483ed497 \
+ --hash=sha256:cf9022ef053f2694e31d630feaacb21ea24224be1c3ad0520b13d844274614fd \
+ --hash=sha256:d002b6f00d73d69333dac9d0b8d5e84d9724ff9ef044fd63c5986e62b7c9e1b1 \
+ --hash=sha256:d06bb1f751ba5d417047db62bca3c8fde202b8c11fb50742ab3ab962c81e8216 \
+ --hash=sha256:d304906ecc71672e9c89e87c4675dc5c2645e1f4269a5063b99b0bb29f232d13 \
+ --hash=sha256:e4e6b05a45525357e382909a4c1600444e2a45b4795163d3b22669285591c1ae \
+ --hash=sha256:e74a9a0f5e3fff48fb5a7f2fd2b9b70a3fe014a67522f79b7cca4c0c7e43c9ae \
+ --hash=sha256:ea37e7b45949df430fe649e5de8351c423430046a2af20b1c1961cae3afcda77 \
+ --hash=sha256:f64836de09927cba6f79dcd00fdd7d5329f3fccc633468507079c829ca4db4e3 \
+ --hash=sha256:fd6ec6be509c787f1caf6b247f0b1ca598bef13f4ddeaa126b7658215529ba0f \
+ --hash=sha256:fd907ae12cd483cd83e414b12941c632a969171bf90fc937d0c9f268a31cafff \
+ --hash=sha256:fd914713266421b7536de2bfa8181aa8c699432b6763a0ea64195ebe28bff6a9 \
+ --hash=sha256:fde6c716d51c04b1c25d0b90364d0be954624a0ee9d60e23e850e8d48353d07a
+ # via matplotlib
+cycler==0.12.1 \
+ --hash=sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30 \
+ --hash=sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c
+ # via matplotlib
+decorator==5.3.1 \
+ --hash=sha256:4cbcdd55a6efadb9dbea26b858f4fb3264567b52d69ca0d25b721b553f60ea82 \
+ --hash=sha256:f47fe6fdbd2edd623ecfe36875d37aba411624e2670dd395dddae1358689bb3c
+ # via librosa
+defusedxml==0.7.1 \
+ --hash=sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69 \
+ --hash=sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61
+ # via nltk
+filelock==3.29.0 \
+ --hash=sha256:69974355e960702e789734cb4871f884ea6fe50bd8404051a3530bc07809cf90 \
+ --hash=sha256:96f5f6344709aa1572bbf631c640e4ebeeb519e08da902c39a001882f30ac258
+ # via
+ # huggingface-hub
+ # torch
+flatbuffers==25.12.19 \
+ --hash=sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4
+ # via
+ # onnxruntime
+ # onnxruntime-gpu
+fonttools==4.63.0 \
+ --hash=sha256:032038247a96c1690f9f31e377c389383c902531b085aa4e4dabd6f57f870e69 \
+ --hash=sha256:063e08bd17bd5a90127a14123de0d6a952dbc847695fd98b63c043d58057f90c \
+ --hash=sha256:0c18358a155d75034911c5ee397a5b44cd19dd325dbb8b35fb60bf421d6a72ac \
+ --hash=sha256:0eac00b9118c3c2f87d272e45341871c5b3066baa3c86897fa634a7c3fb59096 \
+ --hash=sha256:1e874792a8212b44583ea02189d9e693906b2f78b261f372f95d6c563210ac1d \
+ --hash=sha256:22135da48a348785c5e2d5d2d9d6bec5ed44adacbaeb9db12d9493bf6c6bfa68 \
+ --hash=sha256:22693918177bd9ceabec4736d338045f357769416fc6b0b2508eefef75b08616 \
+ --hash=sha256:27fdc65af8da6f88b9c6121c47a464cbe359fcfff7ff6fc2d37a1f395d755b78 \
+ --hash=sha256:2b8ae05d9eacf6081414d759c0a352769ac28ce31280d6bb8e77b03f9e3c449f \
+ --hash=sha256:2c14b4fd138c4bafcca294765c547914e1aa431ae1ca94ab99d8db08c958bd3b \
+ --hash=sha256:308f957cdeaf8abe4e5f2f124902ef405448af92c90f80e302a3b771c2e6116b \
+ --hash=sha256:37dd23e621e3b0aef1baa70a303b80aaf38449632cfc8fd2a55fb285bbccfc02 \
+ --hash=sha256:445af2eab030a16b9171ea8bdda7ebf7d96bda2df88ee182a464252f6e05e20d \
+ --hash=sha256:51394295f1a51de8b5f30bdb1e1b9a4231536c7064ef5c6e211eec19fa36036f \
+ --hash=sha256:58dc6bb86a78d782f00f9190ca02c119cf5bbe2807536e361e18d42019f877d8 \
+ --hash=sha256:59ac449f8cca9b4ffa08d2e7bbadad87ce710d69d1eda5c3c1ce579baa987272 \
+ --hash=sha256:6b2248c5decb223562f7902ff6325077a073f608ee8e33e88ad88db734eb9f49 \
+ --hash=sha256:6d4741eb179121cab9eea4cb2393d24492373a260d7945006358c08cfbf45419 \
+ --hash=sha256:6db5140a60a5d731d21ec076745b40a310607731b0a565b50776393188649001 \
+ --hash=sha256:6e528da43bc3791085f8cb6141b1d13e459226790240340fcbb4625649238b03 \
+ --hash=sha256:796f27556dbe094c4824f75ca85267e4df776c79036c8441469a4df37038c196 \
+ --hash=sha256:79cdc9f567aec74a72918fd060283911406750cbc9fd28c1316023deb6ce31a9 \
+ --hash=sha256:7d76edbff9014094dbf03bd2d074709dfa6ec7aba13d838c937a2b33d2d6a86e \
+ --hash=sha256:7d782fac32985914c351556f68ac0855391572bcd87de50e05970d3cd4c96fc5 \
+ --hash=sha256:7dd683fef0663e9f0f45cf541d788d24caa3ec9db50796b588e1757d8b3bc007 \
+ --hash=sha256:85be818f5506e8a7753153def2c9550178f0ecae6a47b5e0e8dbb23f7cc90380 \
+ --hash=sha256:948428a275741f0b64b113c955425a953314f4b9ab9997f73a72c83e68e569c8 \
+ --hash=sha256:9ced0bd02ac751dd6319b0da88aaef24414e3b0dbc32bb4f24944821a3741a27 \
+ --hash=sha256:9e12f105d2b6342c559c298afb674006bb2893afc7102dcf8a1b55b0486b4e40 \
+ --hash=sha256:a8b33a82979e0a6a34ff435cc81317be1f95ec1ebb7a3a2d1c8a6a54f02ae44e \
+ --hash=sha256:a9faff9e0c1f76f9fd55899d2ce785832efebab37eb8ae13995853aef178bef0 \
+ --hash=sha256:af2fd1664d00a397d75f806985ddb36282091c2131a73a6485c23b4a34722263 \
+ --hash=sha256:afefc1ed0a59785a7fb06ea7e1678e849c193e1e387db783579bc7b3056fcfcb \
+ --hash=sha256:b1cd75a03ad8cb5bc40c90bfde68c0c47de423aa19e5c0f362b43520645eea94 \
+ --hash=sha256:ba04cb5891d4c0c21b6da95eda8d7b090021508a294fff33464fc7d241e0856b \
+ --hash=sha256:bf00f21eb5fb721dbaf73d1e9da6d02a1af7768f2ebcf9798be98beab8ba90f6 \
+ --hash=sha256:c0425b277a59cff3d80ca42162a8de360f318438a2ac83570842a678d826d579 \
+ --hash=sha256:c1aaa4b9c75798400ac043ce04d74e7830376c85095a5a6ed7cba2f17a266bf4 \
+ --hash=sha256:c2a2a42198b696a6f48fad91709afb55176e66a5e566131219dba372fb7f8c59 \
+ --hash=sha256:caeb583deeb5168e694b65cda8b4ee62abedfa66cf88488734466f2366b9c4e0 \
+ --hash=sha256:cb014d58140a38135f16064c74c652ed57aa0b75cbf8bb59cac821f7edb5334e \
+ --hash=sha256:ccf41f2efdf56994d22d73bef4ced1052161958169428d06ba9724ea9e9a64be \
+ --hash=sha256:cd7e9857e5e63738b9d9fd707bc1f59c8b09e5177726d23664db393c59bb08bd \
+ --hash=sha256:d76ac49f929aecaf82d83250b8347e099d7aecba0f4726c1d9b6df3b8bb5fe18 \
+ --hash=sha256:d7e5c9973aa04c95650c96e5f5ad865fbf42d62079163ecfab1e01cbc2504c22 \
+ --hash=sha256:dcf076a4474fe0d7367e5bbf5b052c7284fa1feca729c04176ce513521afd8a0 \
+ --hash=sha256:e3297a6a4059b4acc3a1e9a8b04741f240a80044eef08ebd32e8b5bcdddce75b \
+ --hash=sha256:ee08ebfa58f6e1aeff5697ab9582105bb620008c1caafb681e4c557e7483027b \
+ --hash=sha256:ef3048ef05dbb552b89817713d9cac912e00d0fde4a3105c00d29e52e10c89af \
+ --hash=sha256:fd1e3094f42d806d3d7c79162fc59e5910fcbe3a7360c385b8da969bc4493745
+ # via matplotlib
+fsspec==2026.4.0 \
+ --hash=sha256:11ef7bb35dab8a394fde6e608221d5cf3e8499401c249bebaeaad760a1a8dec2 \
+ --hash=sha256:301d8ac70ae90ef3ad05dcf94d6c3754a097f9b5fe4667d2787aa359ec7df7e4
+ # via
+ # huggingface-hub
+ # torch
+h11==0.16.0 \
+ --hash=sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1 \
+ --hash=sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86
+ # via httpcore
+hf-xet==1.6.0 \
+ --hash=sha256:0e6e21fa3cdfcdcd76748564bf593870a5e013f47d97cf10aed63aa222cff5b7 \
+ --hash=sha256:23379c2f9ec8696d952b16414a2bae72cad86a52df869b050698ba60f538c675 \
+ --hash=sha256:2e58454a340b3556dfa4972d5451aff4fba8dd42a236600ba1a1d2b1514f0fef \
+ --hash=sha256:35cec30d75c6f9eb9c16a77cef68e85a103b72e24d4b473714ec9ff06428bab9 \
+ --hash=sha256:3dc3e35441ba395006af5aaacc40ef2e603c51ef46c3530b9156185f00935ea3 \
+ --hash=sha256:4fc74352a17015bd0ee90038bc9efe38db894cde45f268b6712b04fce8cd0acb \
+ --hash=sha256:5153e6bb103ad49d6ea9f1b2e230db5a2ea32551ad09a706d2f61d7c7c80d80e \
+ --hash=sha256:5789835d7c6bc9436962853192082374297fb72d7eff7e7762ec25ceb7e25338 \
+ --hash=sha256:633dc0cd71d32da58ab8c03ad38e2fac452c15c2b0a2866ebf6ededfe0a5061d \
+ --hash=sha256:70cbb9c896901600128cb9b6f06e132954fbede1db30f31f7c6c63f84cb7c31d \
+ --hash=sha256:75765820ce4700db3750c94acc8fe27c5fae4c9ec000a0dbac3ca082acf97765 \
+ --hash=sha256:8fb4f71cba6129110c3374a33f919001ff130488fc23553698e34cc1c2a1198c \
+ --hash=sha256:948f15d3a9545cfe5932f6bd8b440f6ae630aee108f14b7bd6c561f7c2dcc522 \
+ --hash=sha256:d62671bb130879cef0ee4c9ebe47a14af6c66ec53e6d84dc15936e5ffdfac82f \
+ --hash=sha256:f0906082d9932ae0c0057fa194041c22b4e2cdb46b2592ef3b91f020d62a081a \
+ --hash=sha256:f2f7278c05c22fd60cb436cda1269649b3e81db65ecdc8496e5e164aa4143e7b \
+ --hash=sha256:fb4fadde1b2b70bf4c0c14a6dccbe7194b1c28947fefd5bbe3fed9d940676c3b
+ # via huggingface-hub
+httpcore==1.0.9 \
+ --hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \
+ --hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8
+ # via httpx
+httpx==0.28.1 \
+ --hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \
+ --hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad
+ # via huggingface-hub
+huggingface-hub==1.27.0 \
+ --hash=sha256:7df6827c2f956c60fbaa64646e979e566db76f619dd0a9729dfb8c5a3eb4f68d \
+ --hash=sha256:c1fed40ea82a6b41b477f5243546549b792ae0a93abcea608cff66089bf8f8df
+ # via livekit-wakeword
+humanfriendly==10.0 \
+ --hash=sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477 \
+ --hash=sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc
+ # via coloredlogs
+idna==3.4 \
+ --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2
+ # via
+ # anyio
+ # httpx
+ # requests
+importlib-metadata==7.1.0 \
+ --hash=sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570
+ # via cmudict
+importlib-resources==7.1.0 \
+ --hash=sha256:0722d4c6212489c530f2a145a34c0a7a3b4721bc96a15fada5930e2a0b760708 \
+ --hash=sha256:1bd7b48b4088eddb2cd16382150bb515af0bd2c70128194392725f82ad2c96a1
+ # via cmudict
+jinja2==3.1.6 \
+ --hash=sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
+ # via torch
+joblib==1.5.3 \
+ --hash=sha256:5fc3c5039fc5ca8c0276333a188bbd59d6b7ab37fe6632daa76bc7f9ec18e713 \
+ --hash=sha256:8561a3269e6801106863fd0d6d84bb737be9e7631e33aaed3fb9ce5953688da3
+ # via
+ # librosa
+ # nltk
+ # scikit-learn
+julius==0.2.8 \
+ --hash=sha256:6891235cbc355e629d839f87489bff8ca46e57a0e7cc35abb909c7a2aa538c25 \
+ --hash=sha256:d691e651200930affea4f6c849c26e95fec846087281ae3d1a7757eac90253d5
+ # via torch-audiomentations
+kiwisolver==1.5.0 \
+ --hash=sha256:012b1eb16e28718fa782b5e61dc6f2da1f0792ca73bd05d54de6cb9561665fc9 \
+ --hash=sha256:01808c6d15f4c3e8559595d6d1fe6411c68e4a3822b4b9972b44473b24f4e679 \
+ --hash=sha256:0255a027391d52944eae1dbb5d4cc5903f57092f3674e8e544cdd2622826b3f0 \
+ --hash=sha256:0b85aad90cea8ac6797a53b5d5f2e967334fa4d1149f031c4537569972596cb8 \
+ --hash=sha256:0bf3acf1419fa93064a4c2189ac0b58e3be7872bf6ee6177b0d4c63dc4cea276 \
+ --hash=sha256:0c50b89ffd3e1a911c69a1dd3de7173c0cd10b130f56222e57898683841e4f96 \
+ --hash=sha256:0cbe94b69b819209a62cb27bdfa5dc2a8977d8de2f89dfd97ba4f53ed3af754e \
+ --hash=sha256:0df54df7e686afa55e6f21fb86195224a6d9beb71d637e8d7920c95cf0f89aac \
+ --hash=sha256:0e3aafb33aed7479377e5e9a82e9d4bf87063741fc99fc7ae48b0f16e32bdd6f \
+ --hash=sha256:12e91c215a96e39f57989c8912ae761286ac5a9584d04030ceb3368a357f017a \
+ --hash=sha256:1465387ac63576c3e125e5337a6892b9e99e0627d52317f3ca79e6930d889d15 \
+ --hash=sha256:16b85d37c2cbb3253226d26e64663f755d88a03439a9c47df6246b35defbdfb7 \
+ --hash=sha256:1b0feb50971481a2cc44d94e88bdb02cdd497618252ae226b8eb1201b957e368 \
+ --hash=sha256:1d49a49ac4cbfb7c1375301cd1ec90169dfeae55ff84710d782260ce77a75a02 \
+ --hash=sha256:1d9daea4ea6b9be74fe2f01f7fbade8d6ffab263e781274cffca0dba9be9eec9 \
+ --hash=sha256:1dd9b0b119a350976a6d781e7278ec7aca0b201e1a9e2d23d9804afecb6ca681 \
+ --hash=sha256:1f1489f769582498610e015a8ef2d36f28f505ab3096d0e16b4858a9ec214f57 \
+ --hash=sha256:2517e24d7315eb51c10664cdb865195df38ab74456c677df67bb47f12d088a27 \
+ --hash=sha256:295d9ffe712caa9f8a3081de8d32fc60191b4b51c76f02f951fd8407253528f4 \
+ --hash=sha256:2a075bd7bd19c70cf67c8badfa36cf7c5d8de3c9ddb8420c51e10d9c50e94920 \
+ --hash=sha256:32cc0a5365239a6ea0c6ed461e8838d053b57e397443c0ca894dcc8e388d4374 \
+ --hash=sha256:332b4f0145c30b5f5ad9374881133e5aa64320428a57c2c2b61e9d891a51c2f3 \
+ --hash=sha256:377815a8616074cabbf3f53354e1d040c35815a134e01d7614b7692e4bf8acfa \
+ --hash=sha256:38f4a703656f493b0ad185211ccfca7f0386120f022066b018eb5296d8613e23 \
+ --hash=sha256:3ac2360e93cb41be81121755c6462cff3beaa9967188c866e5fce5cf13170859 \
+ --hash=sha256:3c4923e404d6bcd91b6779c009542e5647fef32e4a5d75e115e3bbac6f2335eb \
+ --hash=sha256:3cdcb35dc9d807259c981a85531048ede628eabcffb3239adf3d17463518992d \
+ --hash=sha256:41024ed50e44ab1a60d3fe0a9d15a4ccc9f5f2b1d814ff283c8d01134d5b81bc \
+ --hash=sha256:413b820229730d358efd838ecbab79902fe97094565fdc80ddb6b0a18c18a581 \
+ --hash=sha256:4432b835675f0ea7414aab3d37d119f7226d24869b7a829caeab49ebda407b0c \
+ --hash=sha256:4db576bb8c3ef9365f8b40fe0f671644de6736ae2c27a2c62d7d8a1b4329f099 \
+ --hash=sha256:4e7f886f47ab881692f278ae901039a234e4025a68e6dfab514263a0b1c4ae05 \
+ --hash=sha256:4e9750bc21b886308024f8a54ccb9a2cc38ac9fa813bf4348434e3d54f337ff9 \
+ --hash=sha256:5060731cc3ed12ca3a8b57acd4aeca5bbc2f49216dd0bec1650a1acd89486bcd \
+ --hash=sha256:50847dca5d197fcbd389c805aa1a1cf32f25d2e7273dc47ab181a517666b68cc \
+ --hash=sha256:5092eb5b1172947f57d6ea7d89b2f29650414e4293c47707eb499ec07a0ac796 \
+ --hash=sha256:5124d1ea754509b09e53738ec185584cc609aae4a3b510aaf4ed6aa047ef9303 \
+ --hash=sha256:51e8c4084897de9f05898c2c2a39af6318044ae969d46ff7a34ed3f96274adca \
+ --hash=sha256:530a3fd64c87cffa844d4b6b9768774763d9caa299e9b75d8eca6a4423b31314 \
+ --hash=sha256:56fa888f10d0f367155e76ce849fa1166fc9730d13bd2d65a2aa13b6f5424489 \
+ --hash=sha256:58f812017cd2985c21fbffb4864d59174d4903dd66fa23815e74bbc7a0e2dd57 \
+ --hash=sha256:59cd8683f575d96df5bb48f6add94afc055012c29e28124fcae2b63661b9efb1 \
+ --hash=sha256:5ae8e62c147495b01a0f4765c878e9bfdf843412446a247e28df59936e99e797 \
+ --hash=sha256:5b233ea3e165e43e35dba1d2b8ecc21cf070b45b65ae17dd2747d2713d942021 \
+ --hash=sha256:6176c1811d9d5a04fa391c490cc44f451e240697a16977f11c6f722efb9041db \
+ --hash=sha256:62f59da443c4f4849f73a51a193b1d9d258dcad0c41bc4d1b8fb2bcc04bfeb22 \
+ --hash=sha256:6783e069732715ad0c3ce96dbf21dbc2235ab0593f2baf6338101f70371f4028 \
+ --hash=sha256:6ab8ba9152203feec73758dad83af9a0bbe05001eb4639e547207c40cfb52083 \
+ --hash=sha256:70d593af6a6ca332d1df73d519fddb5148edb15cd90d5f0155e3746a6d4fcc65 \
+ --hash=sha256:72ec46b7eba5b395e0a7b63025490d3214c11013f4aacb4f5e8d6c3041829588 \
+ --hash=sha256:7a32f72973f0f950c1920475d5c5ea3d971b81b6f0ec53b8d0a956cc965f22e0 \
+ --hash=sha256:7a4aa69609f40fce3cbc3f87b2061f042eee32f94b8f11db707b66a26461591a \
+ --hash=sha256:7c60d3c9b06fb23bd9c6139281ccbdc384297579ae037f08ae90c69f6845c0b1 \
+ --hash=sha256:800ee55980c18545af444d93fdd60c56b580db5cc54867d8cbf8a1dc0829938c \
+ --hash=sha256:80aa065ffd378ff784822a6d7c3212f2d5f5e9c3589614b5c228b311fd3063ac \
+ --hash=sha256:86e0287879f75621ae85197b0877ed2f8b7aa57b511c7331dce2eb6f4de7d476 \
+ --hash=sha256:893ff3a711d1b515ba9da14ee090519bad4610ed1962fbe298a434e8c5f8db53 \
+ --hash=sha256:89fc958c702ee9a745e4700378f5d23fddbc46ff89e8fdbf5395c24d5c1452a3 \
+ --hash=sha256:8c63c91f95173f9c2a67c7c526b2cea976828a0e7fced9cdcead2802dc10f8a4 \
+ --hash=sha256:8df31fe574b8b3993cc61764f40941111b25c2d9fea13d3ce24a49907cd2d615 \
+ --hash=sha256:8f9baf6f0a6e7571c45c8863010b45e837c3ee1c2c77fcd6ef423be91b21fedb \
+ --hash=sha256:9027d773c4ff81487181a925945743413f6069634d0b122d0b37684ccf4f1e18 \
+ --hash=sha256:9190426b7aa26c5229501fa297b8d0653cfd3f5a36f7990c264e157cbf886b3b \
+ --hash=sha256:940dda65d5e764406b9fb92761cbf462e4e63f712ab60ed98f70552e496f3bf1 \
+ --hash=sha256:94eff26096eb5395136634622515b234ecb6c9979824c1f5004c6e3c3c85ccd2 \
+ --hash=sha256:9eed0f7edbb274413b6ee781cca50541c8c0facd3d6fd289779e494340a2b85c \
+ --hash=sha256:ad4ae4ffd1ee9cd11357b4c66b612da9888f4f4daf2f36995eda64bd45370cac \
+ --hash=sha256:b0f172dc8ffaccb8522d7c5d899de00133f2f1ca7b0a49b7da98e901de87bf2d \
+ --hash=sha256:b2af221f268f5af85e776a73d62b0845fc8baf8ef0abfae79d29c77d0e776aaf \
+ --hash=sha256:b7d335370ae48a780c6e6a6bbfa97342f563744c39c35562f3f367665f5c1de2 \
+ --hash=sha256:b83af57bdddef03c01a9138034c6ff03181a3028d9a1003b301eb1a55e161a3f \
+ --hash=sha256:bb5136fb5352d3f422df33f0c879a1b0c204004324150cc3b5e3c4f310c9049f \
+ --hash=sha256:bc4d8e252f532ab46a1de9349e2d27b91fce46736a9eedaa37beaca66f574ed4 \
+ --hash=sha256:bdd3e53429ff02aa319ba59dfe4ceeec345bf46cf180ec2cf6fd5b942e7975e9 \
+ --hash=sha256:be12f931839a3bdfe28b584db0e640a65a8bcbc24560ae3fdb025a449b3d754e \
+ --hash=sha256:be4a51a55833dc29ab5d7503e7bcb3b3af3402d266018137127450005cdfe737 \
+ --hash=sha256:beb7f344487cdcb9e1efe4b7a29681b74d34c08f0043a327a74da852a6749e7b \
+ --hash=sha256:bf4679a3d71012a7c2bf360e5cd878fbd5e4fcac0896b56393dec239d81529ed \
+ --hash=sha256:c0e1403fd7c26d77c1f03e096dc58a5c726503fa0db0456678b8668f76f521e3 \
+ --hash=sha256:c31c13da98624f957b0fb1b5bae5383b2333c2c3f6793d9825dd5ce79b525cb7 \
+ --hash=sha256:c438f6ca858697c9ab67eb28246c92508af972e114cac34e57a6d4ba17a3ac08 \
+ --hash=sha256:c8277104ded0a51e699c8c3aff63ce2c56d4ed5519a5f73e0fd7057f959a2b9e \
+ --hash=sha256:c95cab08d1965db3d84a121f1c7ce7479bdd4072c9b3dafd8fecce48a2e6b902 \
+ --hash=sha256:cc0b66c1eec9021353a4b4483afb12dfd50e3669ffbb9152d6842eb34c7e29fd \
+ --hash=sha256:cdee07c4d7f6d72008d3f73b9bf027f4e11550224c7c50d8df1ae4a37c1402a6 \
+ --hash=sha256:ce9bf03dad3b46408c08649c6fbd6ca28a9fce0eb32fdfffa6775a13103b5310 \
+ --hash=sha256:cff8e5383db4989311f99e814feeb90c4723eb4edca425b9d5d9c3fefcdd9537 \
+ --hash=sha256:d168fda2dbff7b9b5f38e693182d792a938c31db4dac3a80a4888de603c99554 \
+ --hash=sha256:d1ffeb80b5676463d7a7d56acbe8e37a20ce725570e09549fe738e02ca6b7e1e \
+ --hash=sha256:d36ca54cb4c6c4686f7cbb7b817f66f5911c12ddb519450bbe86707155028f87 \
+ --hash=sha256:d4193f3d9dc3f6f79aaed0e5637f45d98850ebf01f7ca20e69457f3e8946b66a \
+ --hash=sha256:d5cd5189fc2b6a538b75ae45433140c4823463918f7b1617c31e68b085c0022c \
+ --hash=sha256:d618fd27420381a4f6044faa71f46d8bfd911bd077c555f7138ed88729bfbe79 \
+ --hash=sha256:d76e2d8c75051d58177e762164d2e9ab92886534e3a12e795f103524f221dd8e \
+ --hash=sha256:daae526907e262de627d8f70058a0f64acc9e2641c164c99c8f594b34a799a16 \
+ --hash=sha256:db485b3847d182b908b483b2ed133c66d88d49cacf98fd278fadafe11b4478d1 \
+ --hash=sha256:dd952e03bfbb096cfe2dd35cd9e00f269969b67536cb4370994afc20ff2d0875 \
+ --hash=sha256:dda366d548e89a90d88a86c692377d18d8bd64b39c1fb2b92cb31370e2896bbd \
+ --hash=sha256:e315e5ec90d88e140f57696ff85b484ff68bb311e36f2c414aa4286293e6dee0 \
+ --hash=sha256:e4415a8db000bf49a6dd1c478bf70062eaacff0f462b92b0ba68791a905861f9 \
+ --hash=sha256:e7a116ae737f0000343218c4edf5bd45893bfeaff0993c0b215d7124c9f77646 \
+ --hash=sha256:e7c4c09a490dc4d4a7f8cbee56c606a320f9dc28cf92a7157a39d1ce7676a657 \
+ --hash=sha256:ebae99ed6764f2b5771c522477b311be313e8841d2e0376db2b10922daebbba4 \
+ --hash=sha256:ec4c85dc4b687c7f7f15f553ff26a98bfe8c58f5f7f0ac8905f0ba4c7be60232 \
+ --hash=sha256:ed3a984b31da7481b103f68776f7128a89ef26ed40f4dc41a2223cda7fb24819 \
+ --hash=sha256:f18c2d9782259a6dc132fdc7a63c168cbc74b35284b6d75c673958982a378384 \
+ --hash=sha256:f1f9f4121ec58628c96baa3de1a55a4e3a333c5102c8e94b64e23bf7b2083309 \
+ --hash=sha256:f42c23db5d1521218a3276bb08666dcb662896a0be7347cba864eca45ff64ede \
+ --hash=sha256:f443b4825c50a51ee68585522ab4a1d1257fac65896f282b4c6763337ac9f5d2 \
+ --hash=sha256:f6764a4ccab3078db14a632420930f6186058750df066b8ea2a7106df91d3203 \
+ --hash=sha256:f7c7553b13f69c1b29a5bde08ddc6d9d0c8bfb84f9ed01c30db25944aeb852a7 \
+ --hash=sha256:fa6248cd194edff41d7ea9425ced8ca3a6f838bfb295f6f1d6e6bb694a8518df \
+ --hash=sha256:fa8eb9ecdb7efb0b226acec134e0d709e87a909fa4971a54c0c4f6e88635484c \
+ --hash=sha256:fc20894c3d21194d8041a28b65622d5b86db786da6e3cfe73f0c762951a61167 \
+ --hash=sha256:fc4d3f1fb9ca0ae9f97b095963bc6326f1dbfd3779d6679a1e016b9baaa153d3 \
+ --hash=sha256:fd40bb9cd0891c4c3cb1ddf83f8bbfa15731a248fdc8162669405451e2724b09 \
+ --hash=sha256:ff710414307fefa903e0d9bdf300972f892c23477829f49504e59834f4195398
+ # via matplotlib
+lazy-loader==0.5 \
+ --hash=sha256:717f9179a0dbed357012ddad50a5ad3d5e4d9a0b8712680d4e687f5e6e6ed9b3 \
+ --hash=sha256:ab0ea149e9c554d4ffeeb21105ac60bed7f3b4fd69b1d2360a4add51b170b005
+ # via librosa
+librosa==0.11.0 \
+ --hash=sha256:0b6415c4fd68bff4c29288abe67c6d80b587e0e1e2cfb0aad23e4559504a7fa1 \
+ --hash=sha256:f5ed951ca189b375bbe2e33b2abd7e040ceeee302b9bbaeeffdfddb8d0ace908
+ # via
+ # audiomentations
+ # livekit-wakeword
+livekit-wakeword @ https://files.pythonhosted.org/packages/source/l/livekit-wakeword/livekit_wakeword-0.2.1.tar.gz#sha256=cf2d9cf4867812c06788f64c15e49abd909d9d6291f0a13f1c3f9cb649fa6127 \
+ --hash=sha256:cf2d9cf4867812c06788f64c15e49abd909d9d6291f0a13f1c3f9cb649fa6127
+ # via -r deploy/wakeword-training/requirements.in
+llvmlite==0.48.0 \
+ --hash=sha256:02853fe4214acb3780fc920c3fee10564b61d58a35e1b78afcc8a546c2deaba3 \
+ --hash=sha256:054aa7d46595935565f276cf0c1659b4f10929c996dd4a606875fae26fba2a23 \
+ --hash=sha256:05f0103c8f2f96a37441337e3643863c01b8e83e530aff38960dcb383c54a065 \
+ --hash=sha256:13532f248960ba888ad5ab8150494e2f3a3d20e5f59f264e63741ea5b0ba844c \
+ --hash=sha256:1d9f952dff6c350c529997423d4fa43abae9722a884ac7ffafc37a3af676e7db \
+ --hash=sha256:2fe5cb59b2063bfa039dcb8ca6481c0181bf552f340d10dcf61d7996a665556e \
+ --hash=sha256:321f1ac39b462603f0b589751aecf2d237d056f6d005749c1752b6f23ec3f074 \
+ --hash=sha256:37d66fae72802175b0bfe1ea06e624b51e2d7aee6c3c34bbd09739b8f88e8e0b \
+ --hash=sha256:3ee0c77685a18f5fca994ae21d0763007fca5c5c64b41de37accc78b69079176 \
+ --hash=sha256:416fa4c2c66c2c6dc6d0a402648c19206e548efa0aa1eff01ad5cdad0af8217d \
+ --hash=sha256:543b19f9ef8f3c7c60d1468191e4ee1b1537bf9f8a3d56f64c0ddd98de92edd2 \
+ --hash=sha256:56a7e24607d3f02d7b1bae8d29c7e1e423d53143d68b072999777f19678fe77b \
+ --hash=sha256:614aad57df707e3172efd5165f2aa7da6a0c6897e40dce590bf756396815ba76 \
+ --hash=sha256:6fa532d6bb3fd3f0803567c736401c54aecfe1a396d3ad25d2440d220e09f0e7 \
+ --hash=sha256:7a5c413317050a1d67c34708bde97707f9b2257ef1017f7532d21fe7d9a9ff30 \
+ --hash=sha256:8761b9e522f55207e24424fcd98370289eec2710bf8e915c82d1053f642450dc \
+ --hash=sha256:91c7e24e74cde3f02b88aa5acca678373f9e069f3b98531b3dbb3a142d9d10bb \
+ --hash=sha256:966dcab0a598e2bd8fb5f2cc082cf7b07bae564fc485a3a8692393caf986facf \
+ --hash=sha256:979a66a3f28a02565383ff463527dce78e9b856298872a361283132488e83591 \
+ --hash=sha256:a83a99ef0c05b4ccddf9b6218ed9fe84b653a0caf7c1d9dbe148d6d16c67f518 \
+ --hash=sha256:d0b3c61aac83b42fb48cc96bffbf57c81b82b2aa92276b7ed6420c814629a99a \
+ --hash=sha256:d45c7541a80934ec6d8ab0defe67439494ecd2193cbf852a44ba827808976ac1 \
+ --hash=sha256:d66c3beb4209087ddd4cf4ed2a0856b6887e6a913bdcf1aacfec9851cf2cba4e \
+ --hash=sha256:efaee0276e5e17c2b99b92e0c974bd484ef5977cf5dbc9168e82b71578edb47f \
+ --hash=sha256:f5e5a5131045b72345c71062ea1a91910dde913792b6c9b28ebb2c1c0a712e98
+ # via numba
+markdown-it-py==4.2.0 \
+ --hash=sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49 \
+ --hash=sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a
+ # via rich
+markupsafe==3.0.3 \
+ --hash=sha256:0bf2a864d67e76e5c9a34dc26ec616a66b9888e25e7b9460e1c76d3293bd9dbf
+ # via jinja2
+matplotlib==3.11.1 \
+ --hash=sha256:0c1f44890d435c1b4ef52f701ad5828cb450ea97bcc83918fda6be74965d6cd2 \
+ --hash=sha256:11664c551345553db92e61cae6cf1376f138f8c47cafdf13b64b18f3e3e9e464 \
+ --hash=sha256:1524e2bdd48a93557aa47ddcfe9c225dfdd57d5a01a5c49128c20f0632980ee1 \
+ --hash=sha256:191163532cdefcb1571ca38a6d7e6474baccde64495783e6ba47aa07ec4b9bbb \
+ --hash=sha256:1ac697e591c11b6ad04679a73c2d2f9980fe9d9f0311fb414a2e329706343dfb \
+ --hash=sha256:216fbb93a74add02ddb4cb38ef5348f59ac00b3e84567eaf16598772d40e150a \
+ --hash=sha256:21a67b961a6d597bca54fae826cd20695ba4a6e4d05424a08da6e13e3176fd6b \
+ --hash=sha256:2abdee5ffa2fe11b2d19f7a5c63b785fb7c28cc46c7bc1814156341d9d1a33e1 \
+ --hash=sha256:30c492d4ba9448595b6fd8708c6725963f8148e25c0d8842948da5b05f0ee8d3 \
+ --hash=sha256:3d3fd84082b1afbd9398466c81309e20045be20d48fe0fb18c43504d164cbbb2 \
+ --hash=sha256:427258425f9a3fc4ed79a91f9e9b9aaf5a82cb6571e85dc14063cc6fbb993741 \
+ --hash=sha256:480194afceca4df2f137c2721227d3cba67121fbf4397b69cee7f83714b0a58a \
+ --hash=sha256:54d47b8ae8b579633a3902ca5b4ad6c1e132a5626d64447b2e22a66394e79987 \
+ --hash=sha256:5af0dcda57d471440a7b5b623e70e0a61003518443d9098f211a96ecfbbc25be \
+ --hash=sha256:5e1f8922ba31959cf6a9dfb51be64b7f7bc582801a3957dc0c2f3afcd3537adf \
+ --hash=sha256:5e510088c27a89d53580a752f959146893563e63c330e161d159b0fee652af6f \
+ --hash=sha256:6771b0cd7838c6a857a7209814158c0ad09bfef878db3033dd82d70ad101f191 \
+ --hash=sha256:67e4c3cd578c65ebd81bdc09a1b6592ceafee6dfafe116dc85dfcb647b5bbb18 \
+ --hash=sha256:68408341f2312836fbbdf6b3c78047f65b2d8752f5fd221c3e72d348f5b34f8b \
+ --hash=sha256:69647db5746941c793d6e445a4cd349323ffb87d9cc958c2ad84a659b4832d30 \
+ --hash=sha256:6be943cb68bc6660ead58c55b3aa6366cba2ef7feb06460fbcce32360376f19f \
+ --hash=sha256:7389b77ed2ab0552f46d9a90b81b7b8e6dfcdc42adc36c37a0865799843e0e3e \
+ --hash=sha256:7f33a781e12b1e53b278deb2f5373c2e55ec4f10727be3440c0cfb5cda9f944f \
+ --hash=sha256:83235693abde86e5e0129998f80ee39fc7f58e6d56a88fafb28a9278833e9d5f \
+ --hash=sha256:88a2a27dd9691ae448dfae4b26f59036be90c3c28757edd3553a29559d00859f \
+ --hash=sha256:89b193b255f4f6f7948dbcee3691f4f341ab05d9a8874a67b45ddb4182922eda \
+ --hash=sha256:8b14eb22961fe865efb0e4ff167e333e428908b00115a8d800ccb65ee108e481 \
+ --hash=sha256:9601a1e90be21e4884c53b4f3dc3ee0544654946f9975258d691f1c2e2f119c6 \
+ --hash=sha256:96f4bdeea33a8d15a071dbfe6d119451b1d719c733ac666d65357082901a9099 \
+ --hash=sha256:9a076f4fc5cdc43fdf510f5981418d25c2db4973418d9f22d8bb3dc8045ada78 \
+ --hash=sha256:9fdf1c818ab05d0e74002091ddaf414478a3a449ec9d51c8976d45be7e3a01e2 \
+ --hash=sha256:ac104be2768ffdd8655db9e71b768cbb45f2b9aa7b450cf1595e8f65d3822319 \
+ --hash=sha256:ae30c6109848ac0f9fa36c5d6270938487614c47ba31860bd5361266dabc5685 \
+ --hash=sha256:aee55e9041211bf84302ab55ec3965df18dd90ae19f8b58332a7feaf208bfe83 \
+ --hash=sha256:b0a19dcf73406d3746d25a5ed42d713604c9a3e024d129b102852b0d941cb9f3 \
+ --hash=sha256:b4c78ceb2f11bcac7389d305cda17aeb1f4586a857854ab5780bd3dd8dbfc407 \
+ --hash=sha256:b7cf158e7add54a8d51ac9b5a84abd6d4e13ed4951b4f25f1c5139f41c2addb2 \
+ --hash=sha256:b937b9dba5f5f6c1e31c47abe2186c865c0914fd18f2ce0dfc39c9adcef5951d \
+ --hash=sha256:ba8f811b8ddfac493734d6af0b2dff96919d0c28ca0d641858dab4262777c6ea \
+ --hash=sha256:c52f7ad20ef476806ed212380b1d54d20310c8b86bdc2c9a68b51f0024a44472 \
+ --hash=sha256:c90be0b73568da4f662afac580956a76e308437e641b4a45aa08925eeb67d95f \
+ --hash=sha256:d2ace7273b9a5061a3b420918a16fae1f2dc5dfee1abcc13aba71b5d94b1820c \
+ --hash=sha256:dadfe80797174e2984aae3be0b77594a3c72d2c0a40fbd4a0de48d2728caf3ae \
+ --hash=sha256:e15ef41507f3d525f46154ac9e3ae785dacde9f20e593a25de8986267892ef74 \
+ --hash=sha256:e4b9ac2f1f607ecda2af90a5232beee2af7582fce1cc30c4b6a1b012dc21ee99 \
+ --hash=sha256:f2912f647f3fbe1ccf085f91e213936f9101bead81a5e670565b1f1b3712f4fb
+ # via livekit-wakeword
+mdurl==0.1.2 \
+ --hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \
+ --hash=sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba
+ # via markdown-it-py
+ml-dtypes==0.5.4 \
+ --hash=sha256:0d2ffd05a2575b1519dc928c0b93c06339eb67173ff53acb00724502cda231cf \
+ --hash=sha256:11942cbf2cf92157db91e5022633c0d9474d4dfd813a909383bd23ce828a4b7d \
+ --hash=sha256:14a4fd3228af936461db66faccef6e4f41c1d82fcc30e9f8d58a08916b1d811f \
+ --hash=sha256:19b9a53598f21e453ea2fbda8aa783c20faff8e1eeb0d7ab899309a0053f1483 \
+ --hash=sha256:2314892cdc3fcf05e373d76d72aaa15fda9fb98625effa73c1d646f331fcecb7 \
+ --hash=sha256:2b857d3af6ac0d39db1de7c706e69c7f9791627209c3d6dedbfca8c7e5faec22 \
+ --hash=sha256:304ad47faa395415b9ccbcc06a0350800bc50eda70f0e45326796e27c62f18b6 \
+ --hash=sha256:35f29491a3e478407f7047b8a4834e4640a77d2737e0b294d049746507af5175 \
+ --hash=sha256:388d399a2152dd79a3f0456a952284a99ee5c93d3e2f8dfe25977511e0515270 \
+ --hash=sha256:3bbbe120b915090d9dd1375e4684dd17a20a2491ef25d640a908281da85e73f1 \
+ --hash=sha256:3d277bf3637f2a62176f4575512e9ff9ef51d00e39626d9fe4a161992f355af2 \
+ --hash=sha256:4381fe2f2452a2d7589689693d3162e876b3ddb0a832cde7a414f8e1adf7eab1 \
+ --hash=sha256:4ff7f3e7ca2972e7de850e7b8fcbb355304271e2933dd90814c1cb847414d6e2 \
+ --hash=sha256:531eff30e4d368cb6255bc2328d070e35836aa4f282a0fb5f3a0cd7260257298 \
+ --hash=sha256:533ce891ba774eabf607172254f2e7260ba5f57bdd64030c9a4fcfbd99815d0d \
+ --hash=sha256:557a31a390b7e9439056644cb80ed0735a6e3e3bb09d67fd5687e4b04238d1de \
+ --hash=sha256:5a0f68ca8fd8d16583dfa7793973feb86f2fbb56ce3966daf9c9f748f52a2049 \
+ --hash=sha256:6a0df4223b514d799b8a1629c65ddc351b3efa833ccf7f8ea0cf654a61d1e35d \
+ --hash=sha256:6c7ecb74c4bd71db68a6bea1edf8da8c34f3d9fe218f038814fd1d310ac76c90 \
+ --hash=sha256:7c23c54a00ae43edf48d44066a7ec31e05fdc2eee0be2b8b50dd1903a1db94bb \
+ --hash=sha256:805cef3a38f4eafae3a5bf9ebdcdb741d0bcfd9e1bd90eb54abd24f928cd2465 \
+ --hash=sha256:88c982aac7cb1cbe8cbb4e7f253072b1df872701fcaf48d84ffbb433b6568f24 \
+ --hash=sha256:8ab06a50fb9bf9666dd0fe5dfb4676fa2b0ac0f31ecff72a6c3af8e22c063453 \
+ --hash=sha256:8c6a2dcebd6f3903e05d51960a8058d6e131fe69f952a5397e5dbabc841b6d56 \
+ --hash=sha256:8c760d85a2f82e2bed75867079188c9d18dae2ee77c25a54d60e9cc79be1bc48 \
+ --hash=sha256:9ad459e99793fa6e13bd5b7e6792c8f9190b4e5a1b45c63aba14a4d0a7f1d5ff \
+ --hash=sha256:9bad06436568442575beb2d03389aa7456c690a5b05892c471215bfd8cf39460 \
+ --hash=sha256:a174837a64f5b16cab6f368171a1a03a27936b31699d167684073ff1c4237dac \
+ --hash=sha256:a7f7c643e8b1320fd958bf098aa7ecf70623a42ec5154e3be3be673f4c34d900 \
+ --hash=sha256:a9b61c19040397970d18d7737375cffd83b1f36a11dd4ad19f83a016f736c3ef \
+ --hash=sha256:b4b801ebe0b477be666696bda493a9be8356f1f0057a57f1e35cd26928823e5a \
+ --hash=sha256:b95e97e470fe60ed493fd9ae3911d8da4ebac16bd21f87ffa2b7c588bf22ea2c \
+ --hash=sha256:bc11d7e8c44a65115d05e2ab9989d1e045125d7be8e05a071a48bc76eb6d6040 \
+ --hash=sha256:bfc534409c5d4b0bf945af29e5d0ab075eae9eecbb549ff8a29280db822f34f9 \
+ --hash=sha256:c1a953995cccb9e25a4ae19e34316671e4e2edaebe4cf538229b1fc7109087b7 \
+ --hash=sha256:cb73dccfc991691c444acc8c0012bee8f2470da826a92e3a20bb333b1a7894e6 \
+ --hash=sha256:ce756d3a10d0c4067172804c9cc276ba9cc0ff47af9078ad439b075d1abdc29b \
+ --hash=sha256:d81fdb088defa30eb37bf390bb7dde35d3a83ec112ac8e33d75ab28cc29dd8b0 \
+ --hash=sha256:f21c9219ef48ca5ee78402d5cc831bd58ea27ce89beda894428bc67a52da5328
+ # via
+ # onnx-ir
+ # onnxscript
+mpmath==1.3.0 \
+ --hash=sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f \
+ --hash=sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c
+ # via sympy
+msgpack==1.2.1 \
+ --hash=sha256:01e2dd6c9b19d333a00282330cc8a73d38d8dabc306dc5b42cd668c3ac82e833 \
+ --hash=sha256:020e881a764b20d8d7ca1a54fc01b8175519d108e3c3f194fddc200bda95951a \
+ --hash=sha256:04c721c2c7448767e9e3f2520a475663d8ee0f09c31890f6d2bd70fd636a9647 \
+ --hash=sha256:05f340e47e7e47d2da8db9b53e1bb1d294369e9ef45a747441309f6650b8351d \
+ --hash=sha256:0a70e3cf2804a300d921bb0940426e35f4e489a23adfb77a808892241db0a064 \
+ --hash=sha256:0adcf06ffde0777c0e1a9b771a2b1c4226ba1bbf748c8efcc02fcdeca3299107 \
+ --hash=sha256:0c0d9802354507bcba62af19c17918e3eb437cc25e6f50657d511b5856a77aac \
+ --hash=sha256:0e2bf9280bceb5efca998435904b5d3e9fdbcc11d90dc9df30aec7973252b720 \
+ --hash=sha256:1233ee2dd0cefba127583de50ea654677277047d238303521db35def3d7b2e7c \
+ --hash=sha256:146ee4e9ce80b365c6d4c47073da9da7bcec473e58194ceee5dd7620ace77e06 \
+ --hash=sha256:1548006a91aa93c5da81f3bdcebc1a0d10cea2d25969754fbe848da622b2b895 \
+ --hash=sha256:196300e7e5d6e74d50f1607ab9c06c4a1484c383cd22defd727902591f7e8dde \
+ --hash=sha256:1dabedcd0f23559f3596428c6589c1cd8c6eaed3a0d720795b07b0225d769203 \
+ --hash=sha256:20466cca18c49c7292a8984bc15d65857b171e7264bdcb5f96baf8be238791fc \
+ --hash=sha256:298872ecf9e61950f1c6af4ca969b859ee91783bb920ef6e6172697d0c8aad74 \
+ --hash=sha256:29a3f6e9667868429d8240dfd063ea5ffdc1321c13d783aa23827a38de0dcb22 \
+ --hash=sha256:2eda0b7ebb1283a98d3e4492ac933c8af6aff59fd3df1c3ed024f536af4b1dc8 \
+ --hash=sha256:2ef59c659f289eddf8aa6623823f19fa2f40a4029266889eac7a2505dd210c35 \
+ --hash=sha256:2ff164c1b0bcb740b073b99e945234d0212852fa378e44a208c425379140dbeb \
+ --hash=sha256:33f14fba63278b714efe6ad07e50ea5f03d91537aa6a1c5f1ceca4cf44013ca9 \
+ --hash=sha256:350cb813d0af6e65d2f7ef0d729f7ff5be5a8bce03665892f43e5883d4ecc1b8 \
+ --hash=sha256:4202c74688ca06591f78cb18988228bd4cca2cc75d57b60008372892d2f1e6e6 \
+ --hash=sha256:4227224aaec8f7fbcbfbd4272319347b2bb4030366502600f8c45588c5187b07 \
+ --hash=sha256:491cc39455ca765fad51fb451bf2915eb2cf41192ab5801ce8d67c1d614fe056 \
+ --hash=sha256:575957e79cd51903a4e8495a242442949641e08f1efd5197b43bebd3ea7682b4 \
+ --hash=sha256:5ad5467fc3f68b5468e06c5f788d712e9f8ffc8b0cd1bcb160c105c1ee92dae7 \
+ --hash=sha256:5bb9c386f0a329c035ddbab4b72d1028bf9627add8dda41070288563d57ed1b1 \
+ --hash=sha256:5c24aa15d5963051e1a5c62b12c50cd705992502b5ec1f3bece6046f33c9fc24 \
+ --hash=sha256:5f6277e5f783c36786a145e0247fc189a03f35f84b251646e53592d2bc12b355 \
+ --hash=sha256:60926b75d00c8e816ef98f3034f484a8bc64242d66839cef4cf7e503142316a0 \
+ --hash=sha256:633727297ed063441fd1cda2288865487f33ad14eeb8831afb5f0c396a62cfce \
+ --hash=sha256:67f6dd22fa72a93752643f07889796d62739a13415ee630169a8ce764f86cf9f \
+ --hash=sha256:6d09badf350af2be9d189184e04e64cf54ad93569ab3d96fca58bd3e84aad707 \
+ --hash=sha256:6ee967f7c7e1df2890c671ff2ee51a28ded0efc95da3e507176dee881ce36c66 \
+ --hash=sha256:74847557e28ce71bd3c438a447ca90e4b507e997ddbdef8a12a7b283b86c156b \
+ --hash=sha256:779197a6513bab3c3632265e3d0f7cb3227e62510841a6f34f1eaa37efbb345e \
+ --hash=sha256:787c9bebb5833e8f6fc8abca3c0597683d8d87f56a8842b6b89c75a5f3176e2d \
+ --hash=sha256:7d31c0ac0c640f877804c67cb2bc9f4e23dc2db97e96c2e67fa27d38283b41f8 \
+ --hash=sha256:810b916696c86ef0deb3b74588480224df4c1b071136c34183e4a2a4284d7ac7 \
+ --hash=sha256:83efa1c898e0fc5380fc0cabbf75164c52e3b5cbb45973710d75821928380c73 \
+ --hash=sha256:85f57e960d877f2977f6430896191b04a21f8901b3b4baf2e4604329f4db5402 \
+ --hash=sha256:8b267ce94efb76fbd1b3373511420074ee3187f0f7811bf394531de13294735a \
+ --hash=sha256:8c2ed1e48cc0f460bf3c7780e7137ff21a4e18433451916f2442c1b21036cd7d \
+ --hash=sha256:8c7b398c56ff125feae96c2737abfec5595f1fa0aa186df60c56040b8accb95c \
+ --hash=sha256:8d00f177ca88a77c1cf848d204a38f249751650b601cb6532acc68805d8a8273 \
+ --hash=sha256:8ff92d7feeaf5bc26c51495b69e2f99ed97ab79346fb6555f44be7dd2ac6503b \
+ --hash=sha256:91054a783328e0ea7954b8771095705c8d2243b814743fbaadf14552c9c52c5d \
+ --hash=sha256:98b58bdb89c46190e4609bb36abe17c6d4105ad13f9c5f8f6f64d320f8ced3fb \
+ --hash=sha256:a28d076ca7c82b9c8728ad90b7147489449557038bed50e4241eb832395169b4 \
+ --hash=sha256:aa6c4be5d1c02a42b066ca6ddb71adf36432868fdcdb6ee87e634e86e0674190 \
+ --hash=sha256:aded5bdf32609dc7987a49bbbd15a8ef096193f96dd8bbeb791de729e650acf5 \
+ --hash=sha256:afc5febcd4c99effbc02b528e49d6fd0760b2b7d48c05239e345a5fa6e743d9a \
+ --hash=sha256:b50b727bd652bdc37d950336c848ef20ec54a4cafc38dce19b1cd86ad625d0f7 \
+ --hash=sha256:c1c79a604a2969a868a78b6ebd27a887e00c624f14f66b3038e0590cb23332d1 \
+ --hash=sha256:ca0dacff965c47afdc3749a8469d7302a8f801d6a28758d55120d75e66ce6889 \
+ --hash=sha256:d3567748a5107cb40cdf66a275430c2f87c07777698f4bfd25c35f44d533258c \
+ --hash=sha256:dc871b997a9370d855b7394465f2f350e847a5b806dd38dcc9c989e7d87da155 \
+ --hash=sha256:dd3bfe82d53edfe4b7fc9a7ec9761e23a7a5b1dac22264505af428253c29ed24 \
+ --hash=sha256:e3dc2feb0876209d9c38aa56cb1de169bd6c4348f1aa48271f241226590993e6 \
+ --hash=sha256:e4f1d0f8f98ade9634e01fb704a408f9336c0a8f1117b369f5db83dc7551d8b1 \
+ --hash=sha256:ec0e675d59150a6269ddc9139087c722292664a37d071a849c05c473350f1f2d \
+ --hash=sha256:ee1d9ed27d0497b848923746cf762ed2e7db24f4be7eec8e5cbe8c766aa707b7 \
+ --hash=sha256:f02cf17a6ca1abe29b5f980644f7551f94d71f2011509b26d8625ce038f0df64 \
+ --hash=sha256:f12038a35fabd52e56a3547bab42401af49a45caa6dd00b34c44de235bc93ee2 \
+ --hash=sha256:f310233ef7fb9c14e201c93639fe5f5260b005f56f0b29048e999c30935596cc \
+ --hash=sha256:f9389552ecf4784886345ead0647e4edc96bee37cbab05b75540f542f766c48c
+ # via librosa
+narwhals==2.24.0 \
+ --hash=sha256:42fdedf44e5b2ca7505630d45b4ac3058f38d8485cba9fe1652ca23152df7489 \
+ --hash=sha256:b5c0f684ccd9d7475b564111e319a4964abcf2baf79d3cf6b1003d06ac9b828d
+ # via scikit-learn
+networkx==3.6.1 \
+ --hash=sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509 \
+ --hash=sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762
+ # via torch
+nltk==3.10.2 \
+ --hash=sha256:2c7ccacb765c5e26b0cb60fb1b57080af522c6924d12a714a243305ba3637412 \
+ --hash=sha256:fcfd80fb77931868cea8357573c79838b8abc609942ef9914d1c9f6070d4645c
+ # via livekit-wakeword
+numba==0.66.0 \
+ --hash=sha256:0999e3ee1b18c48e1fb51d11af35ef59852c7f4f50569c9550c25faef0616ad1 \
+ --hash=sha256:2338cc0d43609fe448930848fd35a5bc688761b986f81b597a6f45cc0f8c9577 \
+ --hash=sha256:27951c47e0def9bf8afe580eb961102902e2fd23cb77924b7d9d7cc0f8b444cb \
+ --hash=sha256:380b2556a2019ccd1e956ae77dd257eaa39403f7520768b626d44b755112785e \
+ --hash=sha256:46ae5f2b19e2af3c33c2df100306a90ea2f981c8158b0390f8bf6c20eee7357e \
+ --hash=sha256:53ca5900b7cab15109796030113a6b28576bae5ad7bb507ad6dd1360ddd81ba4 \
+ --hash=sha256:63b943eb2c9ba371908ce2cd6dfc643db51fc40f7966993376a1701bc922f537 \
+ --hash=sha256:651a2b53298340956db26ecbe7ab043106b50a40c2807e66d617a4917245a4ab \
+ --hash=sha256:7c14c044c06b453ec3fa7715dfe75425e2ba72c73377a7ffde6d9ec511dfd94c \
+ --hash=sha256:8c1144ba1720ea59ad79f4f488ed54d149b2613b357f7e445678b7d0739c70e9 \
+ --hash=sha256:939316d5d8619751207b8972a67852b5a7646665298cb4de693cd6bf135152f4 \
+ --hash=sha256:aac69f3ccb8af100f5913c1241edc9692bad1cdd2508721713f426eb06c9a659 \
+ --hash=sha256:b075a4e7ebc43dc6294f223e2821659656209fd5e0ce53245877c23d66d6e1a9 \
+ --hash=sha256:b900e63a0e26c05ea9a6d5a3a5a0a177cb64c5011887bf43edb8c3ed2c38d363 \
+ --hash=sha256:bbd531c327557a9004507fa6bff06c53ab51a7a5776b75261bb9cef1efe2b2ea \
+ --hash=sha256:bd57790acd20f6a468e0ad333ef6b82355e309a92310fb7dff80e919f01a21a9 \
+ --hash=sha256:c5bfe5350284509ab0474390321454c3a8627a188af5b68c910e83df3e2db4a7 \
+ --hash=sha256:cc408c54b450f41582f4be1608f8981c1dcc44c7f40355cc150dd93015753407 \
+ --hash=sha256:cdf506775d9f02eb92a87bf5c5b1e0d25506fd18cafd769f4ed914a8feac73e7 \
+ --hash=sha256:d426178fb991a85714c43112a8ea7b9d9579ea856ad8dcdb9c1c3941903ba5be \
+ --hash=sha256:db7735d15ea17a283d6485b9fa3504769f78fd86e5146638ad5e8da57c031b9e \
+ --hash=sha256:e2b101f23b8b63978d334574d2039f27f0dccfe1d891756f33a2e2f3e4c88cf4 \
+ --hash=sha256:efe0d2d5099790df945e0cb6e1b3104bd965d7bbfac50d62f1d5d1d6ade0825d \
+ --hash=sha256:fb601841d9e02e6237bb6522e36d0741614be3cfe2b482a6f00a41b5ba209443 \
+ --hash=sha256:fc6629becb21a867d85401ec89f426dd24c484a4193ade8a38309debfd1529ca
+ # via librosa
+numpy==2.4.4 \
+ --hash=sha256:07077278157d02f65c43b1b26a3886bce886f95d20aabd11f87932750dfb14ed \
+ --hash=sha256:08f2e31ed5e6f04b118e49821397f12767934cfdd12a1ce86a058f91e004ee50 \
+ --hash=sha256:0aec54fd785890ecca25a6003fd9a5aed47ad607bbac5cd64f836ad8666f4959 \
+ --hash=sha256:0d35aea54ad1d420c812bfa0385c71cd7cc5bcf7c65fed95fc2cd02fe8c79827 \
+ --hash=sha256:0d4e437e295f18ec29bc79daf55e8a47a9113df44d66f702f02a293d93a2d6dd \
+ --hash=sha256:0dfd3f9d3adbe2920b68b5cd3d51444e13a10792ec7154cd0a2f6e74d4ab3233 \
+ --hash=sha256:1378871da56ca8943c2ba674530924bb8ca40cd228358a3b5f302ad60cf875fc \
+ --hash=sha256:15716cfef24d3a9762e3acdf87e27f58dc823d1348f765bbea6bef8c639bfa1b \
+ --hash=sha256:19710a9ca9992d7174e9c52f643d4272dcd1558c5f7af7f6f8190f633bd651a7 \
+ --hash=sha256:23cbfd4c17357c81021f21540da84ee282b9c8fba38a03b7b9d09ba6b951421e \
+ --hash=sha256:2483e4584a1cb3092da4470b38866634bafb223cbcd551ee047633fd2584599a \
+ --hash=sha256:27a8d92cd10f1382a67d7cf4db7ce18341b66438bdd9f691d7b0e48d104c2a9d \
+ --hash=sha256:28a650663f7314afc3e6ec620f44f333c386aad9f6fc472030865dc0ebb26ee3 \
+ --hash=sha256:2aa0613a5177c264ff5921051a5719d20095ea586ca88cc802c5c218d1c67d3e \
+ --hash=sha256:2c194dd721e54ecad9ad387c1d35e63dce5c4450c6dc7dd5611283dda239aabb \
+ --hash=sha256:2d19e6e2095506d1736b7d80595e0f252d76b89f5e715c35e06e937679ea7d7a \
+ --hash=sha256:2d390634c5182175533585cc89f3608a4682ccb173cc9bb940b2881c8d6f8fa0 \
+ --hash=sha256:30caa73029a225b2d40d9fae193e008e24b2026b7ee1a867b7ee8d96ca1a448e \
+ --hash=sha256:42c16925aa5a02362f986765f9ebabf20de75cdefdca827d14315c568dcab113 \
+ --hash=sha256:45dbed2ab436a9e826e302fcdcbe9133f9b0006e5af7168afb8963a6520da103 \
+ --hash=sha256:4636de7fd195197b7535f231b5de9e4b36d2c440b6e566d2e4e4746e6af0ca93 \
+ --hash=sha256:4a19d9dba1a76618dd86b164d608566f393f8ec6ac7c44f0cc879011c45e65af \
+ --hash=sha256:4bbc7f303d125971f60ec0aaad5e12c62d0d2c925f0ab1273debd0e4ba37aba5 \
+ --hash=sha256:4d6d57903571f86180eb98f8f0c839fa9ebbfb031356d87f1361be91e433f5b7 \
+ --hash=sha256:4e874c976154687c1f71715b034739b45c7711bec81db01914770373d125e392 \
+ --hash=sha256:51fc224f7ca4d92656d5a5eb315f12eb5fe2c97a66249aa7b5f562528a3be38c \
+ --hash=sha256:58c8b5929fcb8287cbd6f0a3fae19c6e03a5c48402ae792962ac465224a629a4 \
+ --hash=sha256:5a285b3b96f951841799528cd1f4f01cd70e7e0204b4abebac9463eecfcf2a40 \
+ --hash=sha256:5c70f1cc1c4efbe316a572e2d8b9b9cc44e89b95f79ca3331553fbb63716e2bf \
+ --hash=sha256:62d6b0f03b694173f9fcb1fb317f7222fd0b0b103e784c6549f5e53a27718c44 \
+ --hash=sha256:6a246d5914aa1c820c9443ddcee9c02bec3e203b0c080349533fae17727dfd1b \
+ --hash=sha256:6aa3236c78803afbcb255045fbef97a9e25a1f6c9888357d205ddc42f4d6eba5 \
+ --hash=sha256:6bbe4eb67390b0a0265a2c25458f6b90a409d5d069f1041e6aff1e27e3d9a79e \
+ --hash=sha256:715d1c092715954784bc79e1174fc2a90093dc4dc84ea15eb14dad8abdcdeb74 \
+ --hash=sha256:72944b19f2324114e9dc86a159787333b77874143efcf89a5167ef83cfee8af0 \
+ --hash=sha256:81f4a14bee47aec54f883e0cad2d73986640c1590eb9bfaaba7ad17394481e6e \
+ --hash=sha256:846300f379b5b12cc769334464656bc882e0735d27d9726568bc932fdc49d5ec \
+ --hash=sha256:86b6f55f5a352b48d7fbfd2dbc3d5b780b2d79f4d3c121f33eb6efb22e9a2015 \
+ --hash=sha256:874f200b2a981c647340f841730fc3a2b54c9d940566a3c4149099591e2c4c3d \
+ --hash=sha256:8a87ec22c87be071b6bdbd27920b129b94f2fc964358ce38f3822635a3e2e03d \
+ --hash=sha256:8b3b60bb7cba2c8c81837661c488637eee696f59a877788a396d33150c35d842 \
+ --hash=sha256:8e3ed142f2728df44263aaf5fb1f5b0b99f4070c553a0d7f033be65338329150 \
+ --hash=sha256:93e15038125dc1e5345d9b5b68aa7f996ec33b98118d18c6ca0d0b7d6198b7e8 \
+ --hash=sha256:989824e9faf85f96ec9c7761cd8d29c531ad857bfa1daa930cba85baaecf1a9a \
+ --hash=sha256:99d838547ace2c4aace6c4f76e879ddfe02bb58a80c1549928477862b7a6d6ed \
+ --hash=sha256:9b2aec6af35c113b05695ebb5749a787acd63cafc83086a05771d1e1cd1e555f \
+ --hash=sha256:9c585a1790d5436a5374bac930dad6ed244c046ed91b2b2a3634eb2971d21008 \
+ --hash=sha256:a7164afb23be6e37ad90b2f10426149fd75aee07ca55653d2aa41e66c4ef697e \
+ --hash=sha256:ac6b31e35612a26483e20750126d30d0941f949426974cace8e6b5c58a3657b0 \
+ --hash=sha256:ad2e2ef14e0b04e544ea2fa0a36463f847f113d314aa02e5b402fdf910ef309e \
+ --hash=sha256:b268594bccac7d7cf5844c7732e3f20c50921d94e36d7ec9b79e9857694b1b2f \
+ --hash=sha256:b5f0362dc928a6ecd9db58868fca5e48485205e3855957bdedea308f8672ea4a \
+ --hash=sha256:ba1f4fc670ed79f876f70082eff4f9583c15fb9a4b89d6188412de4d18ae2f40 \
+ --hash=sha256:ba203255017337d39f89bdd58417f03c4426f12beed0440cfd933cb15f8669c7 \
+ --hash=sha256:c901b15172510173f5cb310eae652908340f8dede90fff9e3bf6c0d8dfd92f83 \
+ --hash=sha256:c9b39d38a9bd2ae1becd7eac1303d031c5c110ad31f2b319c6e7d98b135c934d \
+ --hash=sha256:d2a8490669bfe99a233298348acc2d824d496dee0e66e31b66a6022c2ad74a5c \
+ --hash=sha256:dddbbd259598d7240b18c9d87c56a9d2fb3b02fe266f49a7c101532e78c1d871 \
+ --hash=sha256:df3775294accfdd75f32c74ae39fcba920c9a378a2fc18a12b6820aa8c1fb502 \
+ --hash=sha256:e44319a2953c738205bf3354537979eaa3998ed673395b964c1176083dd46252 \
+ --hash=sha256:e4a010c27ff6f210ff4c6ef34394cd61470d01014439b192ec22552ee867f2a8 \
+ --hash=sha256:e823b8b6edc81e747526f70f71a9c0a07ac4e7ad13020aa736bb7c9d67196115 \
+ --hash=sha256:e892aff75639bbef0d2a2cfd55535510df26ff92f63c92cd84ef8d4ba5a5557f \
+ --hash=sha256:eea7ac5d2dce4189771cedb559c738a71512768210dc4e4753b107a2048b3d0e \
+ --hash=sha256:ef4059d6e5152fa1a39f888e344c73fdc926e1b2dd58c771d67b0acfbf2aa67d \
+ --hash=sha256:f169b9a863d34f5d11b8698ead99febeaa17a13ca044961aa8e2662a6c7766a0 \
+ --hash=sha256:f2cf083b324a467e1ab358c105f6cad5ea950f50524668a80c486ff1db24e119 \
+ --hash=sha256:f8474c4241bc18b750be2abea9d7a9ec84f46ef861dbacf86a4f6e043401f79e \
+ --hash=sha256:f983334aea213c99992053ede6168500e5f086ce74fbc4acc3f2b00f5762e9db \
+ --hash=sha256:f9e75681b59ddaa5e659898085ae0eaea229d054f2ac0c7e563a62205a700121 \
+ --hash=sha256:fbc356aae7adf9e6336d336b9c8111d390a05df88f1805573ebb0807bd06fd1d \
+ --hash=sha256:fcfe2045fd2e8f3cb0ce9d4ba6dba6333b8fa05bb8a4939c908cd43322d14c7e
+ # via
+ # audiomentations
+ # contourpy
+ # librosa
+ # livekit-wakeword
+ # matplotlib
+ # ml-dtypes
+ # numba
+ # numpy-minmax
+ # numpy-rms
+ # onnx
+ # onnx-ir
+ # onnxruntime
+ # onnxruntime-gpu
+ # onnxscript
+ # scikit-learn
+ # scipy
+ # soundfile
+ # soxr
+numpy-minmax==0.6.0 \
+ --hash=sha256:057544ae33a5b69325c82089bad7c24ce9359900a3a7c200f13a4331c1273956 \
+ --hash=sha256:233709b9ed24d346abac4e66ed1275126464b470c184eedfc597dabb39d3085c \
+ --hash=sha256:372b914c23879ee5ca8c06099fb1a1a9d9218154898311ca231b15a194af6c33 \
+ --hash=sha256:40631518bde9a8b62e5d2b46e8b55bf6e79682082902853c7af7a90de3275d23 \
+ --hash=sha256:4305df092aa18f72ee832e447c6f54f8bc4c3c1b53dd72a3c8cf73ae318410f9 \
+ --hash=sha256:4333a1b6398770b195700e55774dd903f69f7d8f32ba45c00cbc57108ce90b1e \
+ --hash=sha256:4394db4e07f968129c590325cde5701cb8d41b9f04d58b9649afdb8125f4a3de \
+ --hash=sha256:47557fd215dcf476429c0e5e2f8cdf82c17ef668db1c2c73a4119313a39af886 \
+ --hash=sha256:51f3e0944d8182aff445c2a567d5c6c64ec034032c0ba33aa1d899cc52ecd46a \
+ --hash=sha256:562533d913b91947dca4b50165bd114f05c23a217af9282b0d62697f03e647ff \
+ --hash=sha256:5690f662b18ca1ce5c3f1be008c7fa45ab9bc0ceb5f296aa8ce571cd8648303f \
+ --hash=sha256:5a337cbea55e4ae41d49fdf9060ac21df910206fbd4a8b72f9218b1fa55073db \
+ --hash=sha256:63417210b6029722acd542a38510608fb5209d0bec6c74ffcdbcbb22d6d544fe \
+ --hash=sha256:6d5442ce5ab1aaf8f6fccdbd0bbcf943613a2aee3efff4f36485c48c6346b24e \
+ --hash=sha256:76a6d465dfcb071c26b772c31099d53482900574b4b8e1bab1df24bf7c675c8a \
+ --hash=sha256:814b44ed920a71d578c20fbdfa62530d2895fbf30378bb2b4f04750424d99698 \
+ --hash=sha256:8e20496469517dca02a635fb60a83436276b903a1de3a99886f72a5a739d00c1 \
+ --hash=sha256:9a6bef2cc5d8d0105cb59e357db4607fa299373a3c32fe395fb6fe81c4f90c05 \
+ --hash=sha256:9ace7bfefb7dcb69831639f50d59084d7b50392277c86260ae74e5252f376f5a \
+ --hash=sha256:9d714c8ae01600dc052bb84c5d71493e43c14d0c9173dc9d4e3a9ae58c512831 \
+ --hash=sha256:a0569b36b193455f9319d74300be8c4b78e7985a8dbd3d8c0eeae57f641cb8f4 \
+ --hash=sha256:a391767662d473b573acef80c41765ba9214c159d425e0559861bea0f8e85888 \
+ --hash=sha256:ab32f1d62274b008f41f4cff9cacc6d112143c1bbbf35c09a86d7c57b220c7eb \
+ --hash=sha256:b215a3881cf350b40bd99d2c6de99c1d7c6d2c94055190752082790ee93d2dfc \
+ --hash=sha256:c0cab75f4723f993462402b03976793090baceddb387e12ffcee1cb933d83147 \
+ --hash=sha256:c7087df1ea0945b8bd8aea59ef7400d976fd20a2b35aae8589afcf4bda0dbac2 \
+ --hash=sha256:c88f13fbc25bcf16e5747fd98badeef55b3419a9a99dba344d6716d25d92ca68 \
+ --hash=sha256:d0109f3fbedc4789e11239bf1b4580873316cd8d024cb1a1c9cd4620206960c1 \
+ --hash=sha256:d2462d77158ba137974ac4fc0eff8f4e5f19663ba567432dd3f2407da8d8eb4a \
+ --hash=sha256:d68d31f7a9c7434d71e5c894c2da17be1d61db6479a2f120db11ae31951ee332 \
+ --hash=sha256:de5c941a3d0b24c1f5d3244297b81626f06420128b97a6cae3d411911a4d9e78 \
+ --hash=sha256:e61dbc0fdfb52d5a5f2043fdf738c989559f0c0770c8731add48e9887277d542 \
+ --hash=sha256:e917b457aa446558773b12bee8bfc0059de022711645172f56b631530b7fd49c \
+ --hash=sha256:ea6f626f47f04f0d9da8baa413877c4189c3c74face33cc93f5f31d28a8ce24c \
+ --hash=sha256:fadd33cda26bf8353ca530146393894ddef68f2a95c37e76d76bdcbb63b01a48 \
+ --hash=sha256:fbcf93a976ac3e13ac57d21aedb481e288e3f0c4a6fd6cbe783c134bb7066ce3 \
+ --hash=sha256:fe2b6fe2f210f7a1c726aa302f7f173fed95e9e2684cbed3fd440f68c8d9ff9f
+ # via audiomentations
+numpy-rms==0.7.0 \
+ --hash=sha256:02e999462de9013810180f1474871add5f8bcbd77fa88dd526b361edd2776eb3 \
+ --hash=sha256:02f17eb8d8e92a28c5d0b116326a5986224e8e39b2a663a0040039a251d3c4d3 \
+ --hash=sha256:03fedab196788da36dfb0f1686b42a873fa3ffa863a8eefee326cf11321e4395 \
+ --hash=sha256:187118a306c9b19ac495701df56b7e289abf71a83bb839bf6b091f3d45dd91c9 \
+ --hash=sha256:19db4fdebcdedea73ce515b122daf66eb04c472db99c27b8a2450ba4a45681d5 \
+ --hash=sha256:1dc3270487c76fc912f2bcb5646aadb04f414b2375913cf9d7570289e7f86553 \
+ --hash=sha256:1e66ae000d52a473bba3da64b6354b39054b961d049d6d5020088ba10b588ac4 \
+ --hash=sha256:284c2b6c92a49c72723e76b1890437aa0a8e5bb06471efa334dd6351179d47b0 \
+ --hash=sha256:3e7840030d17b83f0b43154c2eb7d7f7dcea6d0bc0e8c943f19e2eece420a4a5 \
+ --hash=sha256:45d5912e12fb0a2358b6bb10e7c0d869f0afbeca3a64d62c01a5e1225d8be8fa \
+ --hash=sha256:468e7f50a0ad47b8f05939544bf2c2c286de5c543942768204de61535ba2b047 \
+ --hash=sha256:47d59249ae5d323453d768e33b8beebdb5962665edf6b77eab0ac9dd9de9ffdd \
+ --hash=sha256:55806bae5c46d0f25767f612cc168ab376607833adf2de42b255b67a834edd7d \
+ --hash=sha256:56d52af930570ec943511ecb4830543e7d2f15baa8b3faec4606cd079355d0ee \
+ --hash=sha256:5f4c1d70629c75941992a5371195818eec28b58e9862794a9046d60cd4277944 \
+ --hash=sha256:632a80ebe6bb809a735da5176f50bc15c7673d2c0d2e20170848cf403272e07e \
+ --hash=sha256:6b0b36480020450eccb8076aff8331ee313431adc6fef66ec74324244702ed80 \
+ --hash=sha256:6d1e08da738e70c1da2eda2b76db3f72e4aeccfb66069151e3090d9299941005 \
+ --hash=sha256:706882f0c540e2735fa6586ee97ca27c2d4fc442df08f3bf96b03ed363c57656 \
+ --hash=sha256:75e2b1eb05644d12f50c0f7dd793ac236fb1e3c9b2543ea45d9cb22e57485ad2 \
+ --hash=sha256:7b2061e329dc3b22db46c67219ff08571132e45f6fef5d198f1886e549a6c8ce \
+ --hash=sha256:7f6ae7ec54752ae281bb042686be7df7d506b49c30102a8045d9ef31fd0c2103 \
+ --hash=sha256:83de0f0e842d15b3caef8bf15f73b260f06334046768c444eb9debe4c3e4afea \
+ --hash=sha256:8746c3a1b8ea772faf9fa5a6cfb453a628009ee08e7a4ebc87e07dac6f79ffe5 \
+ --hash=sha256:8e56b2499f205882dab42d3a9265c6ee8851963d1809478c1a09bfa4354e8709 \
+ --hash=sha256:a4aaa0ddff94446daf188b2c829915463e68a5db90422da3d43302e078c2b513 \
+ --hash=sha256:ae9d25f4adff1d66a8d6bade3a9783de9b8028c315fa2b13952c1b23d1e393b6 \
+ --hash=sha256:b6457bcd7c5af338d9e88be58d5a1e9977b6fc5dc056192bfdf8c09e06fad2ed \
+ --hash=sha256:b70abd788f5258ac9ca87a68433af2ce566d4262df5b01f00055fe9d316d45ce \
+ --hash=sha256:b734c5d344ff56abdab9241211eeef19a453b7c42f274613b7fac16e71156903 \
+ --hash=sha256:c7ed21348a3e32485d8edd6ec770845a366eba3fc3757122b4a6e12dac76493c \
+ --hash=sha256:cafd5175b8568ef97acf933dcd4aef52d7837167bb0b1eac79a6a717f6ce9041 \
+ --hash=sha256:cc25c114c92b1eacf1fdeae91cffeca46e4423b90de5f27488675639b38281d8 \
+ --hash=sha256:d1f13af29639fd3ca079d8721d5dc965cf9da36366abe04a35e4c22b8c5e4c95 \
+ --hash=sha256:d2a18cf6039a5605bc06b64d0e80f0492cf90d5d68c12e701bb0d103989f1e09 \
+ --hash=sha256:d846ed0608ca70625b3d4c4e99a60b605df3b4388f15dd95e723ae4f3284e449 \
+ --hash=sha256:d84b13126446955d5d46231d34c27af53cd9a6ef784ee70e606891fcf8386816 \
+ --hash=sha256:da517118326497ec442bba7d60acdf5352a6dd1cee7a7e75a208fb351140df51 \
+ --hash=sha256:dc26f386865e74c84f2468f0b88bd7205184711c06eaf61991dcf9f898c13909 \
+ --hash=sha256:f769d43dbf7ca71fd99c96d2be24251ad3cb520d4b8cb696fa2024f0ed950b53 \
+ --hash=sha256:f934dbf9b9e3ce3d4813d6da33bc090671113cf09e81a713926746e945ced534 \
+ --hash=sha256:ffe5ea65caa3287ce366f1a495e0d166dd07ebbe17864b3a8054f80989d53d7f
+ # via audiomentations
+nvidia-cublas-cu12==12.6.4.1 \
+ --hash=sha256:08ed2686e9875d01b58e3cb379c6896df8e76c75e0d4a7f7dace3d7b6d9ef8eb \
+ --hash=sha256:235f728d6e2a409eddf1df58d5b0921cf80cfa9e72b9f2775ccb7b4a87984668 \
+ --hash=sha256:9e4fa264f4d8a4eb0cdbd34beadc029f453b3bafae02401e999cf3d5a5af75f8
+ # via
+ # nvidia-cudnn-cu12
+ # nvidia-cusolver-cu12
+ # torch
+nvidia-cuda-cupti-cu12==12.6.80 \
+ --hash=sha256:166ee35a3ff1587f2490364f90eeeb8da06cd867bd5b701bf7f9a02b78bc63fc \
+ --hash=sha256:358b4a1d35370353d52e12f0a7d1769fc01ff74a191689d3870b2123156184c4 \
+ --hash=sha256:6768bad6cab4f19e8292125e5f1ac8aa7d1718704012a0e3272a6f61c4bce132 \
+ --hash=sha256:a3eff6cdfcc6a4c35db968a06fcadb061cbc7d6dde548609a941ff8701b98b73 \
+ --hash=sha256:bbe6ae76e83ce5251b56e8c8e61a964f757175682bbad058b170b136266ab00a
+ # via torch
+nvidia-cuda-nvrtc-cu12==12.6.77 \
+ --hash=sha256:35b0cc6ee3a9636d5409133e79273ce1f3fd087abb0532d2d2e8fff1fe9efc53 \
+ --hash=sha256:5847f1d6e5b757f1d2b3991a01082a44aad6f10ab3c5c0213fa3e25bddc25a13 \
+ --hash=sha256:f7007dbd914c56bd80ea31bc43e8e149da38f68158f423ba845fc3292684e45a
+ # via torch
+nvidia-cuda-runtime-cu12==12.6.77 \
+ --hash=sha256:6116fad3e049e04791c0256a9778c16237837c08b27ed8c8401e2e45de8d60cd \
+ --hash=sha256:86c58044c824bf3c173c49a2dbc7a6c8b53cb4e4dca50068be0bf64e9dab3f7f \
+ --hash=sha256:a84d15d5e1da416dd4774cb42edf5e954a3e60cc945698dc1d5be02321c44dc8 \
+ --hash=sha256:ba3b56a4f896141e25e19ab287cd71e52a6a0f4b29d0d31609f60e3b4d5219b7 \
+ --hash=sha256:d461264ecb429c84c8879a7153499ddc7b19b5f8d84c204307491989a365588e
+ # via torch
+nvidia-cudnn-cu12==9.5.1.17 \
+ --hash=sha256:30ac3869f6db17d170e0e556dd6cc5eee02647abc31ca856634d5a40f82c15b2 \
+ --hash=sha256:9fd4584468533c61873e5fda8ca41bac3a38bcb2d12350830c69b0a96a7e4def \
+ --hash=sha256:d7af0f8a4f3b4b9dbb3122f2ef553b45694ed9c384d5a75bab197b8eefb79ab8
+ # via torch
+nvidia-cufft-cu12==11.3.0.4 \
+ --hash=sha256:6048ebddfb90d09d2707efb1fd78d4e3a77cb3ae4dc60e19aab6be0ece2ae464 \
+ --hash=sha256:768160ac89f6f7b459bee747e8d175dbf53619cfe74b2a5636264163138013ca \
+ --hash=sha256:8510990de9f96c803a051822618d42bf6cb8f069ff3f48d93a8486efdacb48fb \
+ --hash=sha256:ccba62eb9cef5559abd5e0d54ceed2d9934030f51163df018532142a8ec533e5 \
+ --hash=sha256:d16079550df460376455cba121db6564089176d9bac9e4f360493ca4741b22a6
+ # via torch
+nvidia-cufile-cu12==1.11.1.6 \
+ --hash=sha256:8f57a0051dcf2543f6dc2b98a98cb2719c37d3cee1baba8965d57f3bbc90d4db \
+ --hash=sha256:cc23469d1c7e52ce6c1d55253273d32c565dd22068647f3aa59b3c6b005bf159
+ # via torch
+nvidia-curand-cu12==10.3.7.77 \
+ --hash=sha256:6d6d935ffba0f3d439b7cd968192ff068fafd9018dbf1b85b37261b13cfc9905 \
+ --hash=sha256:6e82df077060ea28e37f48a3ec442a8f47690c7499bff392a5938614b56c98d8 \
+ --hash=sha256:7b2ed8e95595c3591d984ea3603dd66fe6ce6812b886d59049988a712ed06b6e \
+ --hash=sha256:99f1a32f1ac2bd134897fc7a203f779303261268a65762a623bf30cc9fe79117 \
+ --hash=sha256:a42cd1344297f70b9e39a1e4f467a4e1c10f1da54ff7a85c12197f6c652c8bdf
+ # via torch
+nvidia-cusolver-cu12==11.7.1.2 \
+ --hash=sha256:0ce237ef60acde1efc457335a2ddadfd7610b892d94efee7b776c64bb1cac9e0 \
+ --hash=sha256:6813f9d8073f555444a8705f3ab0296d3e1cb37a16d694c5fc8b862a0d8706d7 \
+ --hash=sha256:6cf28f17f64107a0c4d7802be5ff5537b2130bfc112f25d5a30df227058ca0e6 \
+ --hash=sha256:dbbe4fc38ec1289c7e5230e16248365e375c3673c9c8bac5796e2e20db07f56e \
+ --hash=sha256:e9e49843a7707e42022babb9bcfa33c29857a93b88020c4e4434656a655b698c
+ # via torch
+nvidia-cusparse-cu12==12.5.4.2 \
+ --hash=sha256:23749a6571191a215cb74d1cdbff4a86e7b19f1200c071b3fcf844a5bea23a2f \
+ --hash=sha256:4acb8c08855a26d737398cba8fb6f8f5045d93f82612b4cfd84645a2332ccf20 \
+ --hash=sha256:7556d9eca156e18184b94947ade0fba5bb47d69cec46bf8660fd2c71a4b48b73 \
+ --hash=sha256:7aa32fa5470cf754f72d1116c7cbc300b4e638d3ae5304cfa4a638a5b87161b1 \
+ --hash=sha256:d25b62fb18751758fe3c93a4a08eff08effedfe4edf1c6bb5afd0890fe88f887
+ # via
+ # nvidia-cusolver-cu12
+ # torch
+nvidia-cusparselt-cu12==0.6.3 \
+ --hash=sha256:3b325bcbd9b754ba43df5a311488fca11a6b5dc3d11df4d190c000cf1a0765c7 \
+ --hash=sha256:8371549623ba601a06322af2133c4a44350575f5a3108fb75f3ef20b822ad5f1 \
+ --hash=sha256:e5c8a26c36445dd2e6812f1177978a24e2d37cacce7e090f297a688d1ec44f46
+ # via torch
+nvidia-nccl-cu12==2.26.2 \
+ --hash=sha256:5c196e95e832ad30fbbb50381eb3cbd1fadd5675e587a548563993609af19522 \
+ --hash=sha256:694cf3879a206553cc9d7dbda76b13efaf610fdb70a50cba303de1b0d1530ac6
+ # via torch
+nvidia-nvjitlink-cu12==12.6.85 \
+ --hash=sha256:cf4eaa7d4b6b543ffd69d6abfb11efdeb2db48270d94dfd3a452c24150829e41 \
+ --hash=sha256:e61120e52ed675747825cdd16febc6a0730537451d867ee58bee3853b1b13d1c \
+ --hash=sha256:eedc36df9e88b682efe4309aa16b5b4e78c2407eac59e8c10a6a47535164369a
+ # via
+ # nvidia-cufft-cu12
+ # nvidia-cusolver-cu12
+ # nvidia-cusparse-cu12
+ # torch
+nvidia-nvtx-cu12==12.6.77 \
+ --hash=sha256:2fb11a4af04a5e6c84073e6404d26588a34afd35379f0855a99797897efa75c0 \
+ --hash=sha256:6574241a3ec5fdc9334353ab8c479fe75841dbe8f4532a8fc97ce63503330ba1 \
+ --hash=sha256:adcaabb9d436c9761fca2b13959a2d237c5f9fd406c8e4b723c695409ff88059 \
+ --hash=sha256:b90bed3df379fa79afbd21be8e04a0314336b8ae16768b58f2d34cb1d04cd7d2 \
+ --hash=sha256:f44f8d86bb7d5629988d61c8d3ae61dddb2015dee142740536bc7481b022fe4b
+ # via torch
+onnx==1.17.0 \
+ --hash=sha256:0141c2ce806c474b667b7e4499164227ef594584da432fd5613ec17c1855e311 \
+ --hash=sha256:081ec43a8b950171767d99075b6b92553901fa429d4bc5eb3ad66b36ef5dbe3a \
+ --hash=sha256:0e906e6a83437de05f8139ea7eaf366bf287f44ae5cc44b2850a30e296421f2f \
+ --hash=sha256:23b8d56a9df492cdba0eb07b60beea027d32ff5e4e5fe271804eda635bed384f \
+ --hash=sha256:317870fca3349d19325a4b7d1b5628f6de3811e9710b1e3665c68b073d0e68d7 \
+ --hash=sha256:3193a3672fc60f1a18c0f4c93ac81b761bc72fd8a6c2035fa79ff5969f07713e \
+ --hash=sha256:38b5df0eb22012198cdcee527cc5f917f09cce1f88a69248aaca22bd78a7f023 \
+ --hash=sha256:3d955ba2939878a520a97614bcf2e79c1df71b29203e8ced478fa78c9a9c63c2 \
+ --hash=sha256:3e19fd064b297f7773b4c1150f9ce6213e6d7d041d7a9201c0d348041009cdcd \
+ --hash=sha256:48ca1a91ff73c1d5e3ea2eef20ae5d0e709bb8a2355ed798ffc2169753013fd3 \
+ --hash=sha256:4a183c6178be001bf398260e5ac2c927dc43e7746e8638d6c05c20e321f8c949 \
+ --hash=sha256:4f3fb5cc4e2898ac5312a7dc03a65133dd2abf9a5e520e69afb880a7251ec97a \
+ --hash=sha256:5ca7a0894a86d028d509cdcf99ed1864e19bfe5727b44322c11691d834a1c546 \
+ --hash=sha256:659b8232d627a5460d74fd3c96947ae83db6d03f035ac633e20cd69cfa029227 \
+ --hash=sha256:67e1c59034d89fff43b5301b6178222e54156eadd6ab4cd78ddc34b2f6274a66 \
+ --hash=sha256:76884fe3e0258c911c749d7d09667fb173365fd27ee66fcedaf9fa039210fd13 \
+ --hash=sha256:8167295f576055158a966161f8ef327cb491c06ede96cc23392be6022071b6ed \
+ --hash=sha256:95c03e38671785036bb704c30cd2e150825f6ab4763df3a4f1d249da48525957 \
+ --hash=sha256:d545335cb49d4d8c47cc803d3a805deb7ad5d9094dc67657d66e568610a36d7d \
+ --hash=sha256:d6fc3a03fc0129b8b6ac03f03bc894431ffd77c7d79ec023d0afd667b4d35869 \
+ --hash=sha256:dfd777d95c158437fda6b34758f0877d15b89cbe9ff45affbedc519b35345cf9 \
+ --hash=sha256:e4673276b558b5b572b960b7f9ef9214dce9305673683eb289bb97a7df379a4b \
+ --hash=sha256:ea5023a8dcdadbb23fd0ed0179ce64c1f6b05f5b5c34f2909b4e927589ebd0e4 \
+ --hash=sha256:ecf2b617fd9a39b831abea2df795e17bac705992a35a98e1f0363f005c4a5247 \
+ --hash=sha256:f01a4b63d4e1d8ec3e2f069e7b798b2955810aa434f7361f01bc8ca08d69cce4 \
+ --hash=sha256:f0e437f8f2f0c36f629e9743d28cf266312baa90be6a899f405f78f2d4cb2e1d
+ # via
+ # -r deploy/wakeword-training/requirements.in
+ # livekit-wakeword
+ # onnx-ir
+ # onnxscript
+onnx-ir==0.2.1 \
+ --hash=sha256:8b8b10a93f43e65962104de6070c43c5dacb0e3cdfefc7c8059dd83c9db64f35 \
+ --hash=sha256:c7285da889312f91882de2092e298a9eeeefbfc1d1951c49d983992967eb09a7
+ # via onnxscript
+onnxruntime==1.28.0 \
+ --hash=sha256:07fb3cbe990d6bf0ab3c22bfbbfb0e314151266046ea6edb4a07f556b4258c5f \
+ --hash=sha256:0a83bdb70d143cede762b677789bf2a7acca54b3fb82565601d5c30695aa933c \
+ --hash=sha256:0d650aeee29368414367b65529e90afe4bf1bab76254789063b8b2f7ea3013c8 \
+ --hash=sha256:0faf85fb447a663c9cdadc39bd6b19bdf7bedded6699e45731b9b36c46fd993d \
+ --hash=sha256:1a1a19175464665c9b8d50bc916f216cc0b569110045b7bbca8f9f290b186f58 \
+ --hash=sha256:26ff0fdd06efb6c155bae95387a09db1a2be89c7a03e4d0bffd5a171cc2826da \
+ --hash=sha256:31410f544674f534c2f27348af52ef81682ca9c8719154bf4d48f0ef23823b1e \
+ --hash=sha256:4e81a23df16e7acb9d51b06d30cc098e49315ef9180f97bc2221d167b4b04d9c \
+ --hash=sha256:4f6e92367ddce1e4d33cf295024f40192be6c6171a09208f515ba169ced06c8e \
+ --hash=sha256:54fa221d669282bd8f582708ce4c96010a7e9fb0661f9006b37fe2fedafb73fe \
+ --hash=sha256:6afdc83f1317c136e92fc29f5ee9f058de59d87c0b22cee3fdbfbaa0ccc2098a \
+ --hash=sha256:8adff67a3f28257b37cfe945a7e952e4122666aa8c91a0380862e9fd4c2ed19f \
+ --hash=sha256:8d66f9ceb29909c70839e4e4fb3435c7b490050d8f162bd5f3aba4ca01ee517f \
+ --hash=sha256:a166b78ee04f3a37fa1ef82034b6a3ce96d9684e582d4d30b296de83e9998bb5 \
+ --hash=sha256:ac301f53b1930402fc46c368e268acfed02f3207272aaff05070d7e09f96f031 \
+ --hash=sha256:bc2565e487b4896fb988d6383577d875d958e071fc5f6c3550bd5d02ae98264b \
+ --hash=sha256:c35064f9b3c43c81c5d5d282091401d0f1ff22796d93ccade4ea2ece5e137ab8 \
+ --hash=sha256:cfab507abe09d6ffeb817eee07944d452fdc0b00fdcef34cab4db10a45e378c7 \
+ --hash=sha256:e02feeb0165c5f13b4cc954738078d59b90128516ac12b671ee24a530242bf02 \
+ --hash=sha256:e562d6e36a749f6764481c0ddb0f2af3d0b5a3c164291361d08803c557f369af \
+ --hash=sha256:f2a3b9e30ce880d4ca54999cb313569e36da4f62eefe25f87be18f43e9a3a4d5 \
+ --hash=sha256:f5c5daabd28aad610f83fdcf32acec8fb57e6adc6c6a39fe2a3c755db957b410 \
+ --hash=sha256:f649dd6f6452d12a8059888aa489fe519e062e18793dac72b9efa0f9fdb64135 \
+ --hash=sha256:f7f022a1103cae591c75fc4565589a515f2ddd14a6ac8e8a05812dfeda142e28
+ # via livekit-wakeword
+onnxruntime-gpu==1.22.0 \
+ --hash=sha256:082c9744b0470448a7d814babe058d0b5074380f32839aa655e5e5f9975f6d94 \
+ --hash=sha256:0f1719f7cca76075b398a7d0466ead62d78fd2b8c0ea053dcf65d80c813103e8 \
+ --hash=sha256:6db51c375ffe3887fe5cce61a0ae054e5e9c1eaf0603f8a106589a819976e4b2 \
+ --hash=sha256:86b064c8f6cbe6da03f51f46351237d985f8fd5eb907d3f9997ea91881131a13 \
+ --hash=sha256:89cfd71e1ba17a4668e8770e344f22cde64bfd70b2ad3d03b8a390d4414b5995 \
+ --hash=sha256:965da7d33a54917e8e5176f292cc22640819f328370f4fb86087908745b03708 \
+ --hash=sha256:c3e635792931c5edf48a6a44b8daf4f74a9458e2d60245d24d91e29b6c1c7aa5 \
+ --hash=sha256:d1559033601d71023d72a8e279b2575a104de5f46e136f87534206aa2044eb1c \
+ --hash=sha256:d30c1512f22b1f01bacb4f177d49cbefd23e0f4bef56066f1282992d133e6ff8
+ # via -r deploy/wakeword-training/requirements.in
+onnxscript==0.7.1 \
+ --hash=sha256:309fb86484b11fa4ded90dba580e0d63f1a0827588e521cecaf2eeddb46d6e86 \
+ --hash=sha256:544763b7fdef49940cdd9412ff5135cbae96d59ac6bc1921457f21280f40f4b7
+ # via livekit-wakeword
+packaging==24.1 \
+ --hash=sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124
+ # via
+ # huggingface-hub
+ # lazy-loader
+ # matplotlib
+ # onnxruntime
+ # onnxruntime-gpu
+ # onnxscript
+ # pooch
+ # torch-pitch-shift
+pillow==12.2.0 \
+ --hash=sha256:00a2865911330191c0b818c59103b58a5e697cae67042366970a6b6f1b20b7f9 \
+ --hash=sha256:01afa7cf67f74f09523699b4e88c73fb55c13346d212a59a2db1f86b0a63e8c5 \
+ --hash=sha256:03e7e372d5240cc23e9f07deca4d775c0817bffc641b01e9c3af208dbd300987 \
+ --hash=sha256:03f6fab9219220f041c74aeaa2939ff0062bd5c364ba9ce037197f4c6d498cd9 \
+ --hash=sha256:042db20a421b9bafecc4b84a8b6e444686bd9d836c7fd24542db3e7df7baad9b \
+ --hash=sha256:0538bd5e05efec03ae613fd89c4ce0368ecd2ba239cc25b9f9be7ed426b0af1f \
+ --hash=sha256:0a34329707af4f73cf1782a36cd2289c0368880654a2c11f027bcee9052d35dd \
+ --hash=sha256:0c838a5125cee37e68edec915651521191cef1e6aa336b855f495766e77a366e \
+ --hash=sha256:144748b3af2d1b358d41286056d0003f47cb339b8c43a9ea42f5fea4d8c66b6e \
+ --hash=sha256:1610dd6c61621ae1cf811bef44d77e149ce3f7b95afe66a4512f8c59f25d9ebe \
+ --hash=sha256:1e1757442ed87f4912397c6d35a0db6a7b52592156014706f17658ff58bbf795 \
+ --hash=sha256:22db17c68434de69d8ecfc2fe821569195c0c373b25cccb9cbdacf2c6e53c601 \
+ --hash=sha256:25373b66e0dd5905ed63fa3cae13c82fbddf3079f2c8bf15c6fb6a35586324c1 \
+ --hash=sha256:2bb4a8d594eacdfc59d9e5ad972aa8afdd48d584ffd5f13a937a664c3e7db0ed \
+ --hash=sha256:2c727a6d53cb0018aadd8018c2b938376af27914a68a492f59dfcaca650d5eea \
+ --hash=sha256:2d192a155bbcec180f8564f693e6fd9bccff5a7af9b32e2e4bf8c9c69dbad6b5 \
+ --hash=sha256:2e589959f10d9824d39b350472b92f0ce3b443c0a3442ebf41c40cb8361c5b97 \
+ --hash=sha256:2e5a76d03a6c6dcef67edabda7a52494afa4035021a79c8558e14af25313d453 \
+ --hash=sha256:325ca0528c6788d2a6c3d40e3568639398137346c3d6e66bb61db96b96511c98 \
+ --hash=sha256:34c0d99ecccea270c04882cb3b86e7b57296079c9a4aff88cb3b33563d95afaa \
+ --hash=sha256:390ede346628ccc626e5730107cde16c42d3836b89662a115a921f28440e6a3b \
+ --hash=sha256:394167b21da716608eac917c60aa9b969421b5dcbbe02ae7f013e7b85811c69d \
+ --hash=sha256:3997232e10d2920a68d25191392e3a4487d8183039e1c74c2297f00ed1c50705 \
+ --hash=sha256:3adc9215e8be0448ed6e814966ecf3d9952f0ea40eb14e89a102b87f450660d8 \
+ --hash=sha256:3e080565d8d7c671db5802eedfb438e5565ffa40115216eabb8cd52d0ecce024 \
+ --hash=sha256:4a6c9fa44005fa37a91ebfc95d081e8079757d2e904b27103f4f5fa6f0bf78c0 \
+ --hash=sha256:4bfd07bc812fbd20395212969e41931001fd59eb55a60658b0e5710872e95286 \
+ --hash=sha256:4e6c62e9d237e9b65fac06857d511e90d8461a32adcc1b9065ea0c0fa3a28150 \
+ --hash=sha256:50d8520da2a6ce0af445fa6d648c4273c3eeefbc32d7ce049f22e8b5c3daecc2 \
+ --hash=sha256:51c4167c34b0d8ba05b547a3bb23578d0ba17b80a5593f93bd8ecb123dd336a3 \
+ --hash=sha256:56a3f9c60a13133a98ecff6197af34d7824de9b7b38c3654861a725c970c197b \
+ --hash=sha256:56b25336f502b6ed02e889f4ece894a72612fe885889a6e8c4c80239ff6e5f5f \
+ --hash=sha256:57850958fe9c751670e49b2cecf6294acc99e562531f4bd317fa5ddee2068463 \
+ --hash=sha256:58f62cc0f00fd29e64b29f4fd923ffdb3859c9f9e6105bfc37ba1d08994e8940 \
+ --hash=sha256:5c0a9f29ca8e79f09de89293f82fc9b0270bb4af1d58bc98f540cc4aedf03166 \
+ --hash=sha256:5cdfebd752ec52bf5bb4e35d9c64b40826bc5b40a13df7c3cda20a2c03a0f5ed \
+ --hash=sha256:5d04bfa02cc2d23b497d1e90a0f927070043f6cbf303e738300532379a4b4e0f \
+ --hash=sha256:5d2fd0fa6b5d9d1de415060363433f28da8b1526c1c129020435e186794b3795 \
+ --hash=sha256:62f5409336adb0663b7caa0da5c7d9e7bdbaae9ce761d34669420c2a801b2780 \
+ --hash=sha256:632ff19b2778e43162304d50da0181ce24ac5bb8180122cbe1bf4673428328c7 \
+ --hash=sha256:6562ace0d3fb5f20ed7290f1f929cae41b25ae29528f2af1722966a0a02e2aa1 \
+ --hash=sha256:673aa32138f3e7531ccdbca7b3901dba9b70940a19ccecc6a37c77d5fdeb05b5 \
+ --hash=sha256:6a6e67ea2e6feda684ed370f9a1c52e7a243631c025ba42149a2cc5934dec295 \
+ --hash=sha256:6a9adfc6d24b10f89588096364cc726174118c62130c817c2837c60cf08a392b \
+ --hash=sha256:6bb77b2dcb06b20f9f4b4a8454caa581cd4dd0643a08bacf821216a16d9c8354 \
+ --hash=sha256:6e6b2a0c538fc200b38ff9eb6628228b77908c319a005815f2dde585a0664b60 \
+ --hash=sha256:71cde9a1e1551df7d34a25462fc60325e8a11a82cc2e2f54578e5e9a1e153d65 \
+ --hash=sha256:7371b48c4fa448d20d2714c9a1f775a81155050d383333e0a6c15b1123dda005 \
+ --hash=sha256:766cef22385fa1091258ad7e6216792b156dc16d8d3fa607e7545b2b72061f1c \
+ --hash=sha256:7b14cc0106cd9aecda615dd6903840a058b4700fcb817687d0ee4fc8b6e389be \
+ --hash=sha256:7f84204dee22a783350679a0333981df803dac21a0190d706a50475e361c93f5 \
+ --hash=sha256:8023abc91fba39036dbce14a7d6535632f99c0b857807cbbbf21ecc9f4717f06 \
+ --hash=sha256:80b2da48193b2f33ed0c32c38140f9d3186583ce7d516526d462645fd98660ae \
+ --hash=sha256:8297651f5b5679c19968abefd6bb84d95fe30ef712eb1b2d9b2d31ca61267f4c \
+ --hash=sha256:88d387ff40b3ff7c274947ed3125dedf5262ec6919d83946753b5f3d7c67ea4c \
+ --hash=sha256:88ddbc66737e277852913bd1e07c150cc7bb124539f94c4e2df5344494e0a612 \
+ --hash=sha256:8bd7903a5f2a4545f6fd5935c90058b89d30045568985a71c79f5fd6edf9b91e \
+ --hash=sha256:8be29e59487a79f173507c30ddf57e733a357f67881430449bb32614075a40ab \
+ --hash=sha256:8c984051042858021a54926eb597d6ee3012393ce9c181814115df4c60b9a808 \
+ --hash=sha256:8cbeb542b2ebc6fcdacabf8aca8c1a97c9b3ad3927d46b8723f9d4f033288a0f \
+ --hash=sha256:8e9c4f5b3c546fa3458a29ab22646c1c6c787ea8f5ef51300e5a60300736905e \
+ --hash=sha256:90e6f81de50ad6b534cab6e5aef77ff6e37722b2f5d908686f4a5c9eba17a909 \
+ --hash=sha256:975385f4776fafde056abb318f612ef6285b10a1f12b8570f3647ad0d74b48ec \
+ --hash=sha256:9a8a34cc89c67a65ea7437ce257cea81a9dad65b29805f3ecee8c8fe8ff25ffe \
+ --hash=sha256:9aba9a17b623ef750a4d11b742cbafffeb48a869821252b30ee21b5e91392c50 \
+ --hash=sha256:9f08483a632889536b8139663db60f6724bfcb443c96f1b18855860d7d5c0fd4 \
+ --hash=sha256:a4e8f36e677d3336f35089648c8955c51c6d386a13cf6ee9c189c5f5bd713a9f \
+ --hash=sha256:a52edc8bfff4429aaabdf4d9ee0daadbbf8562364f940937b941f87a4290f5ff \
+ --hash=sha256:a830b1a40919539d07806aa58e1b114df53ddd43213d9c8b75847eee6c0182b5 \
+ --hash=sha256:aa88ccfe4e32d362816319ed727a004423aab09c5cea43c01a4b435643fa34eb \
+ --hash=sha256:af73337013e0b3b46f175e79492d96845b16126ddf79c438d7ea7ff27783a414 \
+ --hash=sha256:b1c1fbd8a5a1af3412a0810d060a78b5136ec0836c8a4ef9aa11807f2a22f4e1 \
+ --hash=sha256:b85f66ae9eb53e860a873b858b789217ba505e5e405a24b85c0464822fe88032 \
+ --hash=sha256:b86024e52a1b269467a802258c25521e6d742349d760728092e1bc2d135b4d76 \
+ --hash=sha256:bd9c0c7a0c681a347b3194c500cb1e6ca9cab053ea4d82a5cf45b6b754560136 \
+ --hash=sha256:bfa9c230d2fe991bed5318a5f119bd6780cda2915cca595393649fc118ab895e \
+ --hash=sha256:d362d1878f00c142b7e1a16e6e5e780f02be8195123f164edf7eddd911eefe7c \
+ --hash=sha256:d5d38f1411c0ed9f97bcb49b7bd59b6b7c314e0e27420e34d99d844b9ce3b6f3 \
+ --hash=sha256:dac8d77255a37e81a2efcbd1fc05f1c15ee82200e6c240d7e127e25e365c39ea \
+ --hash=sha256:dd025009355c926a84a612fecf58bb315a3f6814b17ead51a8e48d3823d9087f \
+ --hash=sha256:deede7c263feb25dba4e82ea23058a235dcc2fe1f6021025dc71f2b618e26104 \
+ --hash=sha256:e74473c875d78b8e9d5da2a70f7099549f9eb37ded4e2f6a463e60125bccd176 \
+ --hash=sha256:ee3120ae9dff32f121610bb08e4313be87e03efeadfc6c0d18f89127e24d0c24 \
+ --hash=sha256:eedf4b74eda2b5a4b2b2fb4c006d6295df3bf29e459e198c90ea48e130dc75c3 \
+ --hash=sha256:efd8c21c98c5cc60653bcb311bef2ce0401642b7ce9d09e03a7da87c878289d4 \
+ --hash=sha256:f1c943e96e85df3d3478f7b691f229887e143f81fedab9b20205349ab04d73ed \
+ --hash=sha256:f278f034eb75b4e8a13a54a876cc4a5ab39173d2cdd93a638e1b467fc545ac43 \
+ --hash=sha256:f3f40b3c5a968281fd507d519e444c35f0ff171237f4fdde090dd60699458421 \
+ --hash=sha256:f490f9368b6fc026f021db16d7ec2fbf7d89e2edb42e8ec09d2c60505f5729c7 \
+ --hash=sha256:fb043ee2f06b41473269765c2feae53fc2e2fbf96e5e22ca94fb5ad677856f06 \
+ --hash=sha256:fc3d34d4a8fbec3e88a79b92e5465e0f9b842b628675850d860b8bd300b159f5
+ # via matplotlib
+platformdirs==4.11.2 \
+ --hash=sha256:3a2ae5fca3520a01ab1be8b45613537f52ddf5b5f6f53d88233892dfbf0cd82d \
+ --hash=sha256:7f89089b6ea71bda7962953edcf784b2e2d9d285b40ad88be2bb75c6e9d82ab4
+ # via pooch
+pooch==1.9.0 \
+ --hash=sha256:de46729579b9857ffd3e741987a2f6d5e0e03219892c167c6578c0091fb511ed \
+ --hash=sha256:f265597baa9f760d25ceb29d0beb8186c243d6607b0f60b83ecf14078dbc703b
+ # via librosa
+primepy==1.3 \
+ --hash=sha256:25fd7e25344b0789a5984c75d89f054fcf1f180bef20c998e4befbac92de4669 \
+ --hash=sha256:5ed443718765be9bf7e2ff4c56cdff71b42140a15b39d054f9d99f0009e2317a
+ # via torch-pitch-shift
+pronouncing==0.3.0 \
+ --hash=sha256:347bd30f00e28048474b99a8f1fc2e80f845dabdd7f3dce9d03c84f02c710f04 \
+ --hash=sha256:349664045d059f44032e5fda626210490b1808e4969194a958dd205c526e978a
+ # via livekit-wakeword
+protobuf==7.35.1 \
+ --hash=sha256:11d6b0ec246892d85215b0a13ca6e0233cf5284b68f0ac02646427f4ff88a799 \
+ --hash=sha256:230a75ddfc2de4806e56696ce9640c1cdfdb6543b7cfce98d42a4c0a0e7bdb87 \
+ --hash=sha256:24f857477359a85c0c235261b8ba905fd51b2562f4a64ca1df5473f29850cbf6 \
+ --hash=sha256:353652e4efd0bca5b5fc2656abf8307ef351f0cf938c9eba09f0e09c20a25c30 \
+ --hash=sha256:4bc97768d8fe4ad6743c8a19403e314511ed9f6d13205b687e52421c023ac1b9 \
+ --hash=sha256:74758715c53d7158fb76caf4f0cfdacc5329a4b1bb994f865d6cf302d413a1c4 \
+ --hash=sha256:b73f9489a4b8b1c9cb1f8ed951c736392592edb24b9d6819f36d2e10b171d5b4 \
+ --hash=sha256:ce115a26fe0c39a2c29973d914d327e516a6455464489fe3cd1e51a1b354f81a
+ # via
+ # onnx
+ # onnxruntime
+ # onnxruntime-gpu
+pycparser==3.0 \
+ --hash=sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29 \
+ --hash=sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992
+ # via cffi
+pydantic==2.13.4 \
+ --hash=sha256:45a282cde31d808236fd7ea9d919b128653c8b38b393d1c4ab335c62924d9aba \
+ --hash=sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6
+ # via livekit-wakeword
+pydantic-core==2.46.4 \
+ --hash=sha256:00c603d540afdd6b80eb39f078f33ebd46211f02f33e34a32d9f053bba711de0 \
+ --hash=sha256:0186750b482eefa11d7f435892b09c5c606193ef3375bcf94aa00ae6bfb66262 \
+ --hash=sha256:041bde0a48fd37cf71cab1c9d56d3e8625a3793fef1f7dd232b3ff37e978ecda \
+ --hash=sha256:0c563b08bca408dc7f65f700633d8442fffb2421fc47b8101377e9fd65051ff0 \
+ --hash=sha256:0cbe8b01f948de4286c74cdd6c667aceb38f5c1e26f0693b3983d9d74887c65e \
+ --hash=sha256:0ce40cd7b21210e99342afafbd4d0f76d784eb5b1d60f3bdc566be4983c6c73b \
+ --hash=sha256:0e96592440881c74a213e5ad528e2b24d3d4f940de2766bed9010ab1d9e51594 \
+ --hash=sha256:10e17cbb10a330363733efc4d7c4d0dd827ac0909b8f6a6542298fed1ea62f29 \
+ --hash=sha256:133878133d271ade3d41d1bfb2a45ec38dbdbda40bc065921c6b04e4630127e2 \
+ --hash=sha256:14d4edf427bdcf950a8a02d7cb44a08614388dd6e1bdcbf4f67504fa7887da9c \
+ --hash=sha256:14f4c5d6db102bd796a627bbb3a17b4cf4574b9ae861d8b7c9a9661c6dd3362d \
+ --hash=sha256:17299feefe090f2caa5b8e37222bb5f663e4935a8bfa6931d4102e5df1a9f398 \
+ --hash=sha256:184c081504d17f1c1066e430e117142b2c77d9448a97f7b65c6ac9fd9aee238d \
+ --hash=sha256:18e5ceec2ab67e6d5f1a9085e5a24c9c4e2ac4545730bfe668680bca05e555f3 \
+ --hash=sha256:19e51f073cd3df251856a8a4189fbdf1de4012c3ebacfb1884f94f1eb406079f \
+ --hash=sha256:1a7dd0b3ee80d90150e3495a3a13ac34dbcbfd4f012996a6a1d8900e91b5c0fb \
+ --hash=sha256:1d8ba486450b14f3b1d63bc521d410ec7565e52f887b9fb671791886436a42f7 \
+ --hash=sha256:2108ba5c1c1eca18030634489dc544844144ee36357f2f9f780b93e7ddbb44b5 \
+ --hash=sha256:228ee9bae8bef5b1e97ec58302f80357c37199e0d0a99174e138d28e6957b9d9 \
+ --hash=sha256:23ace664830ee0bfe014a0c7bc248b1f7f25ed7ad103852c317624a1083af462 \
+ --hash=sha256:2412e734dcb48da14d4e4006b82b46b74f2518b8a26ee7e58c6844a6cd6d03c4 \
+ --hash=sha256:29c61fc04a3d840155ff08e475a04809278972fe6aef51e2720554e96367e34b \
+ --hash=sha256:2f84c03c8607173d16b5a854ec68a2f9079ae03237a54fb506d13af47e1d018d \
+ --hash=sha256:3009f12e4e90b7f88b4f9adb1b0c4a3d58fe7820f3238c190047209d148026df \
+ --hash=sha256:3245406455a5d98187ec35530fd772b1d799b26667980872c8d4614991e2c4a2 \
+ --hash=sha256:3447661d99f75a3683a4cf5c87da72f2161964611864dbbeac7fbb118bb4bfc0 \
+ --hash=sha256:372429a130e469c9cd698925ce5fc50940b7a1336b0d82038e63d5bbc4edc519 \
+ --hash=sha256:395aebd9183f9d112f569aeb5b2214d1a10a33bec8456447f7fbdfa51d38d4cd \
+ --hash=sha256:3a233125ac121aa3ffba9a2b59edfc4a985a76092dc8279586ab4b71390875e7 \
+ --hash=sha256:3be77f45df024d789a672ae34f8b06fb346c4f9f46ea714956660ea4862e89ac \
+ --hash=sha256:3bf92c5d0e00fefaab325a4d27828fe6b6e2a21848686b5b60d2d9eeb09d76c6 \
+ --hash=sha256:3ecbc122d18468d06ca279dc26a8c2e2d5acb10943bb35e36ae92096dc3b5565 \
+ --hash=sha256:3fb702cd90b0446a3a1c5e470bfa0dd23c0233b676a9099ddcc964fa6ca13898 \
+ --hash=sha256:428e04521a40150c85216fc8b85e8d39fece235a9cf5e383761238c7fa9b96fb \
+ --hash=sha256:432c179df7874eeb73307aad2df0755e1ae0efa61ff0ea89b93e194411ae3928 \
+ --hash=sha256:4a05d69cba51d852c5c3e92758653245a50c0b646ced0cf05bd793ed592839d6 \
+ --hash=sha256:4c63ebc82684aa89d9a3bcbd13d515b3be44250dc68dd3bd81526c1cb31286c3 \
+ --hash=sha256:4fc73cb559bdb54b1134a706a2802a4cddd27a0633f5abb7e53056268751ac6a \
+ --hash=sha256:4fcbe087dbc2068af7eda3aa87634eba216dbda64d1ae73c8684b621d33f6596 \
+ --hash=sha256:56cb4851bcaf3d117eddcef4fe66afd750a50274b0da8e22be256d10e5611987 \
+ --hash=sha256:5855698a4856556d86e8e6cd8434bc3ac0314ee8e12089ae0e143f64c6256e4e \
+ --hash=sha256:5a4330cdbc57162e4b3aa303f588ba752257694c9c9be3e7ebb11b4aca659b5d \
+ --hash=sha256:5b712b53160b79a5850310b912a5ef8e57e56947c8ad690c227f5c9d7e561712 \
+ --hash=sha256:5d5902252db0d3cedf8d4a1bc68f70eeb430f7e4c7104c8c476753519b423008 \
+ --hash=sha256:617d7e2ca7dcb8c5cf6bcb8c59b8832c94b36196bbf1cbd1bfb56ed341905edd \
+ --hash=sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1 \
+ --hash=sha256:633147d34cf4550417f12e2b1a0383973bdf5cdfde212cb09e9a581cf10820be \
+ --hash=sha256:66ce7632c22d837c95301830e111ad0128a32b8207533b60896a96c4915192ea \
+ --hash=sha256:6b3ace8194b0e5204818c92802dcdca7fc6d88aabbb799d7c795540d9cd6d292 \
+ --hash=sha256:6f2eeda33a839975441c86a4119e1383c50b47faf0cbb5176985565c6bb02c33 \
+ --hash=sha256:7027560ee92211647d0d34e3f7cd6f50da56399d26a9c8ad0da286d3869a53f3 \
+ --hash=sha256:7283d57845ecf5a163403eb0702dfc220cc4fbdd18919cb5ccea4f95ee1cdab4 \
+ --hash=sha256:7a5f930472650a82629163023e630d160863fce524c616f4e5186e5de9d9a49b \
+ --hash=sha256:7bfb192b3f4b9e8a89b6277b6ce787564f62cfd272055f6e685726b111dc7826 \
+ --hash=sha256:811ff8e9c313ab425368bcbb36e5c4ebd7108c2bbf4e4089cfbb0b01eff63fac \
+ --hash=sha256:8233f2947cf85404441fd7e0085f53b10c93e0ee78611099b5c7237e36aacbf7 \
+ --hash=sha256:82cf5301172168103724d49a1444d3378cb20cdee30b116a1bd6031236298a5d \
+ --hash=sha256:8358a950c8909158e3df31538a7e4edc2d7265a7c54b47f0864d9e5bae9dcebf \
+ --hash=sha256:85bb3611ff1802f3ee7fdd7dbff26b56f343fb432d57a4728fdd49b6ef35e2f4 \
+ --hash=sha256:86e1a4418c6cd97d60c95c71164158eaf7324fae7b0923264016baa993eba6fc \
+ --hash=sha256:8b9bab013d1c7a79d3501ff86d0bc9c31bf587db4551677b96bec07df78c6b15 \
+ --hash=sha256:8c5dac79fa1614d1e06ca695109c6105923bd9c7d1d6c918d4e637b7e6b32fd3 \
+ --hash=sha256:8d0820e8192167f80d88d64038e609c31452eeca865b4e1d9950a27a4609b00b \
+ --hash=sha256:8daafc69c93ee8a0204506a3b6b30f586ef54028f52aeeeb5c4cfc5184fd5914 \
+ --hash=sha256:9037063db01f09b09e237c282b6792bd4da634b5402c4e7f0c61effed7701a04 \
+ --hash=sha256:905a0ed8ea6f2d61c1738835f99b699348d7857379083e5fc497fa0c967a407c \
+ --hash=sha256:90884113d8b48f760e9587002789ddd741e76ab9f89518cd1e43b1f1a52ec44b \
+ --hash=sha256:91a06d2e259ecfbd8c901d70c3c507900458498142b3026a296b7de4d1322cc9 \
+ --hash=sha256:926c9541b14b12b1681dca8a0b75feb510b06c6341b70a8e500c2fdcff837cce \
+ --hash=sha256:9401557acd873c3a7f3eb9383edef8ac4968f9510e340f4808d427e75667e7b4 \
+ --hash=sha256:9551187363ffc0de2a00b2e47c25aeaeb1020b69b668762966df15fc5659dd5a \
+ --hash=sha256:962ccbab7b642487b1d8b7df90ef677e03134cf1fd8880bf698649b22a69371f \
+ --hash=sha256:97e7cf2be5c77b7d1a9713a05605d49460d02c6078d38d8bef3cbe323c548424 \
+ --hash=sha256:9aa768456404a8bf48a4406685ac2bec8e72b62c69313734fa3b73cf33b3a894 \
+ --hash=sha256:9bc519fbf2b7578398853d815009ae5e4d4603d12f4e3f91da8c06852d3da3e9 \
+ --hash=sha256:9d56801be94b86a9da183e5f3766e6310752b99ff647e38b09a9500d88e46e76 \
+ --hash=sha256:9f444c499b3eefd3a92e348059471ea0c3a6e303d9c1cec09fa748fd9f895201 \
+ --hash=sha256:9fa8ae11da9e2b3126c6426f147e0fba88d96d65921799bb30c6abd1cb2c97fb \
+ --hash=sha256:a0f62d0a58f4e7da165457e995725421e0064f2255d8eccebc49f41bbc23b109 \
+ --hash=sha256:a396dcc17e5a0b164dbe026896245a4fa9ff402edca1dff0be3d53a517f74de4 \
+ --hash=sha256:aaa2a54443eff1950ba5ddc6b6ccda0d9c84a364276a62f969bdf2a390650848 \
+ --hash=sha256:ad785e92e6dc634c21555edc8bd6b64957ab844541bcb96a1366c202951ae526 \
+ --hash=sha256:af8244b2bef6aaad6d92cda81372de7f8c8d36c9f0c3ea36e827c60e7d9467a0 \
+ --hash=sha256:b078afbc25f3a1436c7a1d2cd3e322497ee99615ba97c563566fdf46aff1ee01 \
+ --hash=sha256:b2f69dec1725e79a012d920df1707de5caf7ed5e08f3be4435e25803efc47458 \
+ --hash=sha256:b8458003118a712e66286df6a707db01c52c0f52f7db8e4a38f0da1d3b94fc4e \
+ --hash=sha256:bb63e0198ca18aad131c089b9204c23079c3afa95487e561f4c522d519e55aba \
+ --hash=sha256:bfec22eab3c8cc2ceec0248aec886624116dc079afa027ecc8ad4a7e62010f8a \
+ --hash=sha256:c1747f85cee84c26985853c6f3d9bd3e75da5212912443fa111c113b9c246f39 \
+ --hash=sha256:c1b3f518abeca3aa13c712fd202306e145abf59a18b094a6bafb2d2bbf59192c \
+ --hash=sha256:c50f2528cf200c5eed56faf3f4e22fcd5f38c157a8b78576e6ba3168ec35f000 \
+ --hash=sha256:c68fcd102d71ea85c5b2dfac3f4f8476eff42a9e078fd5faefff6d145063536b \
+ --hash=sha256:c7a7bd4e39e8e4c12c39cd480356842b6a8a06e41b23a55a5e3e191718838ddf \
+ --hash=sha256:c94f0688e7b8d0a67abf40e57a7eaaecd17cc9586706a31b76c031f63df052b4 \
+ --hash=sha256:cbaf13819775b7f769bf4a1f066cb6df7a28d4480081a589828ef190226881cd \
+ --hash=sha256:cd2213145bcc2ba85884d0ac63d222fece9209678f77b9b4d76f054c561adb28 \
+ --hash=sha256:ce5c1d2a8b27468f433ca974829c44060b8097eedc39933e3c206a90ee49c4a9 \
+ --hash=sha256:d396ec2b979760aaf3218e76c24e65bd0aca24983298653b3a9d7a45f9e47b30 \
+ --hash=sha256:d51026d73fcfd93610abc7b27789c26b313920fcfb20e27462d74a7f8b06e983 \
+ --hash=sha256:d80ee3d731373b24cebbc10d689ca4ee1875caf0d5703a245db18efd4dd37fc1 \
+ --hash=sha256:d995260fdf4e1db774581b4900e0f832abe3c7c84996726bbc161b19c8f29e76 \
+ --hash=sha256:da4b951fe36dc7c3a1ccb4e3cd1747c3542b8c9ceede8fc86cae054e764485f5 \
+ --hash=sha256:daa27d92c36f24388fe3ad306b174781c747627f134452e4f128ea00ce1fe8c4 \
+ --hash=sha256:db06ffe51636ffe9ca531fe9023dd64bdd794be8754cb5df57c5498ae5b518a7 \
+ --hash=sha256:e0d65b8c354be7fb5f720c3caa8bc940bc2d20ce749c8e06135f07f8ed95dd7c \
+ --hash=sha256:e68b7a074f65a2fd746c52a7ce6142ab7006074ac269ace0c25cd8ba171f8066 \
+ --hash=sha256:e739fee756ba1010f8bcccb534252e85a35fe45ae92c295a06059ce58b74ccd3 \
+ --hash=sha256:e846ae7835bf0703ae43f534ab79a867146dadd59dc9ca5c8b53d5c8f7c9ef02 \
+ --hash=sha256:e9c26f834c65f5752f3f06cb08cb86a913ceb7274d0db6e267808a708b46bc89 \
+ --hash=sha256:ea793e075b70290d89d8142074262885d3f7da19634845135751bd6344f73b50 \
+ --hash=sha256:f027324c56cd5406ca49c124b0db10e56c69064fec039acc571c29020cc87c76 \
+ --hash=sha256:f13a646d65d09fbf1bc6b3a9635d30095c8e7e5cc419ff35ecc563c5fd04cd49 \
+ --hash=sha256:f47286a97f0bc9b8859519809077b91b2cefe4ae47fcbf5e466a009c1c5d742b \
+ --hash=sha256:f747929cf940cddb5b3668a390056ddd5ba2e5010615ea2dcf4f9c4f3ab8791d \
+ --hash=sha256:f99626688942fb746e545232e7726926f3be91b5975f8b55327665fafda991c7 \
+ --hash=sha256:f9fa868638bf362d3d138ea55829cefb3d5f4b0d7f142234382a15e2485dbec4 \
+ --hash=sha256:fbdb89b3e1c94a30cc5edfce477c6e6a5dc4d8f84665b455c27582f211a1c72c \
+ --hash=sha256:fc010ab034c8c7452522748bf937df58020d256ccae0874463d1f4d01758af8e \
+ --hash=sha256:fc3e9034a63de20e15e8ade85358bc6efc614008cab72898b4b4952bea0509ff \
+ --hash=sha256:fd8b3d9fd264be37976686c7f65cd52a83f5e84f4bfd2adf9c1d469676bbb6ae
+ # via pydantic
+pygments==2.20.0 \
+ --hash=sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f \
+ --hash=sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176
+ # via rich
+pyparsing==3.3.2 \
+ --hash=sha256:850ba148bd908d7e2411587e247a1e4f0327839c40e2e5e6d05a007ecc69911d \
+ --hash=sha256:c777f4d763f140633dcb6d8a3eda953bf7a214dc4eff598413c070bcdc117cbc
+ # via matplotlib
+python-dateutil==2.9.0.post0 \
+ --hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
+ --hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427
+ # via matplotlib
+python-stretch==0.3.1 \
+ --hash=sha256:0051931bc6379bb3bec42bd219edc219369950bd4b3a0b5e2906acce61fae1d7 \
+ --hash=sha256:06a11efc93f59472dac3f6890d982a446966fe25db2afcbb75e235f5c8017f1a \
+ --hash=sha256:0cc7d8ebd977488577461a442cdc28eddd6d3aee9a8a9c85c1e724711229680a \
+ --hash=sha256:1d575edf5897c292d9d6fc73a150baf2f2e350e5403a399f308d9bdc64d12634 \
+ --hash=sha256:209445cdcc11d910e2bd665fa4c27db8362cb26e072db340fe0f63131b285a2e \
+ --hash=sha256:2b307f2c54dfacd61508b90911a8cc66159d11007ac1e199f6fb1c82021b0d69 \
+ --hash=sha256:316ae002bc71e487320f2b65d9d0b6f4f824482f6c63ac86a8ff4fc1aaf1d463 \
+ --hash=sha256:375a841bdeaa5c4348d5fab19296fc6fd12d8984b5ef6d50c939b4a31737a6f6 \
+ --hash=sha256:3777de362c0888744558f43cdd27cc74ad6a0c1137488d85ae22b950b588c9dd \
+ --hash=sha256:38ef7e5247d0cad628c8cb3c616cfd7b67aa161ebeb27bf29b826a07a14d1334 \
+ --hash=sha256:3da1bf9154b4c01d7b58d17bb3db0390d316e420bc6113868b04f4c6603b5fe1 \
+ --hash=sha256:3e13e302feac281d7e5bffdd53df17892d28455574c398c4939a243c774cf6c5 \
+ --hash=sha256:4605bce60b1a214d91479f6a66def5a1383afdbd369dd44d8ffb1bc8cb011b4e \
+ --hash=sha256:475e544f82230a7a0575e941247799c1c34cb61e179774193350a834ef14bf9a \
+ --hash=sha256:4d18bc50996974954ea6af8588c7772bf9b295d8b8d87d6fc2643f8493d39d8c \
+ --hash=sha256:4eb8bf7ca6b8927b750130371edad8886c14a1fb34f9a691a7f9d283cc78fd02 \
+ --hash=sha256:578113b84bbc63a531d32a62fc4f473dac969a9000a21873a9ae0832840a9b7a \
+ --hash=sha256:57d24349abca94f112cd9750bade42a7eacfdd966313497ddbc1b2a8868ebb01 \
+ --hash=sha256:5c6c9d7afa84f7d918f1824e4c8bca3edc5f6c0d72560375ed54a60ffc04b9dc \
+ --hash=sha256:5c7af4c409235a0c623aec677f762a57de08acca7733dce218b4d1206115fa29 \
+ --hash=sha256:5d430c7b873d61e39f73fe58c90baec4a26e087cdbfa4c001959badb608120c0 \
+ --hash=sha256:5e7f4be789056a6a36c408e94e0c539fe37e6f1e4785aa5181b824fcf9d26b86 \
+ --hash=sha256:68d683bfd00989a0b640268692cf1de6f7f9f3ce9e8492f4c12ad4977367bb16 \
+ --hash=sha256:6a3d19b5f067a35cf9bfd4e3270ba281163b1608da94f7e813fa50e225a621bf \
+ --hash=sha256:6ca46d61cad04733c2c431181dd64bc81d6abed9a7512a0080144fa08f600410 \
+ --hash=sha256:77f2388254f5b99547443822c6c7c0eed1007261c81ebdbc04737987939435e5 \
+ --hash=sha256:78c45082c9cd5f267b41b6541399c7693781c627b590a5faa4feee9cf1d64547 \
+ --hash=sha256:84db571016bd558d3fb7d02c6aab563af25cb088e4cef9dbd6efc8174e9c6ac2 \
+ --hash=sha256:8a81ab2638481de69e64cfc43e2629009568183410e2bc9e8d59708e6ef44010 \
+ --hash=sha256:95581cb06c08e7423c267f6a1d1e6fb4071bcd3e401e39e0e497578ee73b1fc1 \
+ --hash=sha256:96ed61893319c72ea728066905b5da445e47c53e46938f1ac1b09d194a897494 \
+ --hash=sha256:9c4e041e788e7b6dc5e404d755c5f76f7d6820a44a81d0c1755e41ba585f0749 \
+ --hash=sha256:a2dc4635cb870713ea0c6077bdda6424056975dc9919a6d706838386747e7fa5 \
+ --hash=sha256:a3df71cc990c93c7501cb63786a28dae3b2774f2dc13c17d3b9d6a66278821ee \
+ --hash=sha256:a88b70450011e813dd3f027f6f8c4b65fee2d1d8185a3b0806ef2de72e793e87 \
+ --hash=sha256:b40cadcaa3a86f5905a1379b7a6137f5670e081b8e8697ea680cf021b17d4c4e \
+ --hash=sha256:b51d492b3b2e0de16d183a4078d4de92c60de0ff9a1a6bdd96e0854fb0d04d77 \
+ --hash=sha256:b54d8a2ba3ab7bb1f7f251a0dd8a22b2f2305f8011b8f85b518b3a190ef61b17 \
+ --hash=sha256:b6c48c3d1d858e8311099322c5c6ab9f1daec91cd63c38869bcfddeda6c2bcb2 \
+ --hash=sha256:bb73072063ae452637cbdad980b4537786e36c99f6e1eeb28e9f8cacbb91e6d5 \
+ --hash=sha256:bd90b85f33e3ecc11ce879db1a28dd87cf0b17d8cbe79d48e711b24c5456c158 \
+ --hash=sha256:c22885df4826323676ec354d1171f81c97db1d4c4fb8e18af1d17da483740766 \
+ --hash=sha256:cf225e722fb3cf50a7fd9edbff8433a41ea69737127be1149c9dea1e30e82e0e \
+ --hash=sha256:d72ac3dbad403cde4fb091cdd20bb89409b5574d1a95fd8dfb7c29bc60f0012a \
+ --hash=sha256:d8b81028b6ca2de363f42b47e5a2026bd6e79137a496a563041052a725148000 \
+ --hash=sha256:dcf3835a163326c2c99dc98e893378fa5f855e44d0eda36711914235e27ec7e7 \
+ --hash=sha256:df0b1e030ec34cfe3611626152c0236268251e644939154e499888d29b1f54e5 \
+ --hash=sha256:e0317033c48afd4871714dddc7c796c81480a2193a6e38a9fbebc0166a43de12 \
+ --hash=sha256:e67c58314125f6ea00f8f9e3835d024ac933c211a53a07d963f37bf604465122 \
+ --hash=sha256:f327a5afa1ea99f62fca547a9762d4e2708a1ab50922922de2f6697dc2d7ea69 \
+ --hash=sha256:f35b6b791831a1f5c0947120253f258f68b9b85ecea9329031f82f33bd9ba34b
+ # via audiomentations
+pyyaml==6.0.3 \
+ --hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \
+ --hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \
+ --hash=sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3 \
+ --hash=sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956 \
+ --hash=sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6 \
+ --hash=sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c \
+ --hash=sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65 \
+ --hash=sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a \
+ --hash=sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0 \
+ --hash=sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b \
+ --hash=sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1 \
+ --hash=sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6 \
+ --hash=sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7 \
+ --hash=sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e \
+ --hash=sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007 \
+ --hash=sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310 \
+ --hash=sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4 \
+ --hash=sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9 \
+ --hash=sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295 \
+ --hash=sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea \
+ --hash=sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0 \
+ --hash=sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e \
+ --hash=sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac \
+ --hash=sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9 \
+ --hash=sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7 \
+ --hash=sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35 \
+ --hash=sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb \
+ --hash=sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b \
+ --hash=sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69 \
+ --hash=sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5 \
+ --hash=sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b \
+ --hash=sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c \
+ --hash=sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369 \
+ --hash=sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd \
+ --hash=sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824 \
+ --hash=sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198 \
+ --hash=sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065 \
+ --hash=sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c \
+ --hash=sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c \
+ --hash=sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764 \
+ --hash=sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196 \
+ --hash=sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b \
+ --hash=sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00 \
+ --hash=sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac \
+ --hash=sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8 \
+ --hash=sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e \
+ --hash=sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28 \
+ --hash=sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3 \
+ --hash=sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5 \
+ --hash=sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4 \
+ --hash=sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b \
+ --hash=sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf \
+ --hash=sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5 \
+ --hash=sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702 \
+ --hash=sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8 \
+ --hash=sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788 \
+ --hash=sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da \
+ --hash=sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d \
+ --hash=sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc \
+ --hash=sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c \
+ --hash=sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba \
+ --hash=sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f \
+ --hash=sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917 \
+ --hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5 \
+ --hash=sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26 \
+ --hash=sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f \
+ --hash=sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b \
+ --hash=sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be \
+ --hash=sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c \
+ --hash=sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3 \
+ --hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \
+ --hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \
+ --hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0
+ # via
+ # huggingface-hub
+ # livekit-wakeword
+regex==2026.7.19 \
+ --hash=sha256:062f8cb7a9739c4835d22bd96f370c59aba89f257adcfa53be3cc209e08d3ae0 \
+ --hash=sha256:064f1760a5a4ade65c5419be23e782f29147528e8a66e0c42dd4cedb8d4e9fc6 \
+ --hash=sha256:09523a592938aa9f587fb74467c63ff0cf88fc3df14c82ab0f0517dcf76aaa62 \
+ --hash=sha256:09d3007fc76249a83cdd33de160d50e6cb77f54e09d8fa9e7148e10607ce24af \
+ --hash=sha256:09f3e5287f94f17b709dc9a9e70865855feee835c861613be144218ce4ca82cc \
+ --hash=sha256:0c41c63992bf1874cebb6e7f56fd7d3c007924659a604ae3d90e427d40d4fd13 \
+ --hash=sha256:0e9554c8785eac5cffe6300f69a91f58ba72bc88a5f8d661235ad7c6aa5b8ccd \
+ --hash=sha256:1123ef4211d763ee771d47916a1596e2f4915794f7aabdc1adcb20e4249a6951 \
+ --hash=sha256:15b364b9b98d6d2fe1a85034c23a3180ff913f46caddc3895f6fd65186255ccc \
+ --hash=sha256:1649eb39fcc9ea80c4d2f110fde2b8ab2aef3877b98f02ab9b14e961f418c511 \
+ --hash=sha256:17ed5692f6acc4183e98331101a5f9e4f64d72fe58b753da4d444a2c77d05b12 \
+ --hash=sha256:199535629f25caf89698039af3d1ad5fcae7f933e2112c73f1cdf49165c99518 \
+ --hash=sha256:1c398716054621aa300b3d411f467dda903806c5da0df6945ab73982b8d115db \
+ --hash=sha256:1d3372064506b94dd2c67c845f2db8062e9e9ba84d04e33cb96d7d33c11fe1ae \
+ --hash=sha256:1d58561843f0ff7dc78b4c28b5e2dc388f3eff94ebc8a232a3adba961fc00009 \
+ --hash=sha256:1d793a7988e04fcb1e2e135567443d82173225d657419ec09414a9b5a145b986 \
+ --hash=sha256:1ebac3474b8589fce2f9b225b650afd61448f7c73a5d0255a10cc6366471aed1 \
+ --hash=sha256:20568e182eb82d39a6bf7cff3fd58566f14c75c6f74b2c8c96537eecf9010e3a \
+ --hash=sha256:22a992de9a0d91bda927bf02b94351d737a0302905432c88a53de7c4b9ce62e2 \
+ --hash=sha256:2955907b7157a6660f27079edf7e0229e9c9c5325c77a2ef6a890cba91efa6f0 \
+ --hash=sha256:2c4e61e2e1be56f63ec3cc618aa9e0de81ef6f43d177205451840022e24f5b78 \
+ --hash=sha256:2cc3460cedf7579948486eab03bc9ad7089df4d7281c0f47f4afe03e8d13f02d \
+ --hash=sha256:2ce9e679f776649746729b6c86382da519ef649c8e34cc41df0d2e5e0f6c36d4 \
+ --hash=sha256:2ef7eeb108c47ce7bcc9513e51bcb1bf57e8f483d52fce68a8642e3527141ae0 \
+ --hash=sha256:3080a7fd38ef049bd489e01c970c97dd84ff446a885b0f1f6b26d9b1ad13ce11 \
+ --hash=sha256:343a4504e3fb688c47cad451221ca5d4814f42b1e16c0065bde9cbf7f473bd52 \
+ --hash=sha256:36aacfb15faaff3ced55afbf35ec72f50d4aee22082c4f7fe0573a33e2fca92e \
+ --hash=sha256:3d3143f159261b1ce5b24c261c590e5913370c3200c5e9ebbb92b5aa5e111902 \
+ --hash=sha256:40b34dd88658e4fedd2fddbf0275ac970d00614b731357f425722a3ed1983d11 \
+ --hash=sha256:4458124d71339f505bf1fb94f69fd1bb8fa9d2481eebfef27c10ef4f2b9e12f6 \
+ --hash=sha256:4896db1f4ce0576765b8272aa922df324e0f5b9bb2c3d03044ff32a7234a9aba \
+ --hash=sha256:4a0530bb1b8c1c985e7e2122e2b4d3aedd8a3c21c6bfddae6767c4405668b56e \
+ --hash=sha256:4aa5435cdb3eb6f55fe98a171b05e3fbcd95fadaa4aa32acf62afd9b0cfdbcac \
+ --hash=sha256:4c3501bfa814ab07b5580741f9bf78dfdfe146a04057f82df9e2402d2a975939 \
+ --hash=sha256:4e5413bd5f13d3a4e3539ca98f70f75e7fca92518dd7f117f030ebedd10b60cb \
+ --hash=sha256:4e6883a021db30511d9fb8cfb0f222ce1f2c369f7d4d8b0448f449a93ba0bdfc \
+ --hash=sha256:52579c60a6078be70a0e49c81d6e56d677f34cd439af281a0083b8c7bc75c095 \
+ --hash=sha256:555497390743af1a65045fa4527782d10ff5b88970359412baa4a1e628fe393b \
+ --hash=sha256:56ad4d9f77df871a99e25c37091052a02528ec0eb059de928ee33956b854b45b \
+ --hash=sha256:571fde9741eb0ccde23dd4e0c1d50fbae910e901fa7e629faf39b2dda740d220 \
+ --hash=sha256:572fc57b0009c735ee56c175ea021b637a15551a312f56734277f923d6fd0f6c \
+ --hash=sha256:59787bd5f8c70aa339084e961d2996b53fbdeab4d5393bba5c1fe1fc32e02bae \
+ --hash=sha256:5a2721c8720e2cb3c209925dfb9200199b4b07361c9e01d321719404b21458b3 \
+ --hash=sha256:5cc26a66e212fa5d6c6170c3a40d99d888db3020c6fdab1523250d4341382e44 \
+ --hash=sha256:5ebee1ee89c39c953baac6924fcde08c5bb427c4057510862f9d7c7bdb3d8665 \
+ --hash=sha256:60be8693a1dadc210bbcbc0db3e26da5f7d01d1d5a3da594e99b4fa42df404f5 \
+ --hash=sha256:618a0aed532be87294c4477b0481f3aa0f1520f4014a4374dd4cf789b4cd2c97 \
+ --hash=sha256:61bb1bd45520aacd56dd80943bd34991fb5350afdd1f36f2282230fd5154a218 \
+ --hash=sha256:6383cd2ed53a646c659ba1fe65727db76437fdaa069e697a0b44a51d5843d864 \
+ --hash=sha256:64729333167c2dcaaa56a331d40ee097bd9c5617ffd51dabb09eaddafb1b532e \
+ --hash=sha256:64b6ca7391a1395c2638dd5c7456d67bea44fc6c5e8e92c5dc8aa6a8f23292b4 \
+ --hash=sha256:65dcd28d3eba2ab7c2fd906485cc301392b47cc2234790d27d4e4814e02cdfda \
+ --hash=sha256:65fa6cb38ed5e9c3637e68e544f598b39c3b86b808ed0627a67b68320384b459 \
+ --hash=sha256:66bd62c59a5427746e8c44becae1d9b99d22fb13f30f492083dfb9ad7c45cc18 \
+ --hash=sha256:6e44c0e7c5664be20aee92085153150c0a7967310a73a43c0f832b7cd35d0dd3 \
+ --hash=sha256:6f8c6e7a1cfa3dc9d0ee2de0e65e834537fa29992cc3976ffec914afc35c5dd5 \
+ --hash=sha256:7322ec6cc9fba9d49ab888bb82d67ac5625627aa168f0165139b17018df3fb8a \
+ --hash=sha256:73b133a9e6fb512858e7f065e96f1180aa46646bc74a83aea62f1d314f3dd035 \
+ --hash=sha256:73f272fba87b8ccfe70a137d02a54af386f6d27aa509fbffdd978f5947aae1aa \
+ --hash=sha256:7e77b324909c1617cbb4c668677e2c6ae13f44d7c1de0d4f15f2e3c10f3315b5 \
+ --hash=sha256:80115dd39481fd3a4b4080220799dbcacb921a844de4b827264ececacbe17c78 \
+ --hash=sha256:87ccab0db8d5f4fbb0272642113c1adb2ffc698c16d3a0944580222331fa7a20 \
+ --hash=sha256:89dfee3319f5ae3f75ebd5c2445a809bb320252ba5529ffdafea4ef25d79cf1a \
+ --hash=sha256:8ac59a0900474a52b7c04af8196affc22bd9842acb0950df12f7b813e983609a \
+ --hash=sha256:8cae6fd77a5b72dae505084b1a2ee0360139faf72fedbab667cd7cc65aae7a6a \
+ --hash=sha256:8d3469c91dd92ee41b7c95280edbd975ef1ba9195086686623a1c6e8935ce965 \
+ --hash=sha256:90c633e7e8d6bf4e992b8b36ce69e018f834b641dd6de8cea6d78c06ffa119c5 \
+ --hash=sha256:93db40c8de0815baab96a06e08a984bac71f989d13bab789e382158c5d426797 \
+ --hash=sha256:9724e6cb5e478cd7d8cabf027826178739cb18cf0e117d0e32814d479fa02276 \
+ --hash=sha256:98c6ac18480fcdb33f35439183f1d2e79760ab41930309c6d951cb1f8e46694c \
+ --hash=sha256:9a15e785f244f3e07847b984ce8773fc3da10a9f3c131cc49a4c5b4d672b4547 \
+ --hash=sha256:9b60d7814174f059e5de4ab98271cc5ba9259cfea55273a81544dceea32dc8d9 \
+ --hash=sha256:9be2a6647740dd3cca6acb24e87f03d7632cd280dbce9bbe40c26353a215a45d \
+ --hash=sha256:9c7472192ebfad53a6be7c4a8bfb2d64b81c0e93a1fc8c57e1dd0b638297b5d1 \
+ --hash=sha256:9dce8ec9695f531a1b8a6f314fd4b393adcccf2ea861db480cdf97a301d01a68 \
+ --hash=sha256:9e50d748a32da622f256e8d505867f5d3c43a837c6a9f0efb149655fadd1042a \
+ --hash=sha256:a81758ed242b861b72e778ba34d41366441a2e10b16b472784c88da2dea7e2dd \
+ --hash=sha256:ac777001cdfc28b72477d93c8564bb7583081ea8fb45cdca3d568e0a4f87183c \
+ --hash=sha256:b2b506b1788df5fecd270a10d5e70a95fe77b87ea2b370a318043f6f5f817ee6 \
+ --hash=sha256:b2ea4a3e8357be8849e833beeae757ac3c7a6b3fc055c03c808a53c91ad30d82 \
+ --hash=sha256:bf1516fe58fc104f39b2d1dbe2d5e27d0cd45c4be2e42ba6ee0cc763701ec3c7 \
+ --hash=sha256:c0d702548d89d572b2929879bc883bb7a4c4709efafe4512cadee56c55c9bd15 \
+ --hash=sha256:c10b82c2634df08dfb13b1f04e38fe310d086ee092f4f69c0c8da234251e556e \
+ --hash=sha256:c42572142ed0b9d5d261ba727157c426510da78e20828b66bbb855098b8a4e38 \
+ --hash=sha256:c4585c3e64b4f9e583b4d2683f18f5d5d872b3d71dcf24594b74ecc23602fa96 \
+ --hash=sha256:c639ea314df70a7b2811e8020448c75af8c9445f5a60f8a4ced81c306a9380c2 \
+ --hash=sha256:c670fe7be5b6020b76bc6e8d2196074657e1327595bca93a389e1a76ab130ad8 \
+ --hash=sha256:cc1b2440423a851fad781309dd87843868f4f66a6bcd1ddb9225cf4ec2c84732 \
+ --hash=sha256:cd3584591ea4429026cdb931b054342c2bcf189b44ff367f8d5c15bc092a2966 \
+ --hash=sha256:d15df07081d91b76ff20d43f94592ee110330152d617b730fdbe5ef9fb680053 \
+ --hash=sha256:d19662dbedbe783d323196312d38f5ba53cf56296378252171985da6899887d3 \
+ --hash=sha256:d24ecb4f5e009ea0bd275ee37ad9953b32005e2e5e60f8bbae16da0dbbf0d3a0 \
+ --hash=sha256:d446c6ac40bb6e05025ccee55b84d80fe9bf8e93010ffc4bb9484f13d498835f \
+ --hash=sha256:d51ffd3427640fa2da6ade574ceba932f210ad095f65fcc450a2b0a0d454868e \
+ --hash=sha256:d6ce43a0269d68cee79a7d1ade7def53c20f8f2a047b92d7b5d5bcc73ae88327 \
+ --hash=sha256:d721e53758b2cca74990185eb0671dd466d7a388a1a45d0c6f4c13cef41a68ac \
+ --hash=sha256:d7da47a0f248977f08e2cb659ff3c17ddc13a4d39b3a7baa0a81bf5b415430f6 \
+ --hash=sha256:db47b561c9afd884baa1f96f797c9ca369872c4b65912bc691cfa99e68340af2 \
+ --hash=sha256:dbe6493fbd27321b1d1f2dd4f5c7e5bd4d8b1d7cab7f32fd67db3d0b2ed8248a \
+ --hash=sha256:dbece16025afda5e3031af0c4059207e61dcf73ef13af844964f57f387d1c435 \
+ --hash=sha256:ddd67571c10869f65a5d7dde536d1e066e306cc90de57d7de4d5f34802428bb5 \
+ --hash=sha256:de9208bb427130c82a5dbfd104f92c8876fc9559278c880b3002755bbbe9c83d \
+ --hash=sha256:e30d40268a28d54ce0437031750497004c22602b8e3ab891f759b795a003b312 \
+ --hash=sha256:e8b0abe7d870f53ca5143895fef7d1041a0c831a140d3dc2c760dd7ba25d4a8b \
+ --hash=sha256:f035d9dc1d25eff9d361456572231c7d27b5ccd473ca7dc0adfce732bd006d40 \
+ --hash=sha256:f04b9f56b0e0614c0126be12c2c2d9f8850c1e57af302bd0a63bed379d4af974 \
+ --hash=sha256:f0fa4fa9c3632d708742baf2282f2055c11d888a790362670a403cbf48a2c404 \
+ --hash=sha256:f2e7f8e2ab6c2922be02c7ec45185aa5bd771e2e57b95455ee343a44d8130dff \
+ --hash=sha256:f8f6fa298bb4f7f58a33334406218ba74716e68feddf5e4e54cd5d8082705abf \
+ --hash=sha256:fbf300e2070bb35038660b3be1be4b91b0024edb41517e6996320b49b92b4175 \
+ --hash=sha256:fce7760bf283405b2c7999cab3da4e72f7deca6396013115e3f7a955db9760da \
+ --hash=sha256:fcee38cd8e5089d6d4f048ba1233b3ad76e5954f545382180889112ff5cb712d \
+ --hash=sha256:fe31f28c94402043161876a258a9c6f757cb485905c7614ce8d6cd40e6b7bdc1 \
+ --hash=sha256:ffd8893ccc1c2fce6e0d6ca402d716fe1b29db70c7132609a05955e31b2aa8f2
+ # via nltk
+requests==2.28.1 \
+ --hash=sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349
+ # via pooch
+rich==15.0.0 \
+ --hash=sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb \
+ --hash=sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36
+ # via
+ # livekit-wakeword
+ # typer
+scikit-learn==1.9.0 \
+ --hash=sha256:051075bda8b7aab87b1906ab3d4740a1e1224a19d7b3781a576736edc94e76aa \
+ --hash=sha256:056c92bb67ad4c28463c2f2653d9701449201e7e7a9e94e321be0f71c4fef2b8 \
+ --hash=sha256:147e9329ef0e39f75d4cffa02b2aa48d827832684926cd5210d9a2cb5c57246b \
+ --hash=sha256:1b944b6db288f6b926e3650026ddafb988929de95d11fc2cc5fa117773c9ba42 \
+ --hash=sha256:1fea2cc5677ab49d6f5bade978c866da44957b712d92e9635e8b4f723013c3cb \
+ --hash=sha256:24360002ae845e7866522b0a5bbf690802e7bc388cac8663502e78aa98598aa2 \
+ --hash=sha256:26e22435f63bcdcf396b574273f29f13dd531f5ea035801f5be10ba1540a4e60 \
+ --hash=sha256:2bd41b0d201bc81575531b96b713d3eb5e5f50fb0b82101ff0f92294fdc236ac \
+ --hash=sha256:366652351f092b219c248f1e72821e841960a63d8f358f1dcfd54dc1cbdbbc28 \
+ --hash=sha256:38c3dcb9a1ffb85505ec53d54c7b4aea0cff70050425a7760c2af661ac85df05 \
+ --hash=sha256:4306775fad04cc4b472a1b15af1ae9cede1540fbfcc17fbce3767cd8dc7ae283 \
+ --hash=sha256:4ccacf04ca5f4b492158a5f28afe0ace43f81b2571e4b9a66d34848b46128949 \
+ --hash=sha256:5162ad10a418c8a282dde04c9aa06965de3e9a65f33c1440c0ae69bb1a09d913 \
+ --hash=sha256:5808d98f15c6bf6d9d96d2348c1997392a5888ce7097e664105f930c4bca1277 \
+ --hash=sha256:5b934c45c252844a91d69fda3a34cff5e7307e1db10d77cb10a3980312c74713 \
+ --hash=sha256:5bad8f8b9950321b54c965fdcbac6c6c55e79e16646b49977bcf3668d3870a1a \
+ --hash=sha256:5be45aa4a42a68a533913a6ed736cf309de2226411c79ef8d609a5456f1939b1 \
+ --hash=sha256:5dc1818c77575d149e25fce9ef82dd7b7263ae372f03494158668ad632a69759 \
+ --hash=sha256:5e50ed4da51974e86e940690e9a3d82e729b62b5a49f7c9bac534d515d39d86f \
+ --hash=sha256:64fa347efc1c839c487433e40c5144d38c336e8a2b59c81aa8660373945c2673 \
+ --hash=sha256:78fc56eafd4edb9575d2d8950d1dd152061abb573341a1cb7e099fc40f6c6666 \
+ --hash=sha256:80746d63bd4b6eaca54d36fe5feaf4d28bb38dc6f9470f81c7cad7c40155f119 \
+ --hash=sha256:8833266989d3a5110178a9fae30783675460724d0e1efb13b14901d2c660c557 \
+ --hash=sha256:9656acd4e93f74e0b66c8a36c88830a99252dfa900044d36bc2212ae89a47162 \
+ --hash=sha256:9db6f4d34e68c8899e4cab27fdf8eafe6ed21f2ba52ceb25ea250cd237f8e47b \
+ --hash=sha256:d77f54c017633791bc0225a43e2f8d03745fdcfe4880268fcc4df15f505dec2e \
+ --hash=sha256:da76d09304a4706db7cc1e3ebaa3b6b98a67365cc11d2996c4f1e58ba47df714 \
+ --hash=sha256:ee1a8db2c18c08e34c7412d4b10be1cac214cd4ea7dc9715a6a327eb49a37c96 \
+ --hash=sha256:f401448645a3e7bc115aa3c094097865155b34bff1cba8101857d9104e99074c \
+ --hash=sha256:f7e254636164090da847715a27f8e5478feb98c40a9e0ee90cbd277de9e5ceb8 \
+ --hash=sha256:fd3a8ef0c758555a3b23c03adaa858af32f7736785ded50ad5991f59c4ed03fa
+ # via
+ # librosa
+ # livekit-wakeword
+scipy==1.17.1 \
+ --hash=sha256:010f4333c96c9bb1a4516269e33cb5917b08ef2166d5556ca2fd9f082a9e6ea0 \
+ --hash=sha256:02ae3b274fde71c5e92ac4d54bc06c42d80e399fec704383dcd99b301df37458 \
+ --hash=sha256:08b900519463543aa604a06bec02461558a6e1cef8fdbb8098f77a48a83c8118 \
+ --hash=sha256:131f5aaea57602008f9822e2115029b55d4b5f7c070287699fe45c661d051e39 \
+ --hash=sha256:158dd96d2207e21c966063e1635b1063cd7787b627b6f07305315dd73d9c679e \
+ --hash=sha256:1cc682cea2ae55524432f3cdff9e9a3be743d52a7443d0cba9017c23c87ae2f6 \
+ --hash=sha256:1f95b894f13729334fb990162e911c9e5dc1ab390c58aa6cbecb389c5b5e28ec \
+ --hash=sha256:200e1050faffacc162be6a486a984a0497866ec54149a01270adc8a59b7c7d21 \
+ --hash=sha256:2040ad4d1795a0ae89bfc7e8429677f365d45aa9fd5e4587cf1ea737f927b4a1 \
+ --hash=sha256:2b64ca7d4aee0102a97f3ba22124052b4bd2152522355073580bf4845e2550b6 \
+ --hash=sha256:2ceb2d3e01c5f1d83c4189737a42d9cb2fc38a6eeed225e7515eef71ad301dce \
+ --hash=sha256:35c3a56d2ef83efc372eaec584314bd0ef2e2f0d2adb21c55e6ad5b344c0dcb8 \
+ --hash=sha256:37425bc9175607b0268f493d79a292c39f9d001a357bebb6b88fdfaff13f6448 \
+ --hash=sha256:3877ac408e14da24a6196de0ddcace62092bfc12a83823e92e49e40747e52c19 \
+ --hash=sha256:3fd1fcdab3ea951b610dc4cef356d416d5802991e7e32b5254828d342f7b7e0b \
+ --hash=sha256:41b71f4a3a4cab9d366cd9065b288efc4d4f3c0b37a91a8e0947fb5bd7f31d87 \
+ --hash=sha256:43af8d1f3bea642559019edfe64e9b11192a8978efbd1539d7bc2aaa23d92de4 \
+ --hash=sha256:45abad819184f07240d8a696117a7aacd39787af9e0b719d00285549ed19a1e9 \
+ --hash=sha256:4b400bdc6f79fa02a4d86640310dde87a21fba0c979efff5248908c6f15fad1b \
+ --hash=sha256:4eb6c25dd62ee8d5edf68a8e1c171dd71c292fdae95d8aeb3dd7d7de4c364082 \
+ --hash=sha256:581b2264fc0aa555f3f435a5944da7504ea3a065d7029ad60e7c3d1ae09c5464 \
+ --hash=sha256:5cf36e801231b6a2059bf354720274b7558746f3b1a4efb43fcf557ccd484a87 \
+ --hash=sha256:5e3c5c011904115f88a39308379c17f91546f77c1667cea98739fe0fccea804c \
+ --hash=sha256:6609bc224e9568f65064cfa72edc0f24ee6655b47575954ec6339534b2798369 \
+ --hash=sha256:6e3dcd57ab780c741fde8dc68619de988b966db759a3c3152e8e9142c26295ad \
+ --hash=sha256:6fac755ca3d2c3edcb22f479fceaa241704111414831ddd3bc6056e18516892f \
+ --hash=sha256:744b2bf3640d907b79f3fd7874efe432d1cf171ee721243e350f55234b4cec4c \
+ --hash=sha256:74cbb80d93260fe2ffa334efa24cb8f2f0f622a9b9febf8b483c0b865bfb3475 \
+ --hash=sha256:766e0dc5a616d026a3a1cffa379af959671729083882f50307e18175797b3dfd \
+ --hash=sha256:7bdf2da170b67fdf10bca777614b1c7d96ae3ca5794fd9587dce41eb2966e866 \
+ --hash=sha256:7ff200bf9d24f2e4d5dc6ee8c3ac64d739d3a89e2326ba68aaf6c4a2b838fd7d \
+ --hash=sha256:844e165636711ef41f80b4103ed234181646b98a53c8f05da12ca5ca289134f6 \
+ --hash=sha256:8a604bae87c6195d8b1045eddece0514d041604b14f2727bbc2b3020172045eb \
+ --hash=sha256:94055a11dfebe37c656e70317e1996dc197e1a15bbcc351bcdd4610e128fe1ca \
+ --hash=sha256:95d8e012d8cb8816c226aef832200b1d45109ed4464303e997c5b13122b297c0 \
+ --hash=sha256:9cdc1a2fcfd5c52cfb3045feb399f7b3ce822abdde3a193a6b9a60b3cb5854ca \
+ --hash=sha256:9ecb4efb1cd6e8c4afea0daa91a87fbddbce1b99d2895d151596716c0b2e859d \
+ --hash=sha256:a3472cfbca0a54177d0faa68f697d8ba4c80bbdc19908c3465556d9f7efce9ee \
+ --hash=sha256:a4328d245944d09fd639771de275701ccadf5f781ba0ff092ad141e017eccda4 \
+ --hash=sha256:a48a72c77a310327f6a3a920092fa2b8fd03d7deaa60f093038f22d98e096717 \
+ --hash=sha256:a720477885a9d2411f94a93d16f9d89bad0f28ca23c3f8daa521e2dcc3f44d49 \
+ --hash=sha256:a77cbd07b940d326d39a1d1b37817e2ee4d79cb30e7338f3d0cddffae70fcaa2 \
+ --hash=sha256:a9956e4d4f4a301ebf6cde39850333a6b6110799d470dbbb1e25326ac447f52a \
+ --hash=sha256:adb2642e060a6549c343603a3851ba76ef0b74cc8c079a9a58121c7ec9fe2350 \
+ --hash=sha256:beeda3d4ae615106d7094f7e7cef6218392e4465cc95d25f900bebabfded0950 \
+ --hash=sha256:c80be5ede8f3f8eded4eff73cc99a25c388ce98e555b17d31da05287015ffa5b \
+ --hash=sha256:cc90d2e9c7e5c7f1a482c9875007c095c3194b1cfedca3c2f3291cdc2bc7c086 \
+ --hash=sha256:cd96a1898c0a47be4520327e01f874acfd61fb48a9420f8aa9f6483412ffa444 \
+ --hash=sha256:d2650c1fb97e184d12d8ba010493ee7b322864f7d3d00d3f9bb97d9c21de4068 \
+ --hash=sha256:d30e57c72013c2a4fe441c2fcb8e77b14e152ad48b5464858e07e2ad9fbfceff \
+ --hash=sha256:d59c30000a16d8edc7e64152e30220bfbd724c9bbb08368c054e24c651314f0a \
+ --hash=sha256:dbc12c9f3d185f5c737d801da555fb74b3dcfa1a50b66a1a93e09190f41fab50 \
+ --hash=sha256:e18f12c6b0bc5a592ed23d3f7b891f68fd7f8241d69b7883769eb5d5dfb52696 \
+ --hash=sha256:e19ebea31758fac5893a2ac360fedd00116cbb7628e650842a6691ba7ca28a21 \
+ --hash=sha256:e30bdeaa5deed6bc27b4cc490823cd0347d7dae09119b8803ae576ea0ce52e4c \
+ --hash=sha256:eb092099205ef62cd1782b006658db09e2fed75bffcae7cc0d44052d8aa0f484 \
+ --hash=sha256:eee2cfda04c00a857206a4330f0c5e3e56535494e30ca445eb19ec624ae75118 \
+ --hash=sha256:f4115102802df98b2b0db3cce5cb9b92572633a1197c77b7553e5203f284a5b3 \
+ --hash=sha256:f590cd684941912d10becc07325a3eeb77886fe981415660d9265c4c418d0bea \
+ --hash=sha256:f8885db0bc2bffa59d5c1b72fad7a6a92d3e80e7257f967dd81abb553a90d293 \
+ --hash=sha256:fcb310ddb270a06114bb64bbe53c94926b943f5b7f0842194d585c65eb4edd76
+ # via
+ # audiomentations
+ # librosa
+ # livekit-wakeword
+ # scikit-learn
+setuptools==78.1.0 \
+ --hash=sha256:3e386e96793c8702ae83d17b853fb93d3e09ef82ec62722e61da5cd22376dcd8
+ # via
+ # livekit-wakeword
+ # triton
+shellingham==1.5.4 \
+ --hash=sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686 \
+ --hash=sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de
+ # via typer
+six==1.17.0 \
+ --hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
+ --hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81
+ # via python-dateutil
+soundfile==0.14.0 \
+ --hash=sha256:0a6ae43c50c71b4e020cc55382925cb89451c1ed1a0c3d0f5d802da269226849 \
+ --hash=sha256:19be05428da76ed61a4cad29b8e4bcf43a3e5c100089d2ec81dc961eed1b0dd4 \
+ --hash=sha256:1e38bac1853412871318e82a1ba69a8be677619b56025bbfcccdb41b6cafe82d \
+ --hash=sha256:299491d3499460fb1b74bb4bd78b57ffc2d243a5fafa7b6ec1b264875c78453e \
+ --hash=sha256:8ba81ae3a89fd5ab3bef8a8eb481fbbe794e806309675a89b4df48b8d31908a8 \
+ --hash=sha256:ba1c1a2d618bca5c406647c83b89f07cc8810fa506a50622a6993ba130c1de11 \
+ --hash=sha256:d828d35a059626da52f1415b5faee610aeab393319cb3fc4a9aef47b619fc14c \
+ --hash=sha256:e090704718e124e7c844695236f1fce8d18a5e761eaf7c82dfcd124620805f98 \
+ --hash=sha256:e85724a90bc99a6e8062c0b4ddf725f53b2a3b70afd4da875e9d2cfc4e92f377
+ # via
+ # librosa
+ # livekit-wakeword
+soxr==0.5.0.post1 \
+ --hash=sha256:39e0f791ba178d69cd676485dbee37e75a34f20daa478d90341ecb7f6d9d690f \
+ --hash=sha256:4704ba6b13a3f1e41d12acf192878384c1c31f71ce606829c64abdf64a8d7d32 \
+ --hash=sha256:4f0b558f445ba4b64dbcb37b5f803052eee7d93b1dbbbb97b3ec1787cb5a28eb \
+ --hash=sha256:6fb77b626773a966e3d8f6cb24f6f74b5327fa5dc90f1ff492450e9cdc03a378 \
+ --hash=sha256:7092b9f3e8a416044e1fa138c8172520757179763b85dc53aa9504f4813cff73 \
+ --hash=sha256:7406d782d85f8cf64e66b65e6b7721973de8a1dc50b9e88bc2288c343a987484 \
+ --hash=sha256:7e71b0b0db450f36de70f1047505231db77a713f8c47df9342582ae8a4b828f2 \
+ --hash=sha256:8b01d3efb95a2851f78414bcd00738b0253eec3f5a1e5482838e965ffef84969 \
+ --hash=sha256:94de2812368e98cb42b4eaeddf8ee1657ecc19bd053f8e67b9b5aa12a3592012 \
+ --hash=sha256:97f269bc26937c267a2ace43a77167d0c5c8bba5a2b45863bb6042b5b50c474e \
+ --hash=sha256:9c8e9c980637e03d3f345a4fd81d56477a58c294fb26205fa121bc4eb23d9d01 \
+ --hash=sha256:a3f16810dd649ab1f433991d2a9661e9e6a116c2b4101039b53b3c3e90a094fc \
+ --hash=sha256:b1be9fee90afb38546bdbd7bde714d1d9a8c5a45137f97478a83b65e7f3146f6 \
+ --hash=sha256:bd052a66471a7335b22a6208601a9d0df7b46b8d087dce4ff6e13eed6a33a2a1 \
+ --hash=sha256:c4d8d5283ed6f5efead0df2c05ae82c169cfdfcf5a82999c2d629c78b33775e8 \
+ --hash=sha256:c5af7b355959061beb90a1d73c4834ece4549f07b708f8c73c088153cec29935 \
+ --hash=sha256:ca6903671808e0a6078b0d146bb7a2952b118dfba44008b2aa60f221938ba829 \
+ --hash=sha256:e1dda616fc797b1507b65486f3116ed2c929f13c722922963dd419d64ada6c07 \
+ --hash=sha256:fa0a382fb8d8e2afed2c1642723b2d2d1b9a6728ff89f77f3524034c8885b8c9 \
+ --hash=sha256:fcc049b0a151a65aa75b92f0ac64bb2dba785d16b78c31c2b94e68c141751d6d \
+ --hash=sha256:fef509466c9c25f65eae0ce1e4b9ac9705d22c6038c914160ddaf459589c6e31
+ # via
+ # audiomentations
+ # librosa
+sympy==1.14.0 \
+ --hash=sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517 \
+ --hash=sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5
+ # via
+ # onnx-ir
+ # onnxruntime-gpu
+ # torch
+threadpoolctl==3.6.0 \
+ --hash=sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb \
+ --hash=sha256:8ab8b4aa3491d812b623328249fab5302a68d2d71745c8a4c719a2fcaba9f44e
+ # via scikit-learn
+torch==2.7.1+cu126 \
+ --hash=sha256:03b83a0f2c1e90afafd7a5728b956e211bb3e6c56ea3d7d8c7638a659e448d5f \
+ --hash=sha256:27d396231f33dc6103ba26ec6ec2ec5939d9850b599e32da711b038af272954e \
+ --hash=sha256:30119a54e1b4ccefe20dfe5d4b13f6aef76c17ec605b40e26d39789db00906f2 \
+ --hash=sha256:49692cc24edb72ba247a6f37345572cb2371f125eda132bc2834fd842f16bb7e \
+ --hash=sha256:63bce0590bc540fc16139e2be0177847585182b8c5e68d7f9213789d1d96c978 \
+ --hash=sha256:7d897b5ff67e778de4a2a05d4528377003105e29854fd73ecbe965287533f08b \
+ --hash=sha256:a05c0001fd1d0ceae9cda8c8c1b8a16ed5def858fe996c9237a28016559dad52 \
+ --hash=sha256:a38a903c9b55cea1217100e0851b25659765b6bb8cd75e6de6bbf0063a2cd51e \
+ --hash=sha256:d4e68a1aeb2a6272d0234b7575089fc70757a93d24dccde8e962a3b18aef77d1 \
+ --hash=sha256:e1a8465165708c2e2e90786ade8a3e1b1d01eca1f022792cd397caad9d8c21bc \
+ --hash=sha256:ef0d0b0bd96d2adb07a47da12426e60d91921dfcd7c1964eea309f41488c2462 \
+ --hash=sha256:f3af23387ac106b5b01dbef0eb021883e0c00ff4073477b7ce1cbade5ef5038d
+ # via
+ # -r deploy/wakeword-training/requirements.in
+ # julius
+ # livekit-wakeword
+ # torch-audiomentations
+ # torch-pitch-shift
+ # torchaudio
+torch-audiomentations==0.12.0 \
+ --hash=sha256:1b80b91d2016ccf83979622cac8f702072a79b7dcc4c2bee40f00b26433a786b \
+ --hash=sha256:b02d4c5eb86376986a53eb405cca5e34f370ea9284411237508e720c529f7888
+ # via livekit-wakeword
+torch-pitch-shift==1.2.5 \
+ --hash=sha256:6e1c7531f08d0f407a4c55e5ff8385a41355c5c5d27ab7fa08632e51defbd0ed \
+ --hash=sha256:6f8500cbc13f1c98b11cde1805ce5084f82cdd195c285f34287541f168a7c6a7
+ # via torch-audiomentations
+torchaudio==2.7.1+cu126 \
+ --hash=sha256:0c306e9f5ae1204dc8cd998912d0ad4b13420d00428aa5f5fcab01b180abe386 \
+ --hash=sha256:1e9231eb156400a53d8041688f7567ac92c8758332225e364c35d68603cae2da \
+ --hash=sha256:2c5d2d639aa466cbb3cf3f32d20009b6a6d472df8e07a88238248b1bcf208023 \
+ --hash=sha256:33e67c2da5da68c075a065062cc39115b7af29890120c4773cfd24a9ea05a428 \
+ --hash=sha256:38484cd84566b96a12e7371ea0f5a91ce35708c8c2aaa223342da833e094ee6d \
+ --hash=sha256:560692b35b4c0325b4b11e793574e04565769f462a9146ad254d6d0411b8c7f4 \
+ --hash=sha256:759de378d1fe4f4a5a56d58f51b4a05a9aa9681ae7b9469e638d9ed321a73e95 \
+ --hash=sha256:9c6e00c79c09572a65eb54652d12f00fa79df63847552f61f10b7705fd0aca0b \
+ --hash=sha256:c293d7e8d5d86d855313a940862c8d1506536a80ea44eca1ab020579b4f8bb0b \
+ --hash=sha256:d3a5f160336aa7ec262f1361755c5da4e451571ed69f3cb8435b09bd7a2a0227 \
+ --hash=sha256:d9a65c7f7100748802030257efd22535decd74eba310d2b2b9c41489c77cbe1d \
+ --hash=sha256:fb9d04a635ab9856bf70c47926e3d47976c36aeb60779e6c4639ac2a630f9b0f
+ # via
+ # -r deploy/wakeword-training/requirements.in
+ # livekit-wakeword
+ # torch-audiomentations
+ # torch-pitch-shift
+tqdm==4.66.5 \
+ --hash=sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd
+ # via
+ # huggingface-hub
+ # livekit-wakeword
+ # nltk
+triton==3.3.1 \
+ --hash=sha256:4b79e49b15ae31dd0959090f37a362eb81c77c5643ba0ec56e529903b06d28cf \
+ --hash=sha256:592a96f5a81165c8f4ffaf431a61db76b2b91c74e810a1446b49fbfaf0ad6814 \
+ --hash=sha256:9999e83aba21e1a78c1f36f21bce621b77bcaa530277a50484a7cb4a822f6e43 \
+ --hash=sha256:9b1993c3ba470117dcf2888ff116d82809ed7a4d3cd05074fc40ff39190b2ce8 \
+ --hash=sha256:9ee4c2ae140cedfb6f9e69e54457fa288aab6f138fd1ac4b71da92cdfa660901 \
+ --hash=sha256:a3198adb9d78b77818a5388bff89fa72ff36f9da0bc689db2f0a651a67ce6a42 \
+ --hash=sha256:b31e3aa26f8cb3cc5bf4e187bf737cbacf17311e1112b781d4a059353dfd731b \
+ --hash=sha256:b74db445b1c562844d3cfad6e9679c72e93fdfb1a90a24052b03bb5c49d1242e \
+ --hash=sha256:b89d846b5a4198317fec27a5d3a609ea96b6d557ff44b56c23176546023c4240 \
+ --hash=sha256:d4e316c29dcb5103dcfcdf98de8fa1b91c0bfb26218ac577eccc30585adfb60d \
+ --hash=sha256:ef7099ec6e31a85de6a93e73b560e8f5bf79cf785416401b81db4260906a878d \
+ --hash=sha256:f6139aeb04a146b0b8e0fbbd89ad1e65861c57cfed881f21d62d3cb94a36bab7
+ # via torch
+typer==0.27.1 \
+ --hash=sha256:53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56 \
+ --hash=sha256:a79bef8469a79c45498e7b814ecf8d603cc7644e9acbd9e19cac0334240b18df
+ # via livekit-wakeword
+typing-extensions==4.15.0 \
+ --hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548
+ # via
+ # anyio
+ # huggingface-hub
+ # librosa
+ # onnx-ir
+ # onnxscript
+ # pydantic
+ # pydantic-core
+ # soundfile
+ # torch
+ # typing-inspection
+typing-inspection==0.4.3 \
+ --hash=sha256:5f42b23858a91e0b4ef521f5418f03a0da3c9216fd2995ef5e73463100e676cd \
+ --hash=sha256:c5f9ec1530b5c1e2c9bc34a84d9a3466ed1b2f3f2fa9f901368d9c5596210e4d
+ # via pydantic
+urllib3==1.26.13 \
+ --hash=sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc
+ # via requests
+webrtcvad-wheels==2.0.14 \
+ --hash=sha256:04e47b87bf673098f25e2c2e07e486b58a339a93231ee0021a86a92b3b759b89 \
+ --hash=sha256:0640896776b348b835ce0e3e40071a6b307b68012d230f1ff3d09e658bfa16ed \
+ --hash=sha256:08507584c09f5ea0a95254015de037146e4e3564814c04e55d14fd0083162884 \
+ --hash=sha256:09fdc138ce3519e2f4ba2f74640bc6f72aff162fa0c9ae2941da8068f3d22ba6 \
+ --hash=sha256:0be3ac9ab58045ca55a397180634608709bdab1bbc8108c6731745fe4302e5da \
+ --hash=sha256:0c31fc11e8f1705238b46f548670222cca59d7292a3c06863e0e7de6aa867fac \
+ --hash=sha256:0ce641d6034b9acd60da3a45b1f80ca0136faeb8124596544e9d1074e3c7655a \
+ --hash=sha256:0d9ad6ef4ef7c89228469df52a4657886055a9f1ab036ede09400e2279ac5c70 \
+ --hash=sha256:0f527c02902e4edd629f25993008252da9f159315ca84b8a114f0c254cedb398 \
+ --hash=sha256:1070e11cd83bd199e1b557f198f92f7273d23260f3b4797e03d8c7ab98e9373f \
+ --hash=sha256:127741474d07c52f9034423796b0f9db6a5c1f3b1cdb0bf6be7b3485e9d86437 \
+ --hash=sha256:13f7f5586369d1cea860810f57168773a30d2a285c3986fe18943ca30da1d234 \
+ --hash=sha256:1626b35e1dc3d25dbf7cf70631a07d31b3edb3804be1265124769c850fabc933 \
+ --hash=sha256:166437b4c8000301aac501edfac78d9537bdd40c4f363f87097320a3c58dd74f \
+ --hash=sha256:1a7a3cb39b4d33cf4895fceea9a12d4e30a44b98a9512e661ffb0a520b3f6bfb \
+ --hash=sha256:1dd165e85de490869f72d0e23bfd0ac0f546b940a7f46cb7c3508b49d7742f41 \
+ --hash=sha256:2480bed964e748cd558a32bdfa2a515fcf195027c5ea8f01bff3c237c3e7ba4f \
+ --hash=sha256:2a4054779dd67c50e1b418e27f915c7b42a7c4591b5f51dfd1d875fcb868bd20 \
+ --hash=sha256:2bca16591cd44d4933caa549c88c0e5bbf764594dbb5b102699c6fed85760ad2 \
+ --hash=sha256:2cef1c9d0d20e3cb1882d8e177c2b7207b35dc8660d298c022678dee521df331 \
+ --hash=sha256:2dccf12d59ac9d840f80fbb62c885a8fb6de8083dcceab56998318684ca6553c \
+ --hash=sha256:2f2ae19589d89e1e67ad08f62fa11d5edce1a05a9a0e61d74ac3af6762da4caf \
+ --hash=sha256:31b262d992ca9791a3e22d5a7de55e4ad3c2107638b2866697f6e64973835741 \
+ --hash=sha256:323aa89df721377f053923fe1ea5c14e748c85314a977e2fcc3c920c4f474d40 \
+ --hash=sha256:32409315eaaec46ea58fb7e729193c66573d95124208efd03f332bc2fc4c6c7b \
+ --hash=sha256:34b315326dd6c8529221492ebf28fc649d96b1a49ce49bf649eca60aabc70a2d \
+ --hash=sha256:3926d8f70501a5fa742d65805f946964d34cde6d34525dbd28f457accbe84aeb \
+ --hash=sha256:4010b95b31b9b360fd1bf47a8344b06b946ec866cf3d14fb39fc692307ddf312 \
+ --hash=sha256:407c29a1d577dff8c2ef746bbd78151688f23ca763d97f3334d6e310ffa68aaa \
+ --hash=sha256:42310d3bb6cdb46a79a219d14fe97ae272b8af629d84321e5cfa0764556109a6 \
+ --hash=sha256:42cbef958b145573fb425482dbbd74fc080540a510c3871e1cebd59afa83c87f \
+ --hash=sha256:44dc24177294405599d3c0c3ce2307101a60afa83fa38b8320c8247dce9f23a3 \
+ --hash=sha256:4838e120cbd2e76bd47abc338c3121e8dea7653ae19650ce4f9c40b9bf84bc19 \
+ --hash=sha256:493d17e06d0c936d383443e8f15a0ad551bb727035ace1ff850e51f115a61395 \
+ --hash=sha256:52d446a7f7ca07ad4c17b67ed7610871f157c58412a71c36782ae85e0e822e11 \
+ --hash=sha256:561f87975930833a5b77135fb6f15e6df430bfc000c327dc517a175aef15a707 \
+ --hash=sha256:56bf2e8ab13c39e8c0c208d5f2058bba195b8a70f81fde4ec28edd74c22c2a58 \
+ --hash=sha256:578151f6d1d58a3735fc4c4b7d47db3d42503a49587f84d9c42c2cd8aee93867 \
+ --hash=sha256:598a6ca77850a7d2d4c30341f625627e56e8869dad5c28a21ec2be62a5be5fe6 \
+ --hash=sha256:5a4590a789af2e726a95c36e9bf4a51c05da1327288effc96bfda707af1762a0 \
+ --hash=sha256:5f59c8e291c6ef102d9f39532982fbf26a52ce2de6328382e2654b0960fea397 \
+ --hash=sha256:5fa2c3f981cb6926ef90cecc9799b6a0bcd690ca574578aca044a12fbbb7505b \
+ --hash=sha256:6056a2559d83836bf4b6af4993448202bfd080efd5e799d2153118e4a91d3fd1 \
+ --hash=sha256:60c2ad3ce924aedebaf55157e4c315dab698428d4ea0366170ae23754772733b \
+ --hash=sha256:628af1b2f6fefe74f85d9ebb4caa4811387bc1b50babad40e0c16ee68b1087cf \
+ --hash=sha256:63fdad42c0ca6248b9a5c8ca34ff17a5c43bb63ffd8997a5902ad7237a05ca68 \
+ --hash=sha256:665d8405855801a38d2ed4ce49948264e2115b6b0814eca21f2fefdc980a813e \
+ --hash=sha256:66a071b4b8d7e7139eae9e54aa426d7a99b81f0a32645cddb9f51dd14e6cf496 \
+ --hash=sha256:68e2041d1a30dc619a0e7ff5adaa948a6b862fa6e6d4d85337f235240707eab5 \
+ --hash=sha256:71d8289301f24f67c20936e9ba3827ad6b62798c6788ffa7d4fceb112bd9b9ee \
+ --hash=sha256:792ce66f32b6d3ffa7569ef467b4ec1a5a45eb95cc466d204c04c120f4169015 \
+ --hash=sha256:7baacff65a727f91f2b60e16cf7e55c4f4099d6f5778cd85b8366f671b6327be \
+ --hash=sha256:7de1df623d148052a61bd151545344dfafcf85dfb7075ea0e855009c080eb0ec \
+ --hash=sha256:7ed85306b52f3f0dc5f812809e2326c0a6c136caee4ba47fb1d0ed3740fb5255 \
+ --hash=sha256:7f453360aab5e99c6131a7a2c9828d77fff3729d6f211748eb4880b51e549ee3 \
+ --hash=sha256:805901e521250021f1541b11d20fa48ab9d6227aafb2a8a06b32fba43ec9c8d8 \
+ --hash=sha256:80a7333809601abf81a181c3fa2457eac93ac2d7a218ab59ef3786e240c7e208 \
+ --hash=sha256:83824316430e3d7bea1461fcd58840190bfea3cf54f574b562bc09d9233d7404 \
+ --hash=sha256:84eb682b200b9a6e41274faf24a816c2897d9977317c94f873b25c1eeb27310b \
+ --hash=sha256:88b157ae9fcf802e9b55efe95ca88a944a5560308ee8317c60543af20d8b7fe3 \
+ --hash=sha256:8c9c790bd88b16627fb3959b7dd7c65f5ceba489dc39952f3512cb25c418d55d \
+ --hash=sha256:8ca3dfbceefbef62d668586cbacf82a5b01b4868d99fd958709cf3f642a20607 \
+ --hash=sha256:910038ecdbbfafbe53f3ffe7170da19f39ea2715b19f72d13794434a76de7c94 \
+ --hash=sha256:912f82a20c64c3beb4dd2f927f37801add975feada20f1b859ea3e3f1997cd29 \
+ --hash=sha256:91ec9a558dfc64e9ca4a29c6b7abd7baaeb4fd4a025ce9af90c6dc819c37ec9f \
+ --hash=sha256:9239bd809fb343d5a0a8979ab13090353a5d65a7dc37e8ecccd99dba9c2293ac \
+ --hash=sha256:945c2982f50c89e1528e9edc582a960699fbf7860f03c4d9f0205620ec5008d2 \
+ --hash=sha256:984f412292bd6edb3487911a5b2e36d1690a6afb8fc3fab18286b52fdf20eea0 \
+ --hash=sha256:9c67055236f1ffcf160825bb87dbe2c1d3846ad51b54602906b1c7ea37a0b4ac \
+ --hash=sha256:9efbe94aa4ef07de1e2cf225fe09320037e9acada60e246bdd12ccbe9042f4b0 \
+ --hash=sha256:a11308e9f4091686d912bb02b2720e579a4a49eb71143df50c9e87758055fb0b \
+ --hash=sha256:a702219a22ebfd10f473295af87d32ebf0a37d3530895ad0923eb6481de95c2d \
+ --hash=sha256:a8f098b9c9e4646d269778c3420dfd068c9c8863fa026276aa55fceb617f735b \
+ --hash=sha256:aa31f26c1eb4f28ec4cb2d4a94f3413862e94272df1a950c535309949624755d \
+ --hash=sha256:aa8e901c1cdc4344a62a09745b2b3cdf34617801efc49d433fdbc238193efc9c \
+ --hash=sha256:ac87141d7e062f5f6bd7d2d7c1837aa4fbee7f297c0829806a1cacf42dd7ffa1 \
+ --hash=sha256:af2656e2e344abaad2fab8f4441a1ef850643bd7de15c2df54ca6c9fa92961f5 \
+ --hash=sha256:b4003139f180b8e4930b862d662dc574602e4547c8fb497bc48579b7cacc4110 \
+ --hash=sha256:b7f13d3d0f07af98f6f36f31cd32b92bf137f78a256dd11b106dd97fced1b93a \
+ --hash=sha256:bcdffafce093f72ccea028698163b33c85267481900f8389fc2ecc1d6d1b57ba \
+ --hash=sha256:bce6be5aef9512dbbaccbf16df2793c9e1a3b538c8cebb05976cf4e44bd3381f \
+ --hash=sha256:bd8ea0eae1257be2b0158c7a42efd85b61a655503d114a3e78787ea575b5ad6a \
+ --hash=sha256:bfd2e8d6f59b9770bf6f08a36adce63db416346e86872459fb137ab0a2ca2dda \
+ --hash=sha256:c04790408737ce811f51a6a78aeeb5a5d9646eca13d39c3fe3ca0debcf2ea357 \
+ --hash=sha256:c46f9e87969578a1d13f983386b8fc7fcf0243b182d065cf2f8d893f6e408fac \
+ --hash=sha256:c7aa4cfbf0c816d2b9ee3100d3008f5acf8bd1a634d6058fa6c1604a1e2ba264 \
+ --hash=sha256:c9c8a498a74f33cf8700c3a60039f4a0c3a334f4932aec366e10f9a0a9f2ca72 \
+ --hash=sha256:ca5c8f13bdafbcd237aab945b2c4ca241befe61a859752e6e2e83044a991abbd \
+ --hash=sha256:cc5b046562eaed31f46d4ed61f60d2be0fd9798954ec591dd8753120a198492f \
+ --hash=sha256:cf2d953623f40af51135dd977ce5bb6263e5520b09c284280ab41132ca35a7cc \
+ --hash=sha256:cf9179d02111a33c4ab681c2e6aed53e90a11f261d10cb61958d0b0a499cb5f1 \
+ --hash=sha256:d2a7b30b76e30bf8cd153d42e779f27fbbe4656b5fe9e3e419336d5348a9d668 \
+ --hash=sha256:d7782d3a8d7d14afc73249af5518b1c81eb3f335f7ee49d7bc0dea0d38de4305 \
+ --hash=sha256:d78cde142d4f45385c652fb9133b95a04ac5525c4a50d75b63e28244627bbc5d \
+ --hash=sha256:dabebdf762d4f6e8c885cb01a099ee5ecadaa553da5fd553d9e7ebc67c21cb89 \
+ --hash=sha256:db9d5e6ae07cc82277eacac2b747afa7db53e9effab0259055116f5f77a28bf3 \
+ --hash=sha256:dc5718f9b28a8e540388272cc496d1623f45dde4641fb1f01af2601eeeff8d21 \
+ --hash=sha256:dd1f3cf5eaed9292cdf321cb82a23e5198fb6dcc2ed42d6a340c332c9336fcbc \
+ --hash=sha256:de5d6d71cbe2b92ec8411abd9c40d86e32f7d65f92a41029c0387d59c642810b \
+ --hash=sha256:e17f5b273523ae9de28117078107e4a2cee1b521d99d5fd2a88622277d7fa06f \
+ --hash=sha256:e24a943632840b1a71a08e1a92454b0a20ff07a1bb2cf7967c304fe1b11ba0b2 \
+ --hash=sha256:e739720c6b5bb0a21629f3a43563d8afe1de1b40d0ca07a39bc70f0584e05cc8 \
+ --hash=sha256:e8daa636d35614a8959306150e879d43df7b952d3e8d97d76795bcbc001ce6e4 \
+ --hash=sha256:e9be394659e8c5e49aa5b8e4ab24546de0f2bcdf694de8d6ff2988d2488626b0 \
+ --hash=sha256:ebb2c6c581e181fe892261884a1582ff72e28d3a854de8357ce195f3d81414d0 \
+ --hash=sha256:ec33779e6ceb9e124df1e22394982856af0fcdf186b31cb74e7f50e5ff347ada \
+ --hash=sha256:ecd6b0b3099f53862c794e0b398c93969326be72f1e20d4a5980bd626dece4a1 \
+ --hash=sha256:f1f6e6cb99e58f65d9a357fef0703263cf2eb5fa4d63333fff2aba73e2ad3947 \
+ --hash=sha256:f3e45e9618c6570d10e3b045d276150fbb2d2dfc45e49b56c68ea50c51c1b08b \
+ --hash=sha256:f820cbf4d1692fbdd05a5d478d995a85b54078ec1ae42df8f962e6d106fa4ea1 \
+ --hash=sha256:f8c8a64df3e4c3b5cd8589808eb1f59b0d5397a130f107a3217f0340caedad69 \
+ --hash=sha256:f956a19b34d27e18b92e66e78394c4cd34d048fb27dfc00910ea40c8c58d7c0d \
+ --hash=sha256:fb60ee7933d5e30e6e117a517f83d631114075245b71c99c63252fefbd0ab2ac \
+ --hash=sha256:fc03b57f99506b9ba1e403a5ca22a3c1fac913094c06488033fd36ce724bfe13 \
+ --hash=sha256:fc5d5a5bb13e5f25e095859d7a0018101a6563434781f27965f38ee75da45f9e \
+ --hash=sha256:fce09fb043fe3ef6af14a311bb787e23a05cee591d11fe041cb27819ce86197a \
+ --hash=sha256:fe2ced612732a41aefa14ea2ea52f84de5afd43665ebed092e1d6df93641e239 \
+ --hash=sha256:ff2a7eb4fe2189a7766726d6122b319df3e727c4cfed86409e2802fed1b459d3
+ # via livekit-wakeword
+zipp==3.19.2 \
+ --hash=sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c
+ # via importlib-metadata
diff --git a/deploy/wakeword-training/run-commercial-pipeline.py b/deploy/wakeword-training/run-commercial-pipeline.py
new file mode 100644
index 0000000..61ec575
--- /dev/null
+++ b/deploy/wakeword-training/run-commercial-pipeline.py
@@ -0,0 +1,141 @@
+"""Materialize approved inputs then call only released LiveKit CLI stages."""
+
+from __future__ import annotations
+
+import json
+import shutil
+import sys
+from pathlib import Path
+
+from stage_evidence import run_stage
+from wakeword_training_image import InputMaterializer
+
+RUN_DIR = Path("/run")
+
+
+def _load_json(path: Path) -> dict[str, object]:
+ value = json.loads(path.read_text(encoding="utf-8"))
+ if not isinstance(value, dict):
+ raise ValueError(f"{path} must contain a JSON object")
+ return value
+
+
+def _copy_as_clips(source_paths: list[Path], target: Path) -> None:
+ target.mkdir(parents=True, exist_ok=True)
+ for index, source in enumerate(source_paths):
+ if source.suffix.lower() != ".wav":
+ raise ValueError(f"recorded source must be a WAV: {source.name}")
+ shutil.copyfile(source, target / f"clip_{index:06d}.wav")
+
+
+def _stage_inputs(recorded_manifest: Path, config: dict[str, object]) -> None:
+ manifest = _load_json(recorded_manifest)
+ if manifest.get("classification") != "commercial_review_required":
+ raise ValueError("commercial pipeline refuses a non-commercial source manifest")
+ model_name = config.get("model_name")
+ if not isinstance(model_name, str) or not model_name:
+ raise ValueError("resolved config must declare model_name")
+ model_dir = RUN_DIR / "output" / model_name
+ stage_data = RUN_DIR / "stage-data"
+ sources = manifest.get("sources")
+ if not isinstance(sources, list):
+ raise ValueError("recorded manifest sources must be a list")
+ general_negative_features: dict[str, Path] = {}
+ for source in sources:
+ if not isinstance(source, dict):
+ raise ValueError("recorded manifest source must be an object")
+ purpose = source.get("purpose")
+ partition = source.get("partition")
+ files = source.get("files")
+ if (
+ not isinstance(purpose, str)
+ or not isinstance(partition, str)
+ or not isinstance(files, list)
+ ):
+ raise ValueError("recorded manifest source is incomplete")
+ paths = []
+ for file in files:
+ if not isinstance(file, dict) or not isinstance(file.get("materialized_path"), str):
+ raise ValueError("recorded manifest file is incomplete")
+ paths.append(RUN_DIR / str(file["materialized_path"]))
+ if purpose == "positive":
+ split = "positive_train" if partition == "train" else "positive_test"
+ _copy_as_clips(paths, model_dir / split)
+ elif purpose in {"adversarial_negative", "near_miss"}:
+ split = "negative_train" if partition == "train" else "negative_test"
+ _copy_as_clips(paths, model_dir / split)
+ elif purpose == "background":
+ target = stage_data / "backgrounds"
+ target.mkdir(parents=True, exist_ok=True)
+ for source_path in paths:
+ shutil.copyfile(source_path, target / source_path.name)
+ elif purpose == "rir":
+ target = stage_data / "rirs"
+ target.mkdir(parents=True, exist_ok=True)
+ for source_path in paths:
+ shutil.copyfile(source_path, target / source_path.name)
+ elif purpose == "general_negative_speech":
+ if len(paths) != 1 or paths[0].suffix != ".npy":
+ raise ValueError(
+ "general-negative source must provide exactly one .npy feature bundle"
+ )
+ if partition not in {"train", "validation"}:
+ raise ValueError("general-negative feature source must use train or validation")
+ if partition in general_negative_features:
+ raise ValueError(f"duplicate general-negative feature bundle for {partition}")
+ compatibility_name = {
+ "train": "openwakeword_features_ACAV100M_2000_hrs_16bit.npy",
+ "validation": "validation_set_features.npy",
+ }[partition]
+ target = stage_data / "features" / compatibility_name
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(paths[0], target)
+ general_negative_features[partition] = target
+
+ if set(general_negative_features) != {"train", "validation"}:
+ raise ValueError(
+ "commercial pipeline requires train and validation general-negative features"
+ )
+
+ config["data_dir"] = "/run/stage-data"
+ config["output_dir"] = "/run/output"
+ batch_sizes = config.setdefault("batch_n_per_class", {})
+ if not isinstance(batch_sizes, dict):
+ raise ValueError("batch_n_per_class must be an object")
+ # Preserve LiveKit's dataset key. The source lock/recorded manifest is the
+ # provenance boundary that says these bytes are approved general-negative
+ # speech, not ACAV100M data.
+ batch_sizes["ACAV100M_sample"] = batch_sizes.pop("general_negative_speech", 1024)
+ augmentation = config.setdefault("augmentation", {})
+ if not isinstance(augmentation, dict):
+ raise ValueError("augmentation must be an object")
+ augmentation["background_paths"] = ["/run/stage-data/backgrounds"]
+ augmentation["rir_paths"] = ["/run/stage-data/rirs"]
+ model = config.get("model")
+ if not isinstance(model, dict) or model.get("model_type", "conv_attention") != "conv_attention":
+ raise ValueError("commercial pipeline requires the FP32 conv_attention model")
+
+
+def main(config_path: Path) -> int:
+ request = _load_json(RUN_DIR / "request.json")
+ request_payload = request.get("request")
+ if not isinstance(request_payload, dict) or request_payload.get("run_kind") != "commercial":
+ raise ValueError("commercial pipeline refuses a quarantined or malformed request")
+ config = _load_json(config_path)
+ materialized = InputMaterializer(
+ RUN_DIR / "sources.lock.json", Path("/inputs"), RUN_DIR, run_kind="commercial"
+ ).materialize()
+ _stage_inputs(materialized.recorded_manifest_path, config)
+ effective_config_path = RUN_DIR / "effective-config.yaml"
+ effective_config_path.write_text(json.dumps(config, sort_keys=True) + "\n", encoding="utf-8")
+ run_stage("provenance", ["python", "/opt/jr-wakeword/record-image-provenance.py"])
+ for stage in ("augment", "train", "export", "eval"):
+ run_stage(stage, ["livekit-wakeword", stage, str(effective_config_path)])
+ run_stage(
+ "finalize", ["python", "/opt/jr-wakeword/finalize-run.py", str(effective_config_path)]
+ )
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main(Path(sys.argv[1])))
diff --git a/deploy/wakeword-training/run-local-experiment.py b/deploy/wakeword-training/run-local-experiment.py
new file mode 100644
index 0000000..5bb6cbf
--- /dev/null
+++ b/deploy/wakeword-training/run-local-experiment.py
@@ -0,0 +1,77 @@
+"""Run the released LiveKit stages for a user-owned, non-publishable experiment."""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import sys
+from pathlib import Path
+
+from stage_evidence import run_stage
+
+RUN_DIR = Path("/run")
+INPUTS_DIR = Path("/inputs")
+
+
+def _sha256(path: Path) -> str:
+ digest = hashlib.sha256()
+ with path.open("rb") as file:
+ for block in iter(lambda: file.read(1024 * 1024), b""):
+ digest.update(block)
+ return digest.hexdigest()
+
+
+def verify_local_cache() -> None:
+ lock = json.loads((RUN_DIR / "sources.lock.json").read_text(encoding="utf-8"))
+ sources = lock.get("sources")
+ if not isinstance(sources, list) or len(sources) != 1:
+ raise ValueError("local source lock must contain exactly one cache inventory")
+ files = sources[0].get("files") if isinstance(sources[0], dict) else None
+ if not isinstance(files, list):
+ raise ValueError("local source lock has no content-addressed file inventory")
+ expected_paths: set[str] = set()
+ for item in files:
+ if not isinstance(item, dict):
+ raise ValueError("local source inventory entry is invalid")
+ relative = item.get("relative_path")
+ expected_hash = item.get("sha256")
+ expected_size = item.get("size_bytes")
+ if (
+ not isinstance(relative, str)
+ or not relative
+ or Path(relative).is_absolute()
+ or ".." in Path(relative).parts
+ or not isinstance(expected_hash, str)
+ or not isinstance(expected_size, int)
+ ):
+ raise ValueError("local source inventory entry is unsafe")
+ path = INPUTS_DIR / relative
+ if not path.is_file() or path.is_symlink():
+ raise ValueError(f"locked local cache file is missing: {relative}")
+ if path.stat().st_size != expected_size or _sha256(path) != expected_hash:
+ raise ValueError(f"locked local cache file changed: {relative}")
+ expected_paths.add(relative)
+ actual_paths = {
+ path.relative_to(INPUTS_DIR).as_posix()
+ for path in INPUTS_DIR.rglob("*")
+ if path.is_file()
+ }
+ if actual_paths != expected_paths:
+ raise ValueError("local cache contains unsealed files")
+
+
+def main(config_path: Path) -> int:
+ request = json.loads((RUN_DIR / "request.json").read_text(encoding="utf-8"))
+ payload = request.get("request", {})
+ if payload.get("run_kind") != "local_experiment":
+ raise ValueError("local experiment wrapper requires run_kind=local_experiment")
+ verify_local_cache()
+ run_stage("provenance", ["python", "/opt/jr-wakeword/record-image-provenance.py"])
+ for stage in ("generate", "augment", "train", "export", "eval"):
+ run_stage(stage, ["livekit-wakeword", stage, str(config_path)])
+ run_stage("finalize", ["python", "/opt/jr-wakeword/finalize-run.py", str(config_path)])
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main(Path(sys.argv[1])))
diff --git a/deploy/wakeword-training/run-quarantined-smoke.py b/deploy/wakeword-training/run-quarantined-smoke.py
new file mode 100644
index 0000000..a4a681a
--- /dev/null
+++ b/deploy/wakeword-training/run-quarantined-smoke.py
@@ -0,0 +1,26 @@
+"""Explicitly non-promotable upstream smoke wrapper; it never runs setup."""
+
+from __future__ import annotations
+
+import json
+import sys
+from pathlib import Path
+
+from stage_evidence import run_stage
+
+
+def main(config_path: Path) -> int:
+ request = json.loads(Path("/run/request.json").read_text(encoding="utf-8"))
+ payload = request.get("request", {})
+ if payload.get("run_kind") != "quarantined_smoke":
+ raise ValueError("quarantined smoke wrapper requires run_kind=quarantined_smoke")
+ # Setup, if needed for this deliberately non-promotable smoke, is a separate
+ # operator operation. This container stays network-isolated either way.
+ run_stage("provenance", ["python", "/opt/jr-wakeword/record-image-provenance.py"])
+ run_stage("run", ["livekit-wakeword", "run", str(config_path)])
+ run_stage("finalize", ["python", "/opt/jr-wakeword/finalize-run.py", str(config_path)])
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main(Path(sys.argv[1])))
diff --git a/deploy/wakeword-training/source-lock.schema.json b/deploy/wakeword-training/source-lock.schema.json
new file mode 100644
index 0000000..ca3ebe6
--- /dev/null
+++ b/deploy/wakeword-training/source-lock.schema.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "title": "JR Wakeword commercial source lock",
+ "type": "object",
+ "required": ["schema_version", "run_kind", "sources"],
+ "properties": {
+ "schema_version": {"const": 1},
+ "run_kind": {"enum": ["commercial", "quarantined_smoke"]},
+ "sources": {
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "object",
+ "required": ["source_id", "source_kind", "purpose", "partition", "original_publisher", "version", "revision", "license", "attribution", "files"],
+ "properties": {
+ "source_id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{0,127}$"},
+ "source_kind": {"type": "string", "minLength": 1},
+ "purpose": {"enum": ["positive", "adversarial_negative", "near_miss", "general_negative_speech", "background", "rir"]},
+ "partition": {"enum": ["train", "validation", "calibration", "release_test"]},
+ "original_publisher": {"type": "object", "required": ["name", "url"]},
+ "version": {"type": "string", "minLength": 1},
+ "revision": {"type": "string", "minLength": 1},
+ "license": {"type": "object", "required": ["spdx_id", "terms_url", "captured_text_path", "captured_text_sha256"]},
+ "attribution": {"type": "string", "minLength": 1},
+ "commercial": {"type": "object"},
+ "files": {"type": "array", "minItems": 1}
+ }
+ }
+ }
+ }
+}
diff --git a/deploy/wakeword-training/stage_evidence.py b/deploy/wakeword-training/stage_evidence.py
new file mode 100644
index 0000000..cf7a36d
--- /dev/null
+++ b/deploy/wakeword-training/stage_evidence.py
@@ -0,0 +1,122 @@
+"""Record one isolated image stage without exposing arguments or raw inputs."""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import subprocess
+import time
+from datetime import UTC, datetime
+from pathlib import Path
+from typing import Any
+
+RUN_DIR = Path("/run")
+
+
+def _utc_now() -> str:
+ return datetime.now(UTC).isoformat().replace("+00:00", "Z")
+
+
+def _sha256(path: Path) -> str:
+ digest = hashlib.sha256()
+ with path.open("rb") as file:
+ for block in iter(lambda: file.read(1024 * 1024), b""):
+ digest.update(block)
+ return digest.hexdigest()
+
+
+def _disk_bytes(path: Path) -> int:
+ return sum(candidate.stat().st_size for candidate in path.rglob("*") if candidate.is_file())
+
+
+def _output_hashes() -> dict[str, str]:
+ output = RUN_DIR / "output"
+ return {
+ candidate.relative_to(RUN_DIR).as_posix(): _sha256(candidate)
+ for candidate in sorted(path for path in output.rglob("*") if path.is_file())
+ }
+
+
+def _input_hashes() -> dict[str, str]:
+ return {
+ name: _sha256(RUN_DIR / name)
+ for name in ("request.json", "resolved-config.yaml", "sources.lock.json")
+ if (RUN_DIR / name).is_file()
+ }
+
+
+def _time_metrics(path: Path) -> dict[str, float | int]:
+ values: dict[str, float | int] = {
+ "max_rss_kib": 0,
+ "cpu_user_s": 0.0,
+ "cpu_system_s": 0.0,
+ "cpu_percent": 0.0,
+ }
+ try:
+ lines = path.read_text(encoding="utf-8", errors="replace").splitlines()
+ except OSError:
+ return values
+ for line in lines:
+ key, separator, value = line.partition(":")
+ if not separator:
+ continue
+ try:
+ if key.strip() == "Maximum resident set size (kbytes)":
+ values["max_rss_kib"] = int(value.strip())
+ elif key.strip() == "User time (seconds)":
+ values["cpu_user_s"] = float(value.strip())
+ elif key.strip() == "System time (seconds)":
+ values["cpu_system_s"] = float(value.strip())
+ elif key.strip() == "Percent of CPU this job got":
+ values["cpu_percent"] = float(value.strip().removesuffix("%"))
+ except ValueError:
+ continue
+ return values
+
+
+def run_stage(name: str, command: list[str]) -> None:
+ """Run one released command and append its sealed evidence before raising."""
+
+ if not name or any(
+ character not in "abcdefghijklmnopqrstuvwxyz0123456789_-" for character in name
+ ):
+ raise ValueError("stage name must be a safe token")
+ if not command:
+ raise ValueError("stage command must not be empty")
+ active = RUN_DIR / "active-stage"
+ active.write_text(name + "\n", encoding="utf-8")
+ time_report = RUN_DIR / "stage-times" / f"{name}.time-v.txt"
+ time_report.parent.mkdir(parents=True, exist_ok=True)
+ started_at = _utc_now()
+ started = time.monotonic()
+ before = _disk_bytes(RUN_DIR)
+ exit_status: int | None = None
+ status = "failed"
+ try:
+ completed = subprocess.run(
+ ["/usr/bin/time", "-v", "-o", str(time_report), *command], check=False
+ )
+ exit_status = completed.returncode
+ if exit_status != 0:
+ raise subprocess.CalledProcessError(exit_status, command)
+ status = "succeeded"
+ finally:
+ record: dict[str, Any] = {
+ "name": name,
+ "started_at": started_at,
+ "ended_at": _utc_now(),
+ "status": status,
+ "exit_status": exit_status,
+ "command_name": command[0],
+ "input_hashes": _input_hashes(),
+ "output_hashes": _output_hashes() or {"output": hashlib.sha256(b"").hexdigest()},
+ "elapsed_s": time.monotonic() - started,
+ **_time_metrics(time_report),
+ "disk_growth_bytes": max(0, _disk_bytes(RUN_DIR) - before),
+ }
+ with (RUN_DIR / "image-stage-events.ndjson").open("a", encoding="utf-8") as file:
+ file.write(json.dumps(record, sort_keys=True, separators=(",", ":")) + "\n")
+ file.flush()
+ os.fsync(file.fileno())
+ active.unlink(missing_ok=True)
diff --git a/deploy/wakeword-training/training-request-v1.schema.json b/deploy/wakeword-training/training-request-v1.schema.json
new file mode 100644
index 0000000..da5a832
--- /dev/null
+++ b/deploy/wakeword-training/training-request-v1.schema.json
@@ -0,0 +1,110 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://gateway.jrich.ai/schemas/wakeword-training-request-v1.json",
+ "title": "Resolved Wakeword Training Request v1",
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "schema_version",
+ "primary_phrase",
+ "variants",
+ "near_misses",
+ "evaluation_profile",
+ "source_lock_path",
+ "source_lock_sha256",
+ "intended_release_id",
+ "runner_image_digest",
+ "pipeline_config",
+ "run_kind",
+ "derived_from_run_id"
+ ],
+ "properties": {
+ "schema_version": {"const": 1},
+ "primary_phrase": {"type": "string", "minLength": 1},
+ "variants": {"type": "array", "items": {"type": "string", "minLength": 1}},
+ "near_misses": {"type": "array", "items": {"type": "string", "minLength": 1}},
+ "evaluation_profile": {"type": "string", "minLength": 1},
+ "source_lock_path": {"type": "string", "minLength": 1},
+ "source_lock_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
+ "intended_release_id": {"type": "string", "minLength": 1},
+ "runner_image_digest": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
+ "pipeline_config": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["model_name", "target_phrases"],
+ "properties": {
+ "model_name": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"},
+ "family_slug": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"},
+ "version": {"type": "integer", "minimum": 1},
+ "threshold": {
+ "oneOf": [{"type": "number", "minimum": 0, "maximum": 1}, {"const": "auto"}]
+ },
+ "target_phrases": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}},
+ "custom_negative_phrases": {"type": "array", "items": {"type": "string", "minLength": 1}},
+ "n_samples": {"type": "integer", "minimum": 1},
+ "n_samples_val": {"type": "integer", "minimum": 1},
+ "n_background_samples": {"type": "integer", "minimum": 1},
+ "n_background_samples_val": {"type": "integer", "minimum": 1},
+ "tts_batch_size": {"type": "integer", "minimum": 1},
+ "max_speakers": {"type": ["integer", "null"], "minimum": 1},
+ "tts_backend": {"const": "piper_vits"},
+ "noise_scales": {"type": "array", "minItems": 1, "items": {"type": "number"}},
+ "noise_scale_ws": {"type": "array", "minItems": 1, "items": {"type": "number"}},
+ "length_scales": {"type": "array", "minItems": 1, "items": {"type": "number"}},
+ "slerp_weights": {"type": "array", "minItems": 1, "items": {"type": "number"}},
+ "augmentation": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "clip_duration": {"type": "number", "exclusiveMinimum": 0},
+ "batch_size": {"type": "integer", "minimum": 1},
+ "rounds": {"type": "integer", "minimum": 1},
+ "background_paths": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "pattern": "^/inputs/(?!\\.\\.(?:/|$))(?!.*?/\\.\\.(?:/|$)).+"
+ }
+ },
+ "rir_paths": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "pattern": "^/inputs/(?!\\.\\.(?:/|$))(?!.*?/\\.\\.(?:/|$)).+"
+ }
+ }
+ }
+ },
+ "model": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "model_type": {"enum": ["dnn", "rnn", "conv_attention"]},
+ "model_size": {"enum": ["tiny", "small", "medium", "large"]}
+ }
+ },
+ "steps": {"type": "integer", "minimum": 1},
+ "learning_rate": {"type": "number", "minimum": 0},
+ "weight_decay": {"type": "number", "minimum": 0},
+ "label_smoothing": {"type": "number", "minimum": 0},
+ "max_negative_weight": {"type": "number", "minimum": 0},
+ "target_fp_per_hour": {"type": "number", "minimum": 0},
+ "batch_n_per_class": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "positive": {"type": "integer", "minimum": 1},
+ "adversarial_negative": {"type": "integer", "minimum": 1},
+ "ACAV100M_sample": {"type": "integer", "minimum": 1},
+ "background_noise": {"type": "integer", "minimum": 1}
+ }
+ }
+ }
+ },
+ "run_kind": {"enum": ["commercial", "local_experiment", "quarantined_smoke"]},
+ "derived_from_run_id": {
+ "type": ["string", "null"],
+ "pattern": "^[a-f0-9]{32}$"
+ }
+ }
+}
diff --git a/scripts/build-wakeword-training-image b/scripts/build-wakeword-training-image
new file mode 100755
index 0000000..322706b
--- /dev/null
+++ b/scripts/build-wakeword-training-image
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Build the isolated training image from the reviewed, complete hash lock. This
+# is an operator preparation command, never a CI step or training invocation.
+# It intentionally does not download corpora or rewrite the reviewed lock.
+
+readonly build_dir="deploy/wakeword-training"
+readonly lock_file="${build_dir}/requirements.wheelhouse.lock"
+readonly base_image="docker.io/pytorch/pytorch@sha256:639b8229ccfd8a3aa803cf49c33d6d6fe406750d79aaf723fe8c0eb1060d8cff"
+
+if [[ $# -ne 1 ]]; then
+ echo "usage: $0 " >&2
+ exit 64
+fi
+if [[ ! -s "$lock_file" ]]; then
+ echo "required reviewed dependency lock is missing: $lock_file" >&2
+ exit 66
+fi
+if ! grep -F "livekit-wakeword" "$lock_file" >/dev/null \
+ || ! grep -F "0.2.1" "$lock_file" >/dev/null; then
+ echo "compiled lock did not retain livekit-wakeword 0.2.1" >&2
+ exit 65
+fi
+if ! grep -F "cf2d9cf4867812c06788f64c15e49abd909d9d6291f0a13f1c3f9cb649fa6127" "$lock_file" >/dev/null; then
+ echo "compiled lock did not retain the attested LiveKit source hash" >&2
+ exit 65
+fi
+if ! grep -F "torch==2.7.1+cu126" "$lock_file" >/dev/null \
+ || ! grep -F "torchaudio==2.7.1+cu126" "$lock_file" >/dev/null; then
+ echo "compiled lock must match the base image's PyTorch/TorchAudio 2.7.1 CUDA 12.6 pair" >&2
+ exit 65
+fi
+docker build --pull=false --build-arg "BASE_IMAGE=$base_image" -f "${build_dir}/Dockerfile" -t "$1" .
diff --git a/scripts/jrich-wakeword-trainer b/scripts/jrich-wakeword-trainer
new file mode 100755
index 0000000..985b569
--- /dev/null
+++ b/scripts/jrich-wakeword-trainer
@@ -0,0 +1,8 @@
+#!/usr/bin/env python3
+"""Executable entrance for the downloadable JRich Wakeword Trainer."""
+
+from wakeword_trainer import main
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/scripts/run-wakeword-training b/scripts/run-wakeword-training
new file mode 100755
index 0000000..e409edd
--- /dev/null
+++ b/scripts/run-wakeword-training
@@ -0,0 +1,112 @@
+#!/usr/bin/env python3
+"""Start one sealed offline Wakeword Training attempt.
+
+The command is deliberately operator-only. It has no gateway/API-key path and
+refuses to start unless both ``--enable`` and an active maintenance window are
+explicitly supplied. See docs/wakeword-training-operator-runner.md.
+"""
+
+from __future__ import annotations
+
+import argparse
+import asyncio
+import json
+from pathlib import Path
+
+from wakeword_training import (
+ DockerTrainingExecutor,
+ FakeTrainingExecutor,
+ NvidiaSmiGpuEvidenceSampler,
+ NvidiaSmiProcessInspector,
+ RunnerSettings,
+ StaticGpuProcessInspector,
+ StaticMaintenanceWindow,
+ WakewordTrainingRequest,
+ WakewordTrainingRunner,
+ terminal_exit_code,
+)
+
+
+def _parser() -> argparse.ArgumentParser:
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--request", required=True, type=Path, help="immutable request JSON")
+ parser.add_argument("--work-root", required=True, type=Path, help="operator run root")
+ parser.add_argument("--enable", action="store_true", help="explicitly permit this invocation")
+ parser.add_argument(
+ "--maintenance-window-active",
+ action="store_true",
+ help="attest that the configured GPU maintenance window is active",
+ )
+ parser.add_argument("--retry-of", help="terminal matching run ID for a new immutable attempt")
+ parser.add_argument("--timeout-s", type=float, default=6 * 60 * 60)
+ parser.add_argument(
+ "--fake", action="store_true", help="CI/local quarantined contract executor"
+ )
+ parser.add_argument(
+ "--image-ref", help="digest-pinned training image, e.g. registry/image@sha256:…"
+ )
+ parser.add_argument("--gpu-uuid", help="stable configured RTX UUID, never a mutable ordinal")
+ parser.add_argument(
+ "--approved-inputs-dir",
+ type=Path,
+ help="hash-locked data mount; mounted read-only at /inputs",
+ )
+ parser.add_argument(
+ "--allow-active-gpu-processes",
+ action="store_true",
+ help="explicit shared-GPU override; never terminates another process",
+ )
+ parser.add_argument(
+ "--stream-output", action="store_true", help="mirror container progress to stderr"
+ )
+ return parser
+
+
+async def _main(args: argparse.Namespace) -> int:
+ request = WakewordTrainingRequest.from_file(args.request)
+ if args.fake:
+ executor = FakeTrainingExecutor()
+ else:
+ if not (args.image_ref and args.gpu_uuid and args.approved_inputs_dir):
+ raise SystemExit(
+ "a real run requires --image-ref, --gpu-uuid, and --approved-inputs-dir; "
+ "use --fake only for a quarantined contract smoke"
+ )
+ executor = DockerTrainingExecutor(
+ image_ref=args.image_ref,
+ gpu_uuid=args.gpu_uuid,
+ approved_inputs_dir=args.approved_inputs_dir,
+ stream_output=args.stream_output,
+ )
+ runner = WakewordTrainingRunner(
+ settings=RunnerSettings(
+ work_root=args.work_root,
+ enabled=args.enable,
+ maintenance_window=StaticMaintenanceWindow(args.maintenance_window_active),
+ process_inspector=(
+ StaticGpuProcessInspector(active_unapproved_processes=False)
+ if args.fake or args.allow_active_gpu_processes
+ else NvidiaSmiProcessInspector(args.gpu_uuid)
+ ),
+ gpu_uuid=None if args.fake else args.gpu_uuid,
+ gpu_sampler=None if args.fake else NvidiaSmiGpuEvidenceSampler(args.gpu_uuid),
+ timeout_s=args.timeout_s,
+ ),
+ executor=executor,
+ )
+ result = await runner.run(request, retry_of=args.retry_of)
+ print(
+ json.dumps(
+ {
+ "run_dir": str(result.run_dir),
+ "run_id": result.state.run_id,
+ "status": result.state.status,
+ },
+ sort_keys=True,
+ )
+ )
+ return terminal_exit_code(result.state.status)
+
+
+if __name__ == "__main__":
+ raise SystemExit(asyncio.run(_main(_parser().parse_args())))
diff --git a/scripts/wakeword_trainer.py b/scripts/wakeword_trainer.py
new file mode 100644
index 0000000..63c1ba7
--- /dev/null
+++ b/scripts/wakeword_trainer.py
@@ -0,0 +1,603 @@
+"""Standard-library host launcher for the downloadable JRich Wakeword Trainer."""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import os
+import re
+import shutil
+import subprocess
+import sys
+from pathlib import Path
+from typing import Any
+
+RUNNER_VERSION = "0.2.1-jrich-2"
+DEFAULT_IMAGE = (
+ "git.jimandkrista.com/jr-public/jrich-wakeword-training"
+ "@sha256:cef5b1e769a6160bbde69f67df76f0b865f02c27794a3da096398c18cc9a3c2f"
+)
+DEFAULT_CACHE = Path.home() / ".cache" / "jrich-wakeword" / "livekit-0.2.1"
+DEFAULT_WORK_ROOT = Path.cwd() / "jrich-wakeword-runs"
+MIN_FREE_BYTES = 40 * 1024**3
+PRESET_PATH = (
+ Path(__file__).resolve().parents[1]
+ / "deploy"
+ / "wakeword-training"
+ / "presets"
+ / "manual-poc-v1.json"
+)
+_SLUG = re.compile(r"^[a-z0-9]+(?:-[a-z0-9]+)*$")
+_MODEL_NAME = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_-]*$")
+
+
+def _canonical(value: object) -> str:
+ return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":"))
+
+
+def _sha256(value: bytes) -> str:
+ return hashlib.sha256(value).hexdigest()
+
+
+def _deep_merge(base: dict[str, Any], override: dict[str, Any]) -> dict[str, Any]:
+ result = dict(base)
+ for key, value in override.items():
+ if key not in base:
+ raise ValueError(f"unknown pipeline override: {key}")
+ if isinstance(base[key], dict) and isinstance(value, dict):
+ result[key] = _deep_merge(base[key], value)
+ else:
+ result[key] = value
+ return result
+
+
+def default_pipeline_config(
+ *,
+ model_name: str,
+ family_slug: str,
+ version: int,
+ phrases: tuple[str, ...],
+ near_misses: tuple[str, ...],
+) -> dict[str, Any]:
+ """Return the measured, versioned manual-POC profile before user overrides."""
+
+ preset = json.loads(PRESET_PATH.read_text(encoding="utf-8"))
+ if not isinstance(preset, dict) or preset.get("preset_version") != "manual-poc-v1":
+ raise ValueError("the bundled manual POC preset is malformed")
+ config = preset.get("pipeline_config")
+ if not isinstance(config, dict):
+ raise ValueError("the bundled manual POC preset has no pipeline_config")
+ return {
+ "model_name": model_name,
+ "family_slug": family_slug,
+ "version": version,
+ "target_phrases": list(phrases),
+ "custom_negative_phrases": list(near_misses),
+ **config,
+ }
+
+
+def build_setup_command(
+ *, image_ref: str, gpu_uuid: str, cache_dir: Path, config_path: Path
+) -> tuple[str, ...]:
+ """Build the explicit networked cache-population command; training stays offline."""
+
+ cache_dir.mkdir(parents=True, exist_ok=True)
+ return (
+ "docker",
+ "run",
+ "--rm",
+ "--init",
+ "--gpus",
+ f"device={gpu_uuid}",
+ "--read-only",
+ "--cap-drop",
+ "ALL",
+ "--security-opt",
+ "no-new-privileges",
+ "--mount",
+ f"type=bind,src={cache_dir.resolve()},dst=/data",
+ "--mount",
+ f"type=bind,src={config_path.resolve()},dst=/config.json,readonly",
+ "--tmpfs",
+ "/tmp:rw,noexec,nosuid,size=4g",
+ image_ref,
+ "livekit-wakeword",
+ "setup",
+ "--config",
+ "/config.json",
+ )
+
+
+def _run(
+ command: tuple[str, ...] | list[str], *, capture: bool = False
+) -> subprocess.CompletedProcess:
+ return subprocess.run(command, check=False, capture_output=capture, text=True)
+
+
+def _inspect_image(image_ref: str) -> dict[str, Any] | None:
+ completed = _run(
+ ["docker", "image", "inspect", "--format", "{{json .}}", image_ref],
+ capture=True,
+ )
+ if completed.returncode != 0:
+ return None
+ try:
+ value = json.loads(completed.stdout)
+ except json.JSONDecodeError as exc:
+ raise ValueError("Docker returned malformed image metadata") from exc
+ if not isinstance(value, dict):
+ raise ValueError("Docker returned malformed image metadata")
+ return value
+
+
+def _image_identity(image_ref: str) -> str:
+ if image_ref.startswith("sha256:") and len(image_ref) == 71:
+ return image_ref.lower()
+
+ inspected = _inspect_image(image_ref)
+ if inspected is None:
+ print(f"Downloading pinned training runtime: {image_ref}", file=sys.stderr)
+ pulled = _run(["docker", "pull", image_ref])
+ if pulled.returncode != 0:
+ raise ValueError(f"training image download failed: {image_ref}")
+ inspected = _inspect_image(image_ref)
+ if inspected is None:
+ raise ValueError(
+ f"training image is unavailable after download: {image_ref}"
+ )
+
+ if "@sha256:" in image_ref:
+ expected = image_ref.lower()
+ repo_digests = inspected.get("RepoDigests", [])
+ if not isinstance(repo_digests, list) or expected not in {
+ str(value).lower() for value in repo_digests
+ }:
+ raise ValueError("Docker did not retain the requested registry manifest digest")
+
+ digest = str(inspected.get("Id", "")).lower()
+ if not digest.startswith("sha256:") or len(digest) != 71:
+ raise ValueError("Docker returned an invalid immutable image ID")
+ return digest
+
+
+def _default_gpu_uuid() -> str:
+ completed = _run(
+ ["nvidia-smi", "--query-gpu=uuid", "--format=csv,noheader"], capture=True
+ )
+ values = [line.strip() for line in completed.stdout.splitlines() if line.strip()]
+ if completed.returncode != 0 or not values:
+ raise ValueError("no NVIDIA GPU UUID was found; verify the driver and nvidia-smi")
+ if len(values) > 1:
+ raise ValueError("multiple NVIDIA GPUs found; choose one with --gpu-uuid")
+ return values[0]
+
+
+def _prompt(label: str, default: str | None = None) -> str:
+ suffix = f" [{default}]" if default else ""
+ value = input(f"{label}{suffix}: ").strip()
+ return value or (default or "")
+
+
+def _slug(value: str) -> str:
+ candidate = re.sub(r"[^a-z0-9]+", "-", value.lower()).strip("-")
+ if not _SLUG.fullmatch(candidate):
+ raise ValueError("family slug must use lowercase letters, numbers, and single hyphens")
+ return candidate
+
+
+def _interactive_values(args: argparse.Namespace) -> None:
+ if args.phrase:
+ return
+ print("JRich Wakeword Trainer — the defaults below match the measured RTX 3090 POC.")
+ primary = _prompt("Primary spoken phrase", "Hey Jay Rich")
+ variants = _prompt("Additional spoken phrases, comma-separated", "Yo Jay Rich")
+ near_misses = _prompt("Near-miss phrases that must not activate, comma-separated", "Jay Rich")
+ label = _prompt("Model name", "jrich")
+ args.phrase = [primary, *[item.strip() for item in variants.split(",") if item.strip()]]
+ args.near_miss = [item.strip() for item in near_misses.split(",") if item.strip()]
+ args.model_name = args.model_name or label
+ args.family_slug = args.family_slug or _slug(label)
+
+
+def _load_override(path: Path | None) -> dict[str, Any]:
+ if path is None:
+ return {}
+ value = json.loads(path.read_text(encoding="utf-8"))
+ if not isinstance(value, dict):
+ raise ValueError("pipeline override must be a JSON object")
+ return value
+
+
+def _file_sha256(path: Path) -> str:
+ digest = hashlib.sha256()
+ with path.open("rb") as file:
+ for block in iter(lambda: file.read(1024 * 1024), b""):
+ digest.update(block)
+ return digest.hexdigest()
+
+
+def write_local_source_lock(work_root: Path, cache_dir: Path) -> tuple[Path, str]:
+ """Write a path-independent, content-addressed inventory of the local cache."""
+
+ request_root = work_root / "requests"
+ request_root.mkdir(parents=True, exist_ok=True)
+ cache_dir.mkdir(parents=True, exist_ok=True)
+ files: list[dict[str, object]] = []
+ for path in sorted(cache_dir.rglob("*")):
+ if path.is_symlink():
+ raise ValueError(f"training cache must not contain symlinks: {path}")
+ if not path.is_file():
+ continue
+ files.append(
+ {
+ "relative_path": path.relative_to(cache_dir).as_posix(),
+ "size_bytes": path.stat().st_size,
+ "sha256": _file_sha256(path),
+ }
+ )
+ value = {
+ "schema_version": 1,
+ "run_kind": "local_experiment",
+ "sources": [
+ {
+ "source_id": "livekit-setup-cache-v0.2.1",
+ "kind": "user-local-cache",
+ "publication_approved": False,
+ "files": files,
+ }
+ ],
+ }
+ encoded = (_canonical(value) + "\n").encode("utf-8")
+ digest = _sha256(encoded)
+ path = request_root / f"sources-{digest}.lock.json"
+ if not path.exists():
+ path.write_bytes(encoded)
+ path.chmod(0o444)
+ return path, digest
+
+
+def resolve_plan(args: argparse.Namespace) -> dict[str, Any]:
+ phrases = tuple(" ".join(value.split()) for value in (args.phrase or ()) if value.strip())
+ if not phrases:
+ raise ValueError("at least one --phrase is required in non-interactive mode")
+ near_misses = tuple(
+ " ".join(value.split()) for value in (args.near_miss or ()) if value.strip()
+ )
+ model_name = (args.model_name or _slug(phrases[0]).replace("-", "_")).strip()
+ if not _MODEL_NAME.fullmatch(model_name):
+ raise ValueError(
+ "model name must start with a letter or number and contain only letters, "
+ "numbers, underscores, or hyphens"
+ )
+ if args.version < 1:
+ raise ValueError("version must be a positive integer")
+ family_slug = _slug(args.family_slug or model_name)
+ image_digest = _image_identity(args.image_ref)
+ gpu_uuid = args.gpu_uuid or _default_gpu_uuid()
+ cache_dir = args.cache_dir.resolve()
+ work_root = args.work_root.resolve()
+ pipeline = default_pipeline_config(
+ model_name=model_name,
+ family_slug=family_slug,
+ version=args.version,
+ phrases=phrases,
+ near_misses=near_misses,
+ )
+ pipeline = _deep_merge(pipeline, _load_override(args.pipeline_config))
+ identity = {
+ "model_name": model_name,
+ "family_slug": family_slug,
+ "version": args.version,
+ "target_phrases": list(phrases),
+ "custom_negative_phrases": list(near_misses),
+ }
+ divergent = [name for name, value in identity.items() if pipeline.get(name) != value]
+ if divergent:
+ raise ValueError(
+ "pipeline override cannot change request identity fields: " + ", ".join(divergent)
+ )
+ source_lock, source_digest = write_local_source_lock(work_root, cache_dir)
+ request = {
+ "schema_version": 1,
+ "primary_phrase": phrases[0],
+ "variants": list(phrases[1:]),
+ "near_misses": list(near_misses),
+ "evaluation_profile": "local-balanced-v1",
+ "source_lock_path": str(source_lock),
+ "source_lock_sha256": source_digest,
+ "intended_release_id": f"{family_slug}-v{args.version}",
+ "runner_image_digest": image_digest,
+ "pipeline_config": pipeline,
+ "run_kind": "local_experiment",
+ "derived_from_run_id": args.reuse_from,
+ }
+ # Keep the local wizard and future API worker on the exact same fail-closed
+ # validation boundary. Import shape differs only between the extracted
+ # archive (sibling module) and repository tests (scripts package).
+ try:
+ from wakeword_training import RunKind, WakewordTrainingRequest
+ except ModuleNotFoundError:
+ from scripts.wakeword_training import RunKind, WakewordTrainingRequest
+
+ WakewordTrainingRequest(
+ primary_phrase=request["primary_phrase"],
+ variants=tuple(request["variants"]),
+ near_misses=tuple(request["near_misses"]),
+ evaluation_profile=request["evaluation_profile"],
+ source_lock_path=Path(request["source_lock_path"]),
+ source_lock_sha256=request["source_lock_sha256"],
+ intended_release_id=request["intended_release_id"],
+ runner_image_digest=request["runner_image_digest"],
+ pipeline_config=request["pipeline_config"],
+ run_kind=RunKind.LOCAL_EXPERIMENT,
+ derived_from_run_id=request["derived_from_run_id"],
+ ).canonical_payload()
+ return {
+ "schema_version": 1,
+ "runner_version": RUNNER_VERSION,
+ "request": request,
+ "runtime": {
+ "image_ref": image_digest,
+ "image_source": args.image_ref,
+ "gpu_uuid": gpu_uuid,
+ "cache_dir": str(cache_dir),
+ "work_root": str(work_root),
+ "hardware_profile": "shared-conservative"
+ if args.allow_active_gpu_processes
+ else "exclusive",
+ },
+ }
+
+
+def _preflight(plan: dict[str, Any]) -> None:
+ runtime = plan["runtime"]
+ for executable in ("docker", "nvidia-smi"):
+ if shutil.which(executable) is None:
+ raise ValueError(f"required host command is missing: {executable}")
+ docker = _run(["docker", "info"], capture=True)
+ if docker.returncode != 0:
+ raise ValueError("Docker daemon is unavailable to this user")
+ gpu = _run(
+ [
+ "nvidia-smi",
+ f"--id={runtime['gpu_uuid']}",
+ "--query-gpu=uuid,name,memory.total,memory.free,driver_version",
+ "--format=csv,noheader,nounits",
+ ],
+ capture=True,
+ )
+ if gpu.returncode != 0:
+ raise ValueError("the selected GPU UUID is unavailable")
+ container_gpu = _run(
+ [
+ "docker",
+ "run",
+ "--rm",
+ "--gpus",
+ f"device={runtime['gpu_uuid']}",
+ "--network",
+ "none",
+ "--read-only",
+ "--cap-drop",
+ "ALL",
+ "--security-opt",
+ "no-new-privileges",
+ runtime["image_ref"],
+ "python",
+ "-c",
+ "import torch; assert torch.cuda.is_available(); print(torch.cuda.get_device_name())",
+ ],
+ capture=True,
+ )
+ if container_gpu.returncode != 0:
+ raise ValueError("NVIDIA Container Toolkit did not expose the selected GPU to the image")
+ for key in ("cache_dir", "work_root"):
+ path = Path(runtime[key])
+ path.mkdir(parents=True, exist_ok=True)
+ free = shutil.disk_usage(path).free
+ if free < MIN_FREE_BYTES:
+ raise ValueError(f"{path} has less than the recommended 40 GiB free")
+ print(f"GPU: {gpu.stdout.strip()}", file=sys.stderr)
+ print(f"Container CUDA: {container_gpu.stdout.strip()}", file=sys.stderr)
+ print(f"Host CPUs: {os.cpu_count() or 'unknown'}", file=sys.stderr)
+ print("Preflight passed; training will run with network disabled.", file=sys.stderr)
+
+
+def _write_request(plan: dict[str, Any]) -> Path:
+ work_root = Path(plan["runtime"]["work_root"])
+ encoded = (_canonical(plan["request"]) + "\n").encode("utf-8")
+ path = work_root / "requests" / f"request-{_sha256(encoded)}.json"
+ path.parent.mkdir(parents=True, exist_ok=True)
+ path.write_bytes(encoded)
+ return path
+
+
+def _setup(plan: dict[str, Any]) -> None:
+ runtime = plan["runtime"]
+ config = dict(plan["request"]["pipeline_config"])
+ config["data_dir"] = "/data"
+ config["output_dir"] = "/tmp/setup-output"
+ setup_path = Path(runtime["work_root"]) / "requests" / "setup-config.json"
+ setup_path.write_text(_canonical(config) + "\n", encoding="utf-8")
+ command = build_setup_command(
+ image_ref=runtime["image_ref"],
+ gpu_uuid=runtime["gpu_uuid"],
+ cache_dir=Path(runtime["cache_dir"]),
+ config_path=setup_path,
+ )
+ completed = _run(command)
+ if completed.returncode != 0:
+ raise ValueError("LiveKit asset setup failed")
+
+
+def _train(plan: dict[str, Any], request_path: Path, args: argparse.Namespace) -> int:
+ runtime = plan["runtime"]
+ command = [
+ sys.executable,
+ str(Path(__file__).with_name("run-wakeword-training")),
+ "--request",
+ str(request_path),
+ "--work-root",
+ runtime["work_root"],
+ "--enable",
+ "--maintenance-window-active",
+ "--image-ref",
+ runtime["image_ref"],
+ "--gpu-uuid",
+ runtime["gpu_uuid"],
+ "--approved-inputs-dir",
+ runtime["cache_dir"],
+ "--timeout-s",
+ str(args.timeout_s),
+ "--stream-output",
+ ]
+ if args.allow_active_gpu_processes:
+ command.append("--allow-active-gpu-processes")
+ if args.retry_of:
+ command.extend(("--retry-of", args.retry_of))
+ return _run(command).returncode
+
+
+def _find_run(work_root: Path, run_id: str) -> tuple[Path, dict[str, Any]]:
+ if len(run_id) != 32 or any(character not in "0123456789abcdef" for character in run_id):
+ raise ValueError("run ID must be 32 lowercase hexadecimal characters")
+ matches: list[tuple[Path, dict[str, Any]]] = []
+ for run_dir in (work_root / "runs").glob(f"*-{run_id}"):
+ state_path = run_dir / "state.json"
+ if not state_path.is_file():
+ continue
+ state = json.loads(state_path.read_text(encoding="utf-8"))
+ if isinstance(state, dict) and state.get("run_id") == run_id:
+ matches.append((run_dir, state))
+ if len(matches) != 1:
+ raise ValueError("run ID was not found under the selected work root")
+ return matches[0]
+
+
+def run_local_operation(args: argparse.Namespace) -> int | None:
+ operation = next(
+ (
+ (name, run_id)
+ for name, run_id in (
+ ("status", args.status),
+ ("logs", args.logs),
+ ("cancel", args.cancel),
+ )
+ if run_id is not None
+ ),
+ None,
+ )
+ if operation is None:
+ return None
+ name, run_id = operation
+ run_dir, state = _find_run(args.work_root.resolve(), run_id)
+ if name == "status":
+ result_path = run_dir / "training-result.json"
+ result = (
+ json.loads(result_path.read_text(encoding="utf-8"))
+ if result_path.is_file()
+ else None
+ )
+ print(json.dumps({"run_dir": str(run_dir), "state": state, "result": result}, indent=2))
+ return 0
+ if name == "logs":
+ for label in ("stdout.log", "stderr.log"):
+ print(f"== {label} ==")
+ path = run_dir / label
+ if path.is_file():
+ print(path.read_text(encoding="utf-8", errors="replace"), end="")
+ return 0
+ if state.get("status") in {
+ "completed",
+ "pending_publication",
+ "failed",
+ "canceled",
+ "timed_out",
+ "abandoned",
+ }:
+ raise ValueError("terminal run cannot be canceled")
+ (run_dir / "cancel-requested").write_text("requested\n", encoding="utf-8")
+ print(f"Cancellation requested for {run_id}; the runner will stop its own container.")
+ return 0
+
+
+def _parser() -> argparse.ArgumentParser:
+ parser = argparse.ArgumentParser(description="Train a LiveKit Wakeword model in pinned Docker")
+ parser.add_argument("--non-interactive", action="store_true")
+ parser.add_argument("--plan", action="store_true", help="print resolved JSON without running")
+ operation = parser.add_mutually_exclusive_group()
+ operation.add_argument("--status", metavar="RUN_ID", help="show one local attempt")
+ operation.add_argument("--logs", metavar="RUN_ID", help="show one local attempt's logs")
+ operation.add_argument("--cancel", metavar="RUN_ID", help="request safe cancellation")
+ parser.add_argument("--phrase", action="append", help="spoken phrase; repeat for alternatives")
+ parser.add_argument("--near-miss", action="append", help="phrase that must not activate")
+ parser.add_argument("--model-name")
+ parser.add_argument("--family-slug")
+ parser.add_argument("--version", type=int, default=1)
+ parser.add_argument("--pipeline-config", type=Path, help="JSON deep overrides")
+ parser.add_argument("--image-ref", default=os.getenv("JR_WAKEWORD_IMAGE", DEFAULT_IMAGE))
+ parser.add_argument("--gpu-uuid")
+ parser.add_argument("--cache-dir", type=Path, default=DEFAULT_CACHE)
+ parser.add_argument("--work-root", type=Path, default=DEFAULT_WORK_ROOT)
+ parser.add_argument("--skip-setup", action="store_true")
+ parser.add_argument(
+ "--setup-only",
+ action="store_true",
+ help="populate the pinned input cache, print its source-lock digest, and exit",
+ )
+ parser.add_argument(
+ "--reuse-from",
+ help="terminal local run ID whose sealed generated corpus seeds a new attempt",
+ )
+ parser.add_argument(
+ "--retry-of", help="matching terminal run ID to retry as a new immutable attempt"
+ )
+ parser.add_argument("--allow-active-gpu-processes", action="store_true")
+ parser.add_argument("--timeout-s", type=float, default=6 * 60 * 60)
+ return parser
+
+
+def main(argv: list[str] | None = None) -> int:
+ args = _parser().parse_args(argv)
+ try:
+ if getattr(args, "setup_only", False) and args.skip_setup:
+ raise ValueError("--setup-only and --skip-setup cannot be combined")
+ operation_result = run_local_operation(args)
+ if operation_result is not None:
+ return operation_result
+ if not args.non_interactive:
+ _interactive_values(args)
+ plan = resolve_plan(args)
+ if args.plan:
+ print(json.dumps(plan, indent=2, sort_keys=True))
+ return 0
+ print(json.dumps(plan, indent=2, sort_keys=True))
+ if not args.non_interactive and _prompt("Continue with this configuration", "yes") != "yes":
+ return 0
+ _preflight(plan)
+ if not args.skip_setup:
+ _setup(plan)
+ refreshed = resolve_plan(args)
+ if refreshed["request"]["source_lock_sha256"] != plan["request"][
+ "source_lock_sha256"
+ ]:
+ plan = refreshed
+ print("Final content-locked request after setup:", file=sys.stderr)
+ print(json.dumps(plan, indent=2, sort_keys=True))
+ if getattr(args, "setup_only", False):
+ print(
+ "WAKEWORD_TRAINING_SOURCE_LOCK_SHA256="
+ + plan["request"]["source_lock_sha256"]
+ )
+ return 0
+ request_path = _write_request(plan)
+ return _train(plan, request_path, args)
+ except (OSError, ValueError, json.JSONDecodeError) as exc:
+ print(f"error: {exc}", file=sys.stderr)
+ return 2
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/scripts/wakeword_training.py b/scripts/wakeword_training.py
new file mode 100644
index 0000000..abd9300
--- /dev/null
+++ b/scripts/wakeword_training.py
@@ -0,0 +1,2135 @@
+"""Host-only, sealed Wakeword Training attempt runner.
+
+This module deliberately has no dependency on FastAPI, the gateway queue, Docker,
+LiveKit, a GPU, or a dataset. It is the durable-on-disk operator boundary around
+the pinned LiveKit CLI. A deployment supplies a process executor; CI uses
+``FakeTrainingExecutor`` to exercise the same lifecycle and handoff contract.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import contextlib
+import fcntl
+import hashlib
+import json
+import os
+import re
+import shutil
+import subprocess
+import sys
+import tarfile
+import tempfile
+import time
+import uuid
+from collections.abc import Mapping
+from dataclasses import asdict, dataclass, field
+from datetime import UTC, datetime
+from enum import StrEnum
+from pathlib import Path, PurePosixPath
+from typing import Any, Protocol
+
+_ARTIFACT_ID = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_-]*$")
+_FAMILY_SLUG = re.compile(r"^[a-z0-9]+(?:-[a-z0-9]+)*$")
+_PACKAGE_ROOT = Path(__file__).resolve().parents[1]
+_PIPELINE_FIELDS = frozenset(
+ {
+ "augmentation",
+ "batch_n_per_class",
+ "custom_negative_phrases",
+ "family_slug",
+ "label_smoothing",
+ "learning_rate",
+ "length_scales",
+ "max_negative_weight",
+ "max_speakers",
+ "model",
+ "model_name",
+ "n_background_samples",
+ "n_background_samples_val",
+ "n_samples",
+ "n_samples_val",
+ "noise_scale_ws",
+ "noise_scales",
+ "slerp_weights",
+ "steps",
+ "target_fp_per_hour",
+ "target_phrases",
+ "threshold",
+ "tts_backend",
+ "tts_batch_size",
+ "version",
+ "weight_decay",
+ }
+)
+_NESTED_PIPELINE_FIELDS = {
+ "augmentation": frozenset(
+ {"background_paths", "batch_size", "clip_duration", "rir_paths", "rounds"}
+ ),
+ "model": frozenset({"model_size", "model_type"}),
+}
+_BATCH_CLASS_FIELDS = frozenset(
+ {"positive", "adversarial_negative", "ACAV100M_sample", "background_noise"}
+)
+
+
+class RunKind(StrEnum):
+ """Whether an attempt may ever be considered for commercial publication."""
+
+ QUARANTINED_SMOKE = "quarantined_smoke"
+ LOCAL_EXPERIMENT = "local_experiment"
+ COMMERCIAL = "commercial"
+
+
+class RunStatus(StrEnum):
+ CREATED = "created"
+ PREFLIGHT = "preflight"
+ ADMITTED = "admitted"
+ RUNNING = "running"
+ SUCCEEDED = "succeeded"
+ COMPLETED = "completed"
+ PENDING_PUBLICATION = "pending_publication"
+ FAILED = "failed"
+ CANCELED = "canceled"
+ TIMED_OUT = "timed_out"
+ ABANDONED = "abandoned"
+
+
+TERMINAL_STATUSES = frozenset(
+ {
+ RunStatus.PENDING_PUBLICATION,
+ RunStatus.COMPLETED,
+ RunStatus.FAILED,
+ RunStatus.CANCELED,
+ RunStatus.TIMED_OUT,
+ RunStatus.ABANDONED,
+ }
+)
+
+_TRANSITIONS: dict[RunStatus, frozenset[RunStatus]] = {
+ RunStatus.CREATED: frozenset({RunStatus.PREFLIGHT, RunStatus.FAILED, RunStatus.ABANDONED}),
+ RunStatus.PREFLIGHT: frozenset({RunStatus.ADMITTED, RunStatus.FAILED, RunStatus.ABANDONED}),
+ RunStatus.ADMITTED: frozenset(
+ {
+ RunStatus.RUNNING,
+ RunStatus.FAILED,
+ RunStatus.CANCELED,
+ RunStatus.TIMED_OUT,
+ RunStatus.ABANDONED,
+ }
+ ),
+ RunStatus.RUNNING: frozenset(
+ {
+ RunStatus.SUCCEEDED,
+ RunStatus.FAILED,
+ RunStatus.CANCELED,
+ RunStatus.TIMED_OUT,
+ RunStatus.ABANDONED,
+ }
+ ),
+ RunStatus.SUCCEEDED: frozenset(
+ {RunStatus.COMPLETED, RunStatus.PENDING_PUBLICATION, RunStatus.FAILED}
+ ),
+ RunStatus.COMPLETED: frozenset(),
+ RunStatus.PENDING_PUBLICATION: frozenset(),
+ RunStatus.FAILED: frozenset(),
+ RunStatus.CANCELED: frozenset(),
+ RunStatus.TIMED_OUT: frozenset(),
+ RunStatus.ABANDONED: frozenset(),
+}
+
+
+class AdmissionRefusedError(RuntimeError):
+ """The operator's exclusive-maintenance admission rule rejected an attempt."""
+
+
+class AdmissionDeferredError(AdmissionRefusedError):
+ """A healthy attempt should remain queued until GPU admission is available."""
+
+
+class InvalidTransitionError(RuntimeError):
+ """An attempted lifecycle transition would rewrite immutable evidence."""
+
+
+class StageOutputHashMismatchError(ValueError):
+ """An executor-declared output digest did not match the sealed bytes."""
+
+
+def _utc_now() -> str:
+ return datetime.now(UTC).isoformat().replace("+00:00", "Z")
+
+
+def _canonical_json(value: object) -> str:
+ return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":"))
+
+
+def _sha256_bytes(value: bytes) -> str:
+ return hashlib.sha256(value).hexdigest()
+
+
+def _normalize_phrase(value: str, field_name: str) -> str:
+ normalized = " ".join(value.split())
+ if not normalized:
+ raise ValueError(f"{field_name} must not be empty")
+ if not any(character.isascii() and character.isalpha() for character in normalized):
+ raise ValueError(f"{field_name} must contain English letters")
+ return normalized
+
+
+def _validate_sha256(value: str, field_name: str) -> str:
+ candidate = value.removeprefix("sha256:").lower()
+ if len(candidate) != 64 or any(character not in "0123456789abcdef" for character in candidate):
+ raise ValueError(f"{field_name} must be a SHA-256 digest")
+ return candidate
+
+
+def _validate_image_digest(value: str) -> str:
+ if not value.startswith("sha256:"):
+ raise ValueError("runner_image_digest must use the sha256: form")
+ _validate_sha256(value, "runner_image_digest")
+ return value.lower()
+
+
+def _validate_artifact_id(value: object, field_name: str) -> str:
+ if not isinstance(value, str) or not _ARTIFACT_ID.fullmatch(value):
+ raise ValueError(
+ f"{field_name} must start with a letter or number and contain only "
+ "letters, numbers, underscores, or hyphens"
+ )
+ return value
+
+
+def _unexpected_fields(value: Mapping[str, object], allowed: frozenset[str], prefix: str) -> None:
+ unknown = sorted(set(value) - allowed)
+ if unknown:
+ raise ValueError(f"unknown pipeline configuration field: {prefix}{unknown[0]}")
+
+
+def _validate_pipeline_config(value: dict[str, object]) -> None:
+ """Reject fields the pinned LiveKit 0.2.1 contract would silently ignore."""
+
+ _unexpected_fields(value, _PIPELINE_FIELDS, "")
+ for required in ("model_name", "target_phrases"):
+ if required not in value:
+ raise ValueError(f"pipeline_config.{required} is required")
+ numeric_lists = ("length_scales", "noise_scale_ws", "noise_scales", "slerp_weights")
+ positive_integers = (
+ "n_background_samples",
+ "n_background_samples_val",
+ "n_samples",
+ "n_samples_val",
+ "steps",
+ "tts_batch_size",
+ "version",
+ )
+ numeric_fields = (
+ "label_smoothing",
+ "learning_rate",
+ "max_negative_weight",
+ "target_fp_per_hour",
+ "weight_decay",
+ )
+ target_phrases = value.get("target_phrases")
+ if (
+ not isinstance(target_phrases, list)
+ or not target_phrases
+ or any(not isinstance(entry, str) or not entry.strip() for entry in target_phrases)
+ ):
+ raise ValueError("pipeline_config.target_phrases must be a non-empty string array")
+ negative_phrases = value.get("custom_negative_phrases")
+ if negative_phrases is not None and (
+ not isinstance(negative_phrases, list)
+ or any(not isinstance(entry, str) or not entry.strip() for entry in negative_phrases)
+ ):
+ raise ValueError("pipeline_config.custom_negative_phrases must be a string array")
+ for name in numeric_lists:
+ item = value.get(name)
+ if item is not None and (
+ not isinstance(item, list)
+ or not item
+ or any(
+ not isinstance(entry, (int, float)) or isinstance(entry, bool) for entry in item
+ )
+ ):
+ raise ValueError(f"pipeline_config.{name} must be a non-empty number array")
+ for name in positive_integers:
+ item = value.get(name)
+ if item is not None and (
+ not isinstance(item, int) or isinstance(item, bool) or item < 1
+ ):
+ raise ValueError(f"pipeline_config.{name} must be a positive integer")
+ for name in numeric_fields:
+ item = value.get(name)
+ if item is not None and (
+ not isinstance(item, (int, float)) or isinstance(item, bool) or item < 0
+ ):
+ raise ValueError(f"pipeline_config.{name} must be a non-negative number")
+ for name, allowed in _NESTED_PIPELINE_FIELDS.items():
+ nested = value.get(name)
+ if nested is None:
+ continue
+ if not isinstance(nested, dict):
+ raise ValueError(f"pipeline_config.{name} must be an object")
+ _unexpected_fields(nested, allowed, f"{name}.")
+ augmentation = value.get("augmentation")
+ if isinstance(augmentation, dict):
+ for name in ("batch_size", "rounds"):
+ item = augmentation.get(name)
+ if item is not None and (
+ not isinstance(item, int) or isinstance(item, bool) or item < 1
+ ):
+ raise ValueError(f"pipeline_config.augmentation.{name} must be positive")
+ clip_duration = augmentation.get("clip_duration")
+ if clip_duration is not None and (
+ not isinstance(clip_duration, (int, float))
+ or isinstance(clip_duration, bool)
+ or clip_duration <= 0
+ ):
+ raise ValueError("pipeline_config.augmentation.clip_duration must be positive")
+ for name in ("background_paths", "rir_paths"):
+ item = augmentation.get(name)
+ if item is not None and (
+ not isinstance(item, list)
+ or any(
+ not isinstance(path, str)
+ or not path.startswith("/inputs/")
+ or ".." in PurePosixPath(path).parts
+ for path in item
+ )
+ ):
+ raise ValueError(
+ f"pipeline_config.augmentation.{name} must contain /inputs paths"
+ )
+ model = value.get("model")
+ if isinstance(model, dict):
+ if "model_type" in model and model["model_type"] not in {
+ "dnn",
+ "rnn",
+ "conv_attention",
+ }:
+ raise ValueError("pipeline_config.model.model_type is invalid")
+ if "model_size" in model and model["model_size"] not in {
+ "tiny",
+ "small",
+ "medium",
+ "large",
+ }:
+ raise ValueError("pipeline_config.model.model_size is invalid")
+ threshold = value.get("threshold")
+ if threshold is not None and not (
+ threshold == "auto"
+ or (
+ isinstance(threshold, (int, float))
+ and not isinstance(threshold, bool)
+ and 0 <= threshold <= 1
+ )
+ ):
+ raise ValueError("pipeline_config.threshold must be between 0 and 1 or 'auto'")
+ family_slug = value.get("family_slug")
+ if family_slug is not None and (
+ not isinstance(family_slug, str) or not _FAMILY_SLUG.fullmatch(family_slug)
+ ):
+ raise ValueError("pipeline_config.family_slug must be a lowercase hyphenated slug")
+ if value.get("tts_backend", "piper_vits") != "piper_vits":
+ raise ValueError("pipeline_config.tts_backend must be piper_vits in runner version 1")
+ max_speakers = value.get("max_speakers")
+ if max_speakers is not None and (
+ not isinstance(max_speakers, int) or isinstance(max_speakers, bool) or max_speakers < 1
+ ):
+ raise ValueError("pipeline_config.max_speakers must be null or a positive integer")
+ batch = value.get("batch_n_per_class")
+ if batch is not None and (
+ not isinstance(batch, dict)
+ or any(
+ not isinstance(key, str)
+ or not isinstance(count, int)
+ or isinstance(count, bool)
+ or count < 1
+ for key, count in batch.items()
+ )
+ ):
+ raise ValueError("pipeline_config.batch_n_per_class must map names to positive integers")
+ if isinstance(batch, dict):
+ _unexpected_fields(batch, _BATCH_CLASS_FIELDS, "batch_n_per_class.")
+
+
+def _json_compatible(value: object) -> object:
+ """Return a JSON-only copy and reject host-path-like configuration values."""
+
+ try:
+ canonical = json.loads(_canonical_json(value))
+ except (TypeError, ValueError) as exc:
+ raise ValueError("pipeline_config must be JSON-compatible") from exc
+ if not isinstance(canonical, dict):
+ raise ValueError("pipeline_config must be a JSON object")
+ if "data_dir" in canonical or "output_dir" in canonical:
+ raise ValueError("pipeline_config cannot choose data_dir or output_dir")
+ if "model_name" in canonical:
+ _validate_artifact_id(canonical["model_name"], "pipeline_config.model_name")
+ _validate_pipeline_config(canonical)
+ return canonical
+
+
+def terminal_exit_code(status: RunStatus) -> int:
+ """Map a durable terminal outcome to a truthful shell/API-worker exit code."""
+
+ return 0 if status in {RunStatus.COMPLETED, RunStatus.PENDING_PUBLICATION} else 1
+
+
+@dataclass(frozen=True)
+class WakewordTrainingRequest:
+ """The complete semantic input to one offline training attempt.
+
+ ``source_lock_path`` is deliberately excluded from the hash and persisted
+ request. It is an operator-local location, while the locked bytes and their
+ digest are the reproducible input.
+ """
+
+ primary_phrase: str
+ variants: tuple[str, ...]
+ near_misses: tuple[str, ...]
+ evaluation_profile: str
+ source_lock_path: Path
+ source_lock_sha256: str
+ intended_release_id: str
+ runner_image_digest: str
+ pipeline_config: Mapping[str, Any]
+ run_kind: RunKind = RunKind.COMMERCIAL
+ derived_from_run_id: str | None = None
+
+ def canonical_payload(self) -> dict[str, object]:
+ primary_phrase = _normalize_phrase(self.primary_phrase, "primary_phrase")
+ variants = tuple(_normalize_phrase(variant, "variant") for variant in self.variants)
+ near_misses = tuple(_normalize_phrase(phrase, "near_miss") for phrase in self.near_misses)
+ if not self.evaluation_profile.strip():
+ raise ValueError("evaluation_profile must not be empty")
+ intended_release_id = _validate_artifact_id(
+ self.intended_release_id.strip(), "intended_release_id"
+ )
+ source_lock_sha256 = _validate_sha256(self.source_lock_sha256, "source_lock_sha256")
+ if self.derived_from_run_id is not None and (
+ len(self.derived_from_run_id) != 32
+ or any(character not in "0123456789abcdef" for character in self.derived_from_run_id)
+ ):
+ raise ValueError("derived_from_run_id must be an opaque 32-character run ID")
+ pipeline_config = _json_compatible(self.pipeline_config)
+ if self.run_kind is RunKind.LOCAL_EXPERIMENT:
+ expected_phrases = [primary_phrase, *variants]
+ expected_near_misses = list(near_misses)
+ if pipeline_config.get("target_phrases") != expected_phrases:
+ raise ValueError("pipeline_config.target_phrases must match request phrases")
+ if pipeline_config.get("custom_negative_phrases") != expected_near_misses:
+ raise ValueError(
+ "pipeline_config.custom_negative_phrases must match request near_misses"
+ )
+ return {
+ "schema_version": 1,
+ "primary_phrase": primary_phrase,
+ # Ordered lists are intentionally not sorted: pronunciation and
+ # near-miss order are a declared part of a repeatable experiment.
+ "variants": list(variants),
+ "near_misses": list(near_misses),
+ "evaluation_profile": self.evaluation_profile.strip(),
+ "source_lock_sha256": source_lock_sha256,
+ "intended_release_id": intended_release_id,
+ "runner_image_digest": _validate_image_digest(self.runner_image_digest),
+ "pipeline_config": pipeline_config,
+ "run_kind": RunKind(self.run_kind).value,
+ "derived_from_run_id": self.derived_from_run_id,
+ }
+
+ def request_sha256(self) -> str:
+ return _sha256_bytes(_canonical_json(self.canonical_payload()).encode("utf-8"))
+
+ def verified_source_lock(self) -> bytes:
+ path = self.source_lock_path.resolve(strict=True)
+ if not path.is_file():
+ raise ValueError("source_lock_path must identify a regular file")
+ value = path.read_bytes()
+ if _sha256_bytes(value) != _validate_sha256(self.source_lock_sha256, "source_lock_sha256"):
+ raise ValueError("source lock digest does not match source_lock_path")
+ # It is evidence, not just an arbitrary blob. Preserve unknown fields
+ # for provenance extensions, but require a JSON object at this seam.
+ try:
+ parsed = json.loads(value)
+ except json.JSONDecodeError as exc:
+ raise ValueError("source lock must be valid JSON") from exc
+ if not isinstance(parsed, dict):
+ raise ValueError("source lock must be a JSON object")
+ return value
+
+ @classmethod
+ def from_file(cls, path: Path) -> WakewordTrainingRequest:
+ """Load the versioned request file used by local and future API entrances."""
+
+ value = json.loads(path.read_text(encoding="utf-8"))
+ if not isinstance(value, dict):
+ raise ValueError("training request must be a JSON object")
+ schema_version = value.pop("schema_version", 1)
+ if schema_version != 1:
+ raise ValueError("unsupported training request schema_version")
+ value["source_lock_path"] = Path(value["source_lock_path"])
+ value["variants"] = tuple(value.get("variants", ()))
+ value["near_misses"] = tuple(value.get("near_misses", ()))
+ value["run_kind"] = RunKind(value.get("run_kind", RunKind.COMMERCIAL.value))
+ return cls(**value)
+
+
+@dataclass
+class RunState:
+ run_id: str
+ request_sha256: str
+ status: RunStatus
+ stage: str
+ attempt: int
+ created_at: str
+ updated_at: str
+ heartbeat_at: str
+ retry_of: str | None = None
+ terminal_reason: str | None = None
+ container_id: str | None = None
+ exit_code: int | None = None
+ lock_path: str | None = None
+ wrapper_pid: int = field(default_factory=os.getpid)
+
+ @classmethod
+ def from_dict(cls, value: Mapping[str, Any]) -> RunState:
+ return cls(
+ run_id=str(value["run_id"]),
+ request_sha256=str(value["request_sha256"]),
+ status=RunStatus(value["status"]),
+ stage=str(value["stage"]),
+ attempt=int(value["attempt"]),
+ created_at=str(value["created_at"]),
+ updated_at=str(value["updated_at"]),
+ heartbeat_at=str(value["heartbeat_at"]),
+ retry_of=value.get("retry_of"),
+ terminal_reason=value.get("terminal_reason"),
+ container_id=value.get("container_id"),
+ exit_code=value.get("exit_code"),
+ lock_path=value.get("lock_path"),
+ wrapper_pid=int(value.get("wrapper_pid", 0)),
+ )
+
+ @property
+ def terminal(self) -> bool:
+ return self.status in TERMINAL_STATUSES
+
+
+@dataclass(frozen=True)
+class RunResult:
+ run_dir: Path
+ state: RunState
+ reused: bool = False
+
+
+class MaintenanceWindow(Protocol):
+ def is_active(self) -> bool: ...
+
+
+@dataclass(frozen=True)
+class StaticMaintenanceWindow:
+ active: bool
+
+ def is_active(self) -> bool:
+ return self.active
+
+
+class GpuProcessInspector(Protocol):
+ def has_unapproved_processes(self) -> bool: ...
+
+
+@dataclass(frozen=True)
+class StaticGpuProcessInspector:
+ active_unapproved_processes: bool = False
+
+ def has_unapproved_processes(self) -> bool:
+ return self.active_unapproved_processes
+
+
+class NvidiaSmiProcessInspector:
+ """Fail-closed host preflight; it observes processes and never terminates them."""
+
+ def __init__(self, gpu_uuid: str) -> None:
+ self.gpu_uuid = gpu_uuid
+
+ def has_unapproved_processes(self) -> bool:
+ command = (
+ "nvidia-smi",
+ f"--id={self.gpu_uuid}",
+ "--query-compute-apps=pid",
+ "--format=csv,noheader",
+ )
+ try:
+ completed = subprocess.run(command, capture_output=True, check=False, text=True)
+ except OSError:
+ return True
+ if completed.returncode != 0:
+ return True
+ return bool(completed.stdout.strip())
+
+
+class GpuEvidenceSampler(Protocol):
+ """Read one host-side, UUID-addressed GPU observation without mutating it."""
+
+ gpu_uuid: str
+
+ def sample(self) -> Mapping[str, Any]: ...
+
+
+class NvidiaSmiGpuEvidenceSampler:
+ """Fail-closed ``nvidia-smi`` sampler for a specifically configured GPU UUID."""
+
+ _FIELDS = (
+ "uuid",
+ "memory.used",
+ "memory.total",
+ "utilization.gpu",
+ "temperature.gpu",
+ "power.draw",
+ "driver_version",
+ )
+
+ def __init__(self, gpu_uuid: str) -> None:
+ if not gpu_uuid.startswith("GPU-"):
+ raise ValueError("gpu_uuid must be a stable NVIDIA UUID, never a device ordinal")
+ self.gpu_uuid = gpu_uuid
+
+ def sample(self) -> Mapping[str, Any]:
+ command = (
+ "nvidia-smi",
+ f"--id={self.gpu_uuid}",
+ f"--query-gpu={','.join(self._FIELDS)}",
+ "--format=csv,noheader,nounits",
+ )
+ try:
+ completed = subprocess.run(command, capture_output=True, check=False, text=True)
+ except OSError as exc:
+ raise AdmissionRefusedError(
+ "nvidia-smi is unavailable; GPU identity is unverified"
+ ) from exc
+ if completed.returncode != 0:
+ raise AdmissionRefusedError("configured GPU UUID could not be verified")
+ values = [item.strip() for item in completed.stdout.strip().split(",")]
+ if len(values) != len(self._FIELDS) or values[0] != self.gpu_uuid:
+ raise AdmissionRefusedError("nvidia-smi returned an unexpected GPU UUID")
+ try:
+ return {
+ "gpu_uuid": values[0],
+ "vram_used_mib": float(values[1]),
+ "vram_total_mib": float(values[2]),
+ "utilization_pct": float(values[3]),
+ "temperature_c": float(values[4]),
+ "power_w": float(values[5]),
+ "driver_version": values[6],
+ }
+ except ValueError as exc:
+ raise AdmissionRefusedError("nvidia-smi returned malformed GPU evidence") from exc
+
+
+@dataclass
+class StaticGpuEvidenceSampler:
+ """Deterministic CPU-only resource fixture; it never contacts a GPU."""
+
+ gpu_uuid: str
+ samples: tuple[Mapping[str, Any], ...]
+ _index: int = field(default=0, init=False)
+
+ def sample(self) -> Mapping[str, Any]:
+ if not self.samples:
+ raise AdmissionRefusedError("GPU evidence fixture has no samples")
+ value = dict(self.samples[min(self._index, len(self.samples) - 1)])
+ self._index += 1
+ value["gpu_uuid"] = self.gpu_uuid
+ return value
+
+
+class AdmissionLock(Protocol):
+ path: Path
+
+ def try_acquire(self) -> bool: ...
+
+ def release(self) -> None: ...
+
+ def held_by_anyone(self) -> bool: ...
+
+
+class FileAdmissionLock:
+ """A non-queueing host ``flock`` around the selected maintenance GPU."""
+
+ def __init__(self, path: Path) -> None:
+ self.path = path
+ self._file: Any | None = None
+
+ def try_acquire(self) -> bool:
+ self.path.parent.mkdir(parents=True, exist_ok=True)
+ self._file = self.path.open("a+", encoding="utf-8")
+ try:
+ fcntl.flock(self._file.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
+ except BlockingIOError:
+ self._file.close()
+ self._file = None
+ return False
+ return True
+
+ def release(self) -> None:
+ if self._file is not None:
+ fcntl.flock(self._file.fileno(), fcntl.LOCK_UN)
+ self._file.close()
+ self._file = None
+
+ def held_by_anyone(self) -> bool:
+ self.path.parent.mkdir(parents=True, exist_ok=True)
+ with self.path.open("a+", encoding="utf-8") as candidate:
+ try:
+ fcntl.flock(candidate.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
+ except BlockingIOError:
+ return True
+ fcntl.flock(candidate.fileno(), fcntl.LOCK_UN)
+ return False
+
+
+def gpu_admission_lock_path(gpu_uuid: str) -> Path:
+ """Return one host-global, path-safe lock for a physical GPU identity."""
+
+ identity = gpu_uuid.strip()
+ if not identity:
+ raise ValueError("gpu_uuid must not be empty")
+ token = hashlib.sha256(identity.encode("utf-8")).hexdigest()[:24]
+ return Path(tempfile.gettempdir()) / f"jrich-wakeword-training-gpu-{token}.lock"
+
+
+class ContainerInspector(Protocol):
+ def is_running(self, container_id: str | None) -> bool | None:
+ """False is an affirmative stopped check; None is deliberately unknown."""
+
+
+class UnknownContainerInspector:
+ def is_running(self, container_id: str | None) -> bool | None:
+ return None
+
+
+class DockerContainerInspector:
+ """Inspect only an explicitly named runner container.
+
+ ``False`` is returned only when Docker proves that the container is stopped
+ or absent. Any daemon, permission, or output problem remains ``None`` so a
+ recovery loop cannot turn uncertainty into a second GPU execution.
+ """
+
+ def is_running(self, container_id: str | None) -> bool | None:
+ if not container_id or not re.fullmatch(r"wakeword-train-[a-f0-9]{32}", container_id):
+ return None
+ try:
+ result = subprocess.run(
+ ("docker", "inspect", "--format", "{{.State.Running}}", container_id),
+ check=False,
+ capture_output=True,
+ text=True,
+ timeout=10,
+ )
+ except (OSError, subprocess.TimeoutExpired):
+ return None
+ if result.returncode == 0:
+ value = result.stdout.strip().lower()
+ return True if value == "true" else False if value == "false" else None
+ if "no such object" in result.stderr.lower():
+ return False
+ return None
+
+
+@dataclass(frozen=True)
+class ExecutionContext:
+ run_id: str
+ run_dir: Path
+ resolved_config_path: Path
+ output_dir: Path
+ runner_image_digest: str
+ run_kind: RunKind
+ container_name: str
+
+
+@dataclass(frozen=True)
+class ExecutionResult:
+ exit_code: int = 0
+ container_id: str | None = None
+ stdout: str = ""
+ stderr: str = ""
+ resource_summary: Mapping[str, Any] = field(default_factory=dict)
+ output_hashes: Mapping[str, str] = field(default_factory=dict)
+ stage_evidence: tuple[Mapping[str, Any], ...] = ()
+
+
+class TrainingExecutor(Protocol):
+ async def execute(self, context: ExecutionContext) -> ExecutionResult: ...
+
+ async def cancel(self, context: ExecutionContext, *, force: bool) -> None: ...
+
+
+class FakeTrainingExecutor:
+ """Deterministic complete-contract executor used by CI and local dry runs."""
+
+ def __init__(self, *, wait_for_release: bool = False, exit_code: int = 0) -> None:
+ self.wait_for_release = wait_for_release
+ self.exit_code = exit_code
+ self.started = asyncio.Event()
+ self.release = asyncio.Event()
+ self.calls = 0
+ self.cancel_calls: list[bool] = []
+
+ async def execute(self, context: ExecutionContext) -> ExecutionResult:
+ self.calls += 1
+ self.started.set()
+ if self.wait_for_release:
+ await self.release.wait()
+ if self.exit_code == 0:
+ context.output_dir.mkdir(parents=True, exist_ok=True)
+ # These fixture bytes are a runner-contract stand-in only. ONNX
+ # graph/load verification is a pinned-runner/catalog concern.
+ (context.output_dir / "classifier.onnx").write_bytes(b"fake-onnx-classifier-v1")
+ (context.output_dir / "manifest.json").write_text(
+ _canonical_json({"schema_version": 1, "runner": "fake"}), encoding="utf-8"
+ )
+ (context.output_dir / "evaluation.json").write_text(
+ _canonical_json({"schema_version": 1, "result": "quarantined"}), encoding="utf-8"
+ )
+ return ExecutionResult(
+ exit_code=self.exit_code,
+ container_id="fake-container",
+ stdout="fake executor completed\n",
+ resource_summary={"executor": "fake", "output_files": 3},
+ )
+
+ async def cancel(self, context: ExecutionContext, *, force: bool) -> None:
+ self.cancel_calls.append(force)
+ self.release.set()
+
+
+class DockerTrainingExecutor:
+ """Small process adapter for the operator-owned, digest-pinned GPU image.
+
+ The gateway never imports this class. Docker is resolved only when an
+ operator invokes it, not while importing/running the fake contract suite.
+ """
+
+ def __init__(
+ self,
+ *,
+ image_ref: str,
+ gpu_uuid: str,
+ approved_inputs_dir: Path,
+ stream_output: bool = False,
+ ) -> None:
+ if "@sha256:" not in image_ref and not image_ref.startswith("sha256:"):
+ raise ValueError("image_ref must be a digest-pinned reference or immutable image ID")
+ if not gpu_uuid.strip():
+ raise ValueError("gpu_uuid must not be empty")
+ if not approved_inputs_dir.resolve().is_dir():
+ raise ValueError("approved_inputs_dir must be an existing directory")
+ self.image_ref = image_ref
+ self.gpu_uuid = gpu_uuid
+ self.approved_inputs_dir = approved_inputs_dir.resolve()
+ self.stream_output = stream_output
+ self._processes: dict[str, asyncio.subprocess.Process] = {}
+
+ async def execute(self, context: ExecutionContext) -> ExecutionResult:
+ digest = self.image_ref.rsplit("@", maxsplit=1)[-1]
+ if digest != context.runner_image_digest:
+ raise ValueError("configured image_ref does not match the sealed runner image digest")
+ # The image wrapper controls the commercial stage sequence and rejects
+ # an upstream setup/download path. The executor deliberately exposes no
+ # caller override that could bypass the sealed image contract.
+ from scripts.wakeword_training_image import build_stage_command
+
+ stage_command = build_stage_command(context.run_kind.value)
+ container_name = context.container_name
+ command = (
+ "docker",
+ "run",
+ "--rm",
+ "--init",
+ "--name",
+ container_name,
+ "--gpus",
+ f"device={self.gpu_uuid}",
+ "--network",
+ "none",
+ "--read-only",
+ "--cap-drop",
+ "ALL",
+ "--security-opt",
+ "no-new-privileges",
+ "--env",
+ "PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True",
+ "--mount",
+ f"type=bind,src={self.approved_inputs_dir},dst=/inputs,readonly",
+ "--mount",
+ f"type=bind,src={context.run_dir.resolve()},dst=/run",
+ "--tmpfs",
+ "/tmp:rw,noexec,nosuid,size=4g",
+ self.image_ref,
+ "/usr/bin/time",
+ "-v",
+ "-o",
+ "/run/pipeline-time-v.txt",
+ *stage_command,
+ )
+ process = await asyncio.create_subprocess_exec(
+ *command,
+ stdout=asyncio.subprocess.PIPE,
+ stderr=asyncio.subprocess.PIPE,
+ )
+ self._processes[context.run_id] = process
+ try:
+ if self.stream_output:
+ stdout, stderr = await asyncio.gather(
+ self._read_stream(process.stdout), self._read_stream(process.stderr)
+ )
+ await process.wait()
+ else:
+ stdout, stderr = await process.communicate()
+ except BaseException:
+ if process.returncode is None:
+ await self.cancel(context, force=False)
+ try:
+ await asyncio.wait_for(process.wait(), timeout=15)
+ except TimeoutError:
+ await self.cancel(context, force=True)
+ await process.wait()
+ raise
+ finally:
+ self._processes.pop(context.run_id, None)
+ resource_summary = {"executor": "docker", "container_name": container_name}
+ time_report = context.run_dir / "pipeline-time-v.txt"
+ if time_report.is_file():
+ resource_summary.update(self._parse_time_report(time_report))
+ return ExecutionResult(
+ exit_code=process.returncode or 0,
+ container_id=container_name,
+ stdout=stdout.decode("utf-8", errors="replace"),
+ stderr=stderr.decode("utf-8", errors="replace"),
+ resource_summary=resource_summary,
+ stage_evidence=self._load_image_stage_evidence(context.run_dir),
+ )
+
+ @staticmethod
+ async def _read_stream(stream: asyncio.StreamReader | None) -> bytes:
+ if stream is None:
+ return b""
+ chunks: list[bytes] = []
+ while chunk := await stream.read(64 * 1024):
+ chunks.append(chunk)
+ print(chunk.decode("utf-8", errors="replace"), end="", file=sys.stderr, flush=True)
+ return b"".join(chunks)
+
+ async def cancel(self, context: ExecutionContext, *, force: bool) -> None:
+ process = self._processes.get(context.run_id)
+ if process is None:
+ return
+ # We address only the wrapper-owned deterministic name; no unrelated
+ # GPU process is inspected, stopped, or killed here.
+ signal = "kill" if force else "stop"
+ command = ("docker", signal, context.container_name)
+ with contextlib.suppress(OSError):
+ cancel_process = await asyncio.create_subprocess_exec(
+ *command,
+ stdout=asyncio.subprocess.DEVNULL,
+ stderr=asyncio.subprocess.DEVNULL,
+ )
+ await cancel_process.wait()
+
+ @staticmethod
+ def _parse_time_report(path: Path) -> dict[str, Any]:
+ values: dict[str, Any] = {}
+ for line in path.read_text(encoding="utf-8", errors="replace").splitlines():
+ key, separator, value = line.partition(":")
+ if not separator:
+ continue
+ if key.strip() == "Maximum resident set size (kbytes)":
+ with contextlib.suppress(ValueError):
+ values["max_rss_kib"] = int(value.strip())
+ elif key.strip() == "Elapsed (wall clock) time (h:mm:ss or m:ss)":
+ values["elapsed_time_reported"] = value.strip()
+ return values
+
+ @staticmethod
+ def _load_image_stage_evidence(run_dir: Path) -> tuple[Mapping[str, Any], ...]:
+ path = run_dir / "image-stage-events.ndjson"
+ if not path.is_file():
+ return ()
+ try:
+ records = tuple(
+ json.loads(line) for line in path.read_text(encoding="utf-8").splitlines() if line
+ )
+ except json.JSONDecodeError:
+ return ()
+ return tuple(record for record in records if isinstance(record, dict))
+
+
+@dataclass(frozen=True)
+class RunnerSettings:
+ work_root: Path
+ enabled: bool = False
+ maintenance_window: MaintenanceWindow = field(
+ default_factory=lambda: StaticMaintenanceWindow(active=False)
+ )
+ process_inspector: GpuProcessInspector = field(default_factory=StaticGpuProcessInspector)
+ gpu_uuid: str | None = None
+ gpu_sampler: GpuEvidenceSampler | None = None
+ timeout_s: float = 6 * 60 * 60
+ cancel_grace_s: float = 30.0
+ heartbeat_interval_s: float = 5.0
+ redaction_patterns: tuple[str, ...] = ()
+ defer_when_gpu_busy: bool = False
+ admission_lock_path: Path | None = None
+
+
+class _ResourceRecorder:
+ """Persist one-second host samples while an admitted executor owns the GPU lock."""
+
+ def __init__(self, run_dir: Path, sampler: GpuEvidenceSampler | None) -> None:
+ self.run_dir = run_dir
+ self.path = run_dir / "resource-samples.ndjson"
+ self.sampler = sampler
+ self.started = time.monotonic()
+ self.started_at = _utc_now()
+ self.ended_at: str | None = None
+ self.initial_disk_bytes = WakewordTrainingRunner._disk_bytes(run_dir, default=0)
+ self.samples: list[dict[str, Any]] = []
+ self._stop = asyncio.Event()
+ self._task: asyncio.Task[None] | None = None
+
+ async def start(self) -> None:
+ self.path.touch(exist_ok=True)
+ if self.sampler is None:
+ return
+ self._task = asyncio.create_task(self._collect())
+ # An immediate observation makes short, successful smoke runs evidenced;
+ # subsequent observations are exactly one second apart.
+ await asyncio.sleep(0)
+ if self._task.done():
+ await self._task
+
+ async def stop(self) -> None:
+ self._stop.set()
+ try:
+ if self._task is not None:
+ await self._task
+ finally:
+ self.ended_at = _utc_now()
+
+ async def _collect(self) -> None:
+ while True:
+ raw = await asyncio.to_thread(self.sampler.sample) # type: ignore[union-attr]
+ if raw.get("gpu_uuid") != self.sampler.gpu_uuid: # type: ignore[union-attr]
+ raise AdmissionRefusedError("resource sampler returned an unexpected GPU UUID")
+ sample = {
+ "timestamp": _utc_now(),
+ "sample_interval_s": 1,
+ "stage": self._active_stage(),
+ **dict(raw),
+ }
+ self.samples.append(sample)
+ with self.path.open("a", encoding="utf-8") as file:
+ file.write(_canonical_json(sample) + "\n")
+ file.flush()
+ os.fsync(file.fileno())
+ try:
+ await asyncio.wait_for(self._stop.wait(), timeout=1.0)
+ return
+ except TimeoutError:
+ continue
+
+ def _active_stage(self) -> str:
+ path = self.run_dir / "active-stage"
+ try:
+ value = path.read_text(encoding="utf-8").strip()
+ except OSError:
+ return "pipeline"
+ return (
+ value if value and all(char.isalnum() or char in "_-" for char in value) else "pipeline"
+ )
+
+ def summary(self) -> dict[str, Any]:
+ numeric = {
+ field: [
+ float(sample[field])
+ for sample in self.samples
+ if isinstance(sample.get(field), (int, float))
+ and not isinstance(sample.get(field), bool)
+ ]
+ for field in ("vram_used_mib", "utilization_pct", "temperature_c", "power_w")
+ }
+ return {
+ "sample_count": len(self.samples),
+ "sample_interval_s": 1,
+ "peak_vram_mib": max(numeric["vram_used_mib"], default=0),
+ "mean_vram_mib": (
+ sum(numeric["vram_used_mib"]) / len(numeric["vram_used_mib"])
+ if numeric["vram_used_mib"]
+ else 0
+ ),
+ "peak_utilization_pct": max(numeric["utilization_pct"], default=0),
+ "peak_temperature_c": max(numeric["temperature_c"], default=0),
+ "peak_power_w": max(numeric["power_w"], default=0),
+ "elapsed_s": time.monotonic() - self.started,
+ }
+
+
+class _FileLock:
+ """Short-lived lock for request-hash lookup/create races across wrappers."""
+
+ def __init__(self, path: Path) -> None:
+ self.path = path
+ self.file: Any | None = None
+
+ def __enter__(self) -> _FileLock:
+ self.path.parent.mkdir(parents=True, exist_ok=True)
+ self.file = self.path.open("a+", encoding="utf-8")
+ fcntl.flock(self.file.fileno(), fcntl.LOCK_EX)
+ return self
+
+ def __exit__(self, exc_type: object, exc: object, traceback: object) -> None:
+ assert self.file is not None
+ fcntl.flock(self.file.fileno(), fcntl.LOCK_UN)
+ self.file.close()
+
+
+class WakewordTrainingRunner:
+ """Own immutable attempts and turn a completed executor result into evidence."""
+
+ def __init__(
+ self,
+ *,
+ settings: RunnerSettings,
+ executor: TrainingExecutor,
+ admission_lock: AdmissionLock | None = None,
+ container_inspector: ContainerInspector | None = None,
+ ) -> None:
+ self.settings = settings
+ self.executor = executor
+ self.admission_lock = admission_lock or FileAdmissionLock(
+ settings.admission_lock_path
+ or (
+ gpu_admission_lock_path(settings.gpu_uuid)
+ if settings.gpu_uuid
+ else settings.work_root / "locks" / "wakeword-training.lock"
+ )
+ )
+ self.container_inspector = container_inspector or UnknownContainerInspector()
+
+ async def run(
+ self,
+ request: WakewordTrainingRequest,
+ *,
+ retry_of: str | None = None,
+ cancel_event: asyncio.Event | None = None,
+ run_id: str | None = None,
+ ) -> RunResult:
+ if not self.settings.enabled:
+ raise AdmissionRefusedError("Wakeword Training runner is disabled")
+ canonical_request = request.canonical_payload()
+ request_sha256 = request.request_sha256()
+ source_lock = request.verified_source_lock()
+ run_dir, state, reused = self._create_or_reuse(
+ request,
+ canonical_request,
+ request_sha256,
+ source_lock,
+ retry_of=retry_of,
+ requested_run_id=run_id,
+ )
+ if reused:
+ return RunResult(run_dir=run_dir, state=state, reused=True)
+
+ self._transition(run_dir, state, RunStatus.PREFLIGHT, stage="preflight")
+ if not self.settings.maintenance_window.is_active():
+ self._update_admission_evidence(run_dir, maintenance_window_active=False)
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="maintenance_window_inactive",
+ )
+ raise AdmissionRefusedError("GPU maintenance window is inactive")
+ self._update_admission_evidence(run_dir, maintenance_window_active=True)
+ if self.settings.gpu_uuid is not None:
+ if self.settings.gpu_sampler is None:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="gpu_resource_sampler_missing",
+ )
+ raise AdmissionRefusedError("configured GPU UUID requires a resource sampler")
+ if self.settings.gpu_sampler.gpu_uuid != self.settings.gpu_uuid:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="gpu_uuid_mismatch",
+ )
+ raise AdmissionRefusedError(
+ "resource sampler does not identify the configured GPU UUID"
+ )
+ try:
+ preflight_sample = self.settings.gpu_sampler.sample()
+ except Exception:
+ self._update_admission_evidence(run_dir, gpu_identity_check="failed")
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="gpu_preflight_failed",
+ )
+ raise
+ if preflight_sample.get("gpu_uuid") != self.settings.gpu_uuid:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="gpu_uuid_mismatch",
+ )
+ raise AdmissionRefusedError("preflight did not verify the configured GPU UUID")
+ self._write_json_atomic(
+ run_dir / "gpu-preflight.json",
+ {"timestamp": _utc_now(), "sample": dict(preflight_sample)},
+ )
+ self._update_admission_evidence(
+ run_dir,
+ configured_gpu_uuid=self.settings.gpu_uuid,
+ observed_gpu_uuid=preflight_sample["gpu_uuid"],
+ )
+ if not self.admission_lock.try_acquire():
+ self._update_admission_evidence(run_dir, gpu_lock_acquired=False)
+ if self.settings.defer_when_gpu_busy:
+ # No executor has started. Remove only this unadmitted attempt
+ # shell so the caller-owned ID can be safely tried after requeue.
+ shutil.rmtree(run_dir)
+ raise AdmissionDeferredError("GPU training admission lock is held")
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="gpu_admission_lock_unavailable",
+ )
+ raise AdmissionRefusedError("GPU training admission lock is held; work was not queued")
+ self._update_admission_evidence(
+ run_dir, gpu_lock_acquired=True, gpu_lock_path=str(self.admission_lock.path)
+ )
+ if self.settings.process_inspector.has_unapproved_processes():
+ self._update_admission_evidence(run_dir, process_check="unapproved_process_present")
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="admission",
+ terminal_reason="unapproved_gpu_process_present",
+ )
+ self.admission_lock.release()
+ raise AdmissionRefusedError(
+ "unapproved GPU process is active; no process was terminated"
+ )
+ self._update_admission_evidence(run_dir, process_check="no_unapproved_processes")
+
+ recorder: _ResourceRecorder | None = None
+ try:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.ADMITTED,
+ stage="admitted",
+ lock_path=str(self.admission_lock.path),
+ )
+ self._transition(run_dir, state, RunStatus.RUNNING, stage="pipeline")
+ context = ExecutionContext(
+ run_id=state.run_id,
+ run_dir=run_dir,
+ resolved_config_path=run_dir / "resolved-config.yaml",
+ output_dir=run_dir / "output",
+ runner_image_digest=request.runner_image_digest,
+ run_kind=request.run_kind,
+ container_name=f"wakeword-train-{state.run_id}",
+ )
+ state.container_id = context.container_name
+ self._heartbeat(run_dir, state)
+ recorder = _ResourceRecorder(run_dir, self.settings.gpu_sampler)
+ try:
+ await recorder.start()
+ result, outcome = await self._await_executor(context, run_dir, state, cancel_event)
+ finally:
+ await recorder.stop()
+ self._write_execution_evidence(run_dir, result, outcome, recorder)
+ if outcome is not None:
+ self._transition(
+ run_dir, state, outcome, stage="pipeline", terminal_reason=outcome.value
+ )
+ return RunResult(run_dir=run_dir, state=state)
+ # Recovery uses a separate wrapper process. Never let an older
+ # in-memory writer resurrect a run recovery has terminalized on disk.
+ persisted = self._read_state(run_dir)
+ if persisted.terminal:
+ return RunResult(run_dir=run_dir, state=persisted)
+ assert result is not None
+ state.container_id = result.container_id
+ state.exit_code = result.exit_code
+ self._append_logs(run_dir, result, self.settings.redaction_patterns)
+ if result.exit_code != 0:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="pipeline",
+ terminal_reason="executor_nonzero_exit",
+ )
+ return RunResult(run_dir=run_dir, state=state)
+ self._transition(run_dir, state, RunStatus.SUCCEEDED, stage="validation")
+ try:
+ self._verify_declared_output_hashes(run_dir, result.output_hashes)
+ if request.run_kind is RunKind.LOCAL_EXPERIMENT:
+ self._seal_local_result(run_dir, state, canonical_request)
+ else:
+ self._seal_candidate(run_dir, state, canonical_request)
+ except StageOutputHashMismatchError:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="validation",
+ terminal_reason="stage_output_hash_mismatch",
+ )
+ except (OSError, ValueError) as exc:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="validation",
+ terminal_reason=f"candidate_validation_failed:{type(exc).__name__}",
+ )
+ else:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.COMPLETED
+ if request.run_kind is RunKind.LOCAL_EXPERIMENT
+ else RunStatus.PENDING_PUBLICATION,
+ stage="sealed",
+ )
+ return RunResult(run_dir=run_dir, state=state)
+ except asyncio.CancelledError:
+ # A supervisor SIGTERM/cancel still gets a durable terminal record;
+ # propagate cancellation afterwards so supervisors retain their normal
+ # shutdown semantics.
+ if not state.terminal:
+ if recorder is not None:
+ self._write_execution_evidence(run_dir, None, RunStatus.CANCELED, recorder)
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.CANCELED,
+ stage="pipeline",
+ terminal_reason="wrapper_cancelled",
+ )
+ raise
+ except Exception as exc:
+ if not state.terminal:
+ if recorder is not None:
+ self._write_execution_evidence(run_dir, None, RunStatus.FAILED, recorder)
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="pipeline",
+ terminal_reason=f"executor_error:{type(exc).__name__}",
+ )
+ return RunResult(run_dir=run_dir, state=state)
+ finally:
+ self.admission_lock.release()
+
+ def recover_abandoned(self, *, stale_after_s: float) -> list[RunResult]:
+ """Mark only affirmatively stopped, stale attempts abandoned.
+
+ An unknown container state or a held lock is intentionally a no-op. A
+ later phase-two worker may attach a durable lease/reaper, but this POC
+ must never double-run merely because a timestamp is old.
+ """
+
+ now = datetime.now(UTC).timestamp()
+ abandoned: list[RunResult] = []
+ for run_dir, state in self._all_runs():
+ if state.terminal:
+ continue
+ try:
+ heartbeat = datetime.fromisoformat(
+ state.heartbeat_at.replace("Z", "+00:00")
+ ).timestamp()
+ except ValueError:
+ continue
+ if now - heartbeat <= stale_after_s or self.admission_lock.held_by_anyone():
+ continue
+ if self.container_inspector.is_running(state.container_id) is not False:
+ continue
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.ABANDONED,
+ stage="recovery",
+ terminal_reason="stale_heartbeat_container_confirmed_stopped",
+ )
+ abandoned.append(RunResult(run_dir=run_dir, state=state))
+ return abandoned
+
+ async def _await_executor(
+ self,
+ context: ExecutionContext,
+ run_dir: Path,
+ state: RunState,
+ cancel_event: asyncio.Event | None,
+ ) -> tuple[ExecutionResult | None, RunStatus | None]:
+ task = asyncio.create_task(self.executor.execute(context))
+ started = time.monotonic()
+ try:
+ while not task.done():
+ await asyncio.wait({task}, timeout=max(0.001, self.settings.heartbeat_interval_s))
+ # A recovery wrapper may have terminalized this state while the
+ # original process was still unwinding. Do not overwrite it.
+ if self._read_state(run_dir).terminal:
+ return None, None
+ self._heartbeat(run_dir, state)
+ if task.done():
+ break
+ cancel_requested = (run_dir / "cancel-requested").is_file()
+ if (cancel_event is not None and cancel_event.is_set()) or cancel_requested:
+ await self._stop_executor(task, context)
+ return None, RunStatus.CANCELED
+ timed_out = (
+ self.settings.timeout_s > 0
+ and time.monotonic() - started >= self.settings.timeout_s
+ )
+ if timed_out:
+ await self._stop_executor(task, context)
+ return None, RunStatus.TIMED_OUT
+ return task.result(), None
+ finally:
+ if not task.done():
+ task.cancel()
+ with contextlib.suppress(asyncio.CancelledError, Exception):
+ await task
+
+ async def _stop_executor(
+ self, task: asyncio.Task[ExecutionResult], context: ExecutionContext
+ ) -> None:
+ await self.executor.cancel(context, force=False)
+ try:
+ await asyncio.wait_for(
+ asyncio.shield(task), timeout=max(0.001, self.settings.cancel_grace_s)
+ )
+ return
+ except TimeoutError:
+ pass
+ await self.executor.cancel(context, force=True)
+ task.cancel()
+ with contextlib.suppress(asyncio.CancelledError, Exception):
+ await task
+
+ def _create_or_reuse(
+ self,
+ request: WakewordTrainingRequest,
+ canonical_request: Mapping[str, object],
+ request_sha256: str,
+ source_lock: bytes,
+ *,
+ retry_of: str | None,
+ requested_run_id: str | None,
+ ) -> tuple[Path, RunState, bool]:
+ if requested_run_id is not None and not re.fullmatch(
+ r"[a-f0-9]{32}", requested_run_id
+ ):
+ raise ValueError("run_id must be 32 lowercase hexadecimal characters")
+ lock = self.settings.work_root / "locks" / "request-identity.lock"
+ with _FileLock(lock):
+ if requested_run_id is not None:
+ existing = next(
+ (
+ (run_dir, state)
+ for run_dir, state in self._all_runs()
+ if state.run_id == requested_run_id
+ ),
+ None,
+ )
+ if existing is not None:
+ if existing[1].request_sha256 != request_sha256:
+ raise ValueError("run_id already identifies a different request")
+ return existing[0], existing[1], True
+ matching = [
+ (run_dir, state)
+ for run_dir, state in self._all_runs()
+ if state.request_sha256 == request_sha256
+ ]
+ if requested_run_id is None:
+ active = next(
+ ((run_dir, state) for run_dir, state in matching if not state.terminal), None
+ )
+ if active is not None:
+ return active[0], active[1], True
+ if matching and retry_of is None:
+ raise ValueError(
+ "a terminal attempt already exists; retry_of is required for a new attempt"
+ )
+ predecessor: RunState | None = None
+ if retry_of is not None:
+ predecessor_item = next(
+ ((run_dir, state) for run_dir, state in matching if state.run_id == retry_of),
+ None,
+ )
+ if predecessor_item is None or not predecessor_item[1].terminal:
+ raise ValueError(
+ "retry_of must identify a terminal attempt with the same request hash"
+ )
+ predecessor = predecessor_item[1]
+ reuse_source = self._resolve_reuse_source(request, canonical_request)
+ run_id = requested_run_id or uuid.uuid4().hex
+ stamp = datetime.now(UTC).strftime("%Y%m%dT%H%M%SZ")
+ run_dir = self.settings.work_root / "runs" / f"{stamp}-{run_id}"
+ run_dir.mkdir(parents=True, exist_ok=False)
+ (run_dir / "output").mkdir()
+ now = _utc_now()
+ state = RunState(
+ run_id=run_id,
+ request_sha256=request_sha256,
+ status=RunStatus.CREATED,
+ stage="created",
+ attempt=(predecessor.attempt + 1) if predecessor else 1,
+ created_at=now,
+ updated_at=now,
+ heartbeat_at=now,
+ retry_of=predecessor.run_id if predecessor else None,
+ )
+ self._write_state(run_dir, state)
+ if reuse_source is not None:
+ try:
+ self._copy_reusable_corpus(
+ reuse_source[0], run_dir, reuse_source[1], canonical_request
+ )
+ except (OSError, ValueError) as exc:
+ self._transition(
+ run_dir,
+ state,
+ RunStatus.FAILED,
+ stage="reuse_preparation",
+ terminal_reason=f"reuse_preparation_failed:{type(exc).__name__}",
+ )
+ raise
+ self._write_json_atomic(
+ run_dir / "request.json",
+ {"request_sha256": request_sha256, "request": dict(canonical_request)},
+ )
+ self._write_source_lock(run_dir / "sources.lock.json", source_lock)
+ resolved_config = dict(canonical_request["pipeline_config"])
+ resolved_config["data_dir"] = "/inputs"
+ resolved_config["output_dir"] = "/run/output"
+ # JSON is valid YAML 1.2, so this is deterministic and does not add
+ # PyYAML to normal gateway/runner test environments.
+ self._write_text_atomic(
+ run_dir / "resolved-config.yaml", _canonical_json(resolved_config) + "\n"
+ )
+ self._write_json_atomic(
+ run_dir / "runner-provenance.json",
+ {
+ "schema_version": 1,
+ "runner": "jr-wakeword-training-host",
+ "runner_image_digest": canonical_request["runner_image_digest"],
+ "run_kind": canonical_request["run_kind"],
+ "wrapper_pid": os.getpid(),
+ "created_at": _utc_now(),
+ },
+ )
+ (run_dir / "stdout.log").touch()
+ (run_dir / "stderr.log").touch()
+ return run_dir, state, False
+
+ def _resolve_reuse_source(
+ self,
+ request: WakewordTrainingRequest,
+ canonical_request: Mapping[str, object],
+ ) -> tuple[Path, RunState] | None:
+ derived_from = request.derived_from_run_id
+ if derived_from is None:
+ return None
+ if request.run_kind is not RunKind.LOCAL_EXPERIMENT:
+ raise ValueError("only a local experiment may reuse a prior local corpus")
+ prior = next(
+ (
+ (run_dir, state)
+ for run_dir, state in self._all_runs()
+ if state.run_id == derived_from
+ ),
+ None,
+ )
+ reusable_terminal = {
+ RunStatus.COMPLETED,
+ RunStatus.FAILED,
+ RunStatus.CANCELED,
+ RunStatus.TIMED_OUT,
+ RunStatus.ABANDONED,
+ }
+ if prior is None or prior[1].status not in reusable_terminal:
+ raise ValueError("derived_from_run_id must identify a terminal local experiment")
+ prior_envelope = json.loads((prior[0] / "request.json").read_text(encoding="utf-8"))
+ prior_request = prior_envelope.get("request")
+ if (
+ not isinstance(prior_request, dict)
+ or prior_request.get("run_kind") != "local_experiment"
+ ):
+ raise ValueError("derived run is not a local experiment")
+ immutable_fields = (
+ "primary_phrase",
+ "variants",
+ "near_misses",
+ "source_lock_sha256",
+ "runner_image_digest",
+ )
+ if any(
+ prior_request.get(name) != canonical_request.get(name) for name in immutable_fields
+ ):
+ raise ValueError("corpus reuse requires matching phrases, sources, and runner image")
+ prior_config = prior_request.get("pipeline_config")
+ new_config = canonical_request.get("pipeline_config")
+ if not isinstance(prior_config, dict) or not isinstance(new_config, dict):
+ raise ValueError("corpus reuse requires valid pipeline configurations")
+ if prior_config.get("model_name") != new_config.get("model_name"):
+ raise ValueError("corpus reuse requires the same model_name")
+ count_fields = (
+ "n_samples",
+ "n_samples_val",
+ "n_background_samples",
+ "n_background_samples_val",
+ )
+ for name in count_fields:
+ before = prior_config.get(name, 0)
+ after = new_config.get(name, 0)
+ if not isinstance(before, int) or not isinstance(after, int) or after < before:
+ raise ValueError("corpus reuse cannot reduce generated sample counts")
+ return prior
+
+ def _copy_reusable_corpus(
+ self,
+ prior_dir: Path,
+ run_dir: Path,
+ prior_state: RunState,
+ canonical_request: Mapping[str, object],
+ ) -> None:
+ config = canonical_request["pipeline_config"]
+ assert isinstance(config, dict)
+ model_name = str(config["model_name"])
+ prior_model = prior_dir / "output" / model_name
+ copied: list[str] = []
+ copied_files: list[dict[str, object]] = []
+ sealed_hashes = self._reusable_output_hashes(prior_dir, prior_state)
+ reusable_names = (
+ "positive_train",
+ "positive_test",
+ "negative_train",
+ "negative_test",
+ "background_train",
+ "background_test",
+ )
+ reusable_prefix = prior_model.relative_to(prior_dir).as_posix() + "/"
+ expected_reusable = {
+ relative
+ for relative in sealed_hashes
+ if relative.startswith(reusable_prefix)
+ and relative[len(reusable_prefix) :].split("/", maxsplit=1)[0]
+ in reusable_names
+ and not re.search(r"_r\d+\.wav$", relative)
+ }
+ if not expected_reusable:
+ raise ValueError("derived local experiment has no reusable generated corpus")
+ copied_directories: set[str] = set()
+ for relative in sorted(expected_reusable):
+ path = prior_dir / relative
+ expected = sealed_hashes[relative]
+ if not path.is_file() or path.is_symlink():
+ raise ValueError(f"reusable corpus integrity file is missing: {relative}")
+ actual = _sha256_bytes(path.read_bytes())
+ if actual != expected:
+ raise ValueError(f"reusable corpus integrity check failed: {relative}")
+ target = run_dir / relative
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copy2(path, target)
+ copied_directories.add(target.parent.relative_to(run_dir).as_posix())
+ copied_files.append(
+ {"path": relative, "sha256": actual, "size_bytes": path.stat().st_size}
+ )
+ copied = sorted(copied_directories)
+ self._write_json_atomic(
+ run_dir / "reuse-evidence.json",
+ {
+ "schema_version": 1,
+ "mode": "corpus_reuse_retrain_from_scratch",
+ "derived_from_run_id": prior_state.run_id,
+ "derived_from_request_sha256": prior_state.request_sha256,
+ "copied_directories": copied,
+ "copied_files": copied_files,
+ "warm_started": False,
+ "exact_resume": False,
+ },
+ )
+
+ @staticmethod
+ def _reusable_output_hashes(prior_dir: Path, prior_state: RunState) -> dict[str, str]:
+ evidence = prior_dir / "image-stage-events.ndjson"
+ if not evidence.is_file():
+ raise ValueError("terminal local experiment has no completed-stage evidence")
+ records = [
+ json.loads(line)
+ for line in evidence.read_text(encoding="utf-8").splitlines()
+ if line.strip()
+ ]
+ generated = next(
+ (
+ record
+ for record in reversed(records)
+ if record.get("name") == "generate" and record.get("status") == "succeeded"
+ ),
+ None,
+ )
+ if generated is None or not isinstance(generated.get("output_hashes"), dict):
+ raise ValueError("terminal local experiment has no sealed generation stage")
+ hashes = {
+ str(relative): _validate_sha256(str(digest), "stage output hash")
+ for relative, digest in generated["output_hashes"].items()
+ if str(relative).startswith("output/")
+ }
+ if prior_state.status is RunStatus.COMPLETED:
+ checksum_path = prior_dir / "checksums.sha256"
+ if not checksum_path.is_file():
+ raise ValueError("completed local experiment has no sealed checksums")
+ final_hashes = {
+ relative: _validate_sha256(digest, "sealed output hash")
+ for line in checksum_path.read_text(encoding="utf-8").splitlines()
+ for digest, separator, relative in [line.partition(" ")]
+ if separator and relative.startswith("output/")
+ }
+ if any(final_hashes.get(relative) != digest for relative, digest in hashes.items()):
+ raise ValueError("completed generation evidence does not match final checksums")
+ return hashes
+
+ def _all_runs(self) -> list[tuple[Path, RunState]]:
+ runs_root = self.settings.work_root / "runs"
+ if not runs_root.exists():
+ return []
+ result: list[tuple[Path, RunState]] = []
+ for run_dir in sorted(path for path in runs_root.iterdir() if path.is_dir()):
+ state_path = run_dir / "state.json"
+ if not state_path.is_file():
+ continue
+ try:
+ loaded = json.loads(state_path.read_text(encoding="utf-8"))
+ result.append((run_dir, RunState.from_dict(loaded)))
+ except (OSError, ValueError, KeyError, json.JSONDecodeError):
+ # A malformed half-created directory is unsafe to reuse; it is
+ # left for an operator rather than being treated as a duplicate.
+ continue
+ return result
+
+ @staticmethod
+ def _read_state(run_dir: Path) -> RunState:
+ value = json.loads((run_dir / "state.json").read_text(encoding="utf-8"))
+ return RunState.from_dict(value)
+
+ def _transition(
+ self,
+ run_dir: Path,
+ state: RunState,
+ next_status: RunStatus,
+ *,
+ stage: str,
+ terminal_reason: str | None = None,
+ lock_path: str | None = None,
+ ) -> None:
+ if next_status not in _TRANSITIONS[state.status]:
+ raise InvalidTransitionError(f"cannot transition {state.status} to {next_status}")
+ state.status = next_status
+ state.stage = stage
+ state.updated_at = _utc_now()
+ state.heartbeat_at = state.updated_at
+ if terminal_reason is not None:
+ state.terminal_reason = terminal_reason
+ if lock_path is not None:
+ state.lock_path = lock_path
+ self._write_state(run_dir, state)
+
+ def _heartbeat(self, run_dir: Path, state: RunState) -> None:
+ state.heartbeat_at = _utc_now()
+ state.updated_at = state.heartbeat_at
+ self._write_state(run_dir, state)
+
+ def _write_execution_evidence(
+ self,
+ run_dir: Path,
+ result: ExecutionResult | None,
+ outcome: RunStatus | None,
+ recorder: _ResourceRecorder,
+ ) -> None:
+ """Persist a sealed, reviewable record even when the pipeline is terminally bad."""
+
+ resource_summary = dict(result.resource_summary) if result is not None else {}
+ resource_summary.update(recorder.summary())
+ disk_after = self._disk_bytes(run_dir)
+ resource_summary.update(
+ {
+ "disk_before_bytes": recorder.initial_disk_bytes,
+ "disk_after_bytes": disk_after,
+ "disk_growth_bytes": max(0, disk_after - recorder.initial_disk_bytes),
+ }
+ )
+ self._write_json_atomic(run_dir / "resource-summary.json", resource_summary)
+
+ input_hashes = self._existing_hashes(
+ run_dir, ("request.json", "resolved-config.yaml", "sources.lock.json")
+ )
+ preflight_outputs = self._existing_hashes(run_dir, ("gpu-preflight.json", "state.json"))
+ if not preflight_outputs:
+ preflight_outputs = {"state.json": _sha256_bytes((run_dir / "state.json").read_bytes())}
+ pipeline_outputs = self._tree_hashes(run_dir / "output")
+ if not pipeline_outputs:
+ pipeline_outputs = {"output": _sha256_bytes(b"")}
+ pipeline_status = (
+ outcome.value
+ if outcome is not None
+ else "failed"
+ if result is not None and result.exit_code != 0
+ else "succeeded"
+ )
+ pipeline_stage = {
+ "name": "pipeline",
+ "started_at": recorder.started_at,
+ "ended_at": recorder.ended_at or _utc_now(),
+ "status": pipeline_status,
+ "exit_status": result.exit_code if result is not None else None,
+ "input_hashes": input_hashes,
+ "output_hashes": pipeline_outputs,
+ "elapsed_s": resource_summary["elapsed_s"],
+ "max_rss_kib": resource_summary.get("max_rss_kib", 0),
+ "disk_growth_bytes": resource_summary["disk_growth_bytes"],
+ }
+ executed_stages = (
+ list(result.stage_evidence)
+ if result is not None and result.stage_evidence
+ else [pipeline_stage]
+ )
+ stages = {
+ "schema_version": 1,
+ "stages": [
+ {
+ "name": "preflight",
+ "started_at": recorder.started_at,
+ "ended_at": recorder.started_at,
+ "status": "succeeded",
+ "exit_status": 0,
+ "input_hashes": input_hashes,
+ "output_hashes": preflight_outputs,
+ "elapsed_s": 0,
+ "max_rss_kib": 0,
+ "disk_growth_bytes": 0,
+ },
+ *executed_stages,
+ ],
+ }
+ self._write_json_atomic(run_dir / "stage-evidence.json", stages)
+
+ @staticmethod
+ def _update_admission_evidence(run_dir: Path, **values: object) -> None:
+ path = run_dir / "admission-evidence.json"
+ try:
+ current = json.loads(path.read_text(encoding="utf-8"))
+ except (OSError, json.JSONDecodeError):
+ current = {"schema_version": 1, "updated_at": _utc_now()}
+ if not isinstance(current, dict):
+ raise ValueError("admission evidence is malformed")
+ current.update(values)
+ current["updated_at"] = _utc_now()
+ WakewordTrainingRunner._write_json_atomic(path, current)
+
+ @staticmethod
+ def _disk_bytes(path: Path, *, default: int = 0) -> int:
+ if not path.exists():
+ return default
+ return sum(candidate.stat().st_size for candidate in path.rglob("*") if candidate.is_file())
+
+ @staticmethod
+ def _existing_hashes(run_dir: Path, names: tuple[str, ...]) -> dict[str, str]:
+ return {
+ name: _sha256_bytes((run_dir / name).read_bytes())
+ for name in names
+ if (run_dir / name).is_file()
+ }
+
+ @staticmethod
+ def _tree_hashes(root: Path) -> dict[str, str]:
+ if not root.is_dir():
+ return {}
+ return {
+ path.relative_to(root.parent).as_posix(): _sha256_bytes(path.read_bytes())
+ for path in sorted(candidate for candidate in root.rglob("*") if candidate.is_file())
+ }
+
+ @staticmethod
+ def _verify_declared_output_hashes(run_dir: Path, declared: Mapping[str, str]) -> None:
+ for relative, expected in declared.items():
+ if not isinstance(relative, str) or not isinstance(expected, str):
+ raise StageOutputHashMismatchError("executor output hash is malformed")
+ try:
+ normalized_expected = _validate_sha256(expected, "output hash")
+ except ValueError as exc:
+ raise StageOutputHashMismatchError("executor output hash is malformed") from exc
+ candidate = (run_dir / relative).resolve()
+ if (
+ candidate == run_dir.resolve()
+ or run_dir.resolve() not in candidate.parents
+ or not candidate.is_file()
+ or _sha256_bytes(candidate.read_bytes()) != normalized_expected
+ ):
+ raise StageOutputHashMismatchError(
+ "executor output hash does not match sealed output"
+ )
+
+ def _seal_candidate(
+ self, run_dir: Path, state: RunState, canonical_request: Mapping[str, object]
+ ) -> None:
+ output_dir = run_dir / "output"
+ classifiers = sorted(output_dir.glob("*.onnx"))
+ if len(classifiers) != 1:
+ raise ValueError("expected exactly one ONNX classifier in output")
+ for relative in ("manifest.json", "evaluation.json"):
+ path = output_dir / relative
+ if not path.is_file():
+ raise ValueError(f"required evidence file is missing: output/{relative}")
+ self._write_checksums(run_dir)
+ classifier = classifiers[0]
+ candidate = {
+ "schema_version": 1,
+ "run_id": state.run_id,
+ "request_sha256": state.request_sha256,
+ "intended_release_id": canonical_request["intended_release_id"],
+ "run_kind": canonical_request["run_kind"],
+ # A smoke is permanently quarantined. A commercial attempt is
+ # still review-required; this runner never grants publication.
+ "commercial_promotion_eligible": False,
+ "publication_status": "quarantined"
+ if canonical_request["run_kind"] == RunKind.QUARANTINED_SMOKE.value
+ else "review_required",
+ "classifier": {
+ "path": classifier.relative_to(run_dir).as_posix(),
+ "sha256": _sha256_bytes(classifier.read_bytes()),
+ "size_bytes": classifier.stat().st_size,
+ },
+ "manifest_path": "output/manifest.json",
+ "evaluation_path": "output/evaluation.json",
+ "checksums_path": "checksums.sha256",
+ }
+ self._write_json_atomic(run_dir / "publish-candidate.json", candidate)
+
+ def _seal_local_result(
+ self, run_dir: Path, state: RunState, canonical_request: Mapping[str, object]
+ ) -> None:
+ """Seal a user-owned result without creating a catalog publication handoff."""
+
+ output_dir = run_dir / "output"
+ classifiers = sorted(output_dir.glob("*.onnx"))
+ checkpoints = sorted(output_dir.rglob("*.pt"))
+ if len(classifiers) != 1:
+ raise ValueError("expected exactly one ONNX classifier in output")
+ if len(checkpoints) != 1:
+ raise ValueError("expected exactly one private PT checkpoint in output")
+ for relative in ("manifest.json", "evaluation.json"):
+ if not (output_dir / relative).is_file():
+ raise ValueError(f"required evidence file is missing: output/{relative}")
+ def artifact(path: Path) -> dict[str, object]:
+ return {
+ "path": path.relative_to(run_dir).as_posix(),
+ "sha256": _sha256_bytes(path.read_bytes()),
+ "size_bytes": path.stat().st_size,
+ }
+
+ retraining_paths = sorted(
+ path
+ for path in output_dir.rglob("*")
+ if path.is_file() and path.suffix.lower() in {".pt", ".npy"}
+ )
+ public_bundle = self._write_public_bundle(
+ run_dir,
+ str(canonical_request["intended_release_id"]),
+ classifiers[0],
+ output_dir / "manifest.json",
+ output_dir / "evaluation.json",
+ )
+ private_bundle = self._write_private_bundle(
+ run_dir, str(canonical_request["intended_release_id"])
+ )
+ result = {
+ "schema_version": 1,
+ "run_id": state.run_id,
+ "request_sha256": state.request_sha256,
+ "intended_release_id": canonical_request["intended_release_id"],
+ "run_kind": RunKind.LOCAL_EXPERIMENT.value,
+ "publication_status": "local_only",
+ "classifier": artifact(classifiers[0]),
+ "checkpoint": artifact(checkpoints[0]),
+ "manifest_path": "output/manifest.json",
+ "evaluation_path": "output/evaluation.json",
+ "checksums_path": "checksums.sha256",
+ "retraining_artifacts": [artifact(path) for path in retraining_paths],
+ "public_bundle": artifact(public_bundle),
+ "private_retraining_bundle": artifact(private_bundle),
+ "resume_capability": "sealed_corpus_reuse_only",
+ }
+ self._write_json_atomic(run_dir / "training-result.json", result)
+ self._write_checksums(run_dir)
+
+ @staticmethod
+ def _write_private_bundle(run_dir: Path, release_id: str) -> Path:
+ """Persist the full corpus/retraining state needed after host loss."""
+
+ bundle = run_dir / "exports" / f"{release_id}-private-retraining.tar.gz"
+ fixed = (
+ "state.json",
+ "request.json",
+ "resolved-config.yaml",
+ "sources.lock.json",
+ "runner-provenance.json",
+ "stage-evidence.json",
+ "image-stage-events.ndjson",
+ "image-provenance.json",
+ "resource-summary.json",
+ )
+ members = [run_dir / name for name in fixed if (run_dir / name).is_file()]
+ members.extend(
+ path
+ for path in sorted((run_dir / "output").rglob("*"))
+ if path.is_file() and not path.is_symlink()
+ )
+ corpus_integrity = {
+ path.relative_to(run_dir).as_posix(): _sha256_bytes(path.read_bytes())
+ for path in members
+ if path.relative_to(run_dir).as_posix().startswith("output/")
+ }
+ with tarfile.open(bundle, "w:gz") as archive:
+ for path in members:
+ archive.add(path, arcname=path.relative_to(run_dir).as_posix(), recursive=False)
+ integrity = (_canonical_json(corpus_integrity) + "\n").encode("utf-8")
+ info = tarfile.TarInfo("corpus-integrity.json")
+ info.size = len(integrity)
+ info.mtime = int(time.time())
+ with tempfile.TemporaryFile() as file:
+ file.write(integrity)
+ file.seek(0)
+ archive.addfile(info, file)
+ return bundle
+
+ @staticmethod
+ def _write_public_bundle(
+ run_dir: Path,
+ release_id: str,
+ classifier: Path,
+ manifest: Path,
+ evaluation: Path,
+ ) -> Path:
+ exports = run_dir / "exports"
+ exports.mkdir(exist_ok=True)
+ bundle = exports / f"{release_id}-public.tar.gz"
+ members = {
+ "classifier.onnx": classifier,
+ "manifest.json": manifest,
+ "evaluation.json": evaluation,
+ "LICENSE": _PACKAGE_ROOT / "LICENSE",
+ "THIRD_PARTY_NOTICES.md": (
+ _PACKAGE_ROOT / "deploy" / "wakeword-training" / "THIRD_PARTY_NOTICES.md"
+ ),
+ }
+ missing = [name for name, path in members.items() if not path.is_file()]
+ if missing:
+ raise ValueError(f"public bundle source is missing: {', '.join(missing)}")
+ checksums = "".join(
+ f"{_sha256_bytes(path.read_bytes())} {name}\n" for name, path in members.items()
+ ).encode("utf-8")
+ with tarfile.open(bundle, "w:gz") as archive:
+ for name, path in members.items():
+ archive.add(path, arcname=f"{release_id}/{name}")
+ info = tarfile.TarInfo(f"{release_id}/SHA256SUMS")
+ info.size = len(checksums)
+ info.mtime = int(time.time())
+ with tempfile.TemporaryFile() as file:
+ file.write(checksums)
+ file.seek(0)
+ archive.addfile(info, file)
+ return bundle
+
+ def _write_checksums(self, run_dir: Path) -> None:
+ paths: list[Path] = []
+ for path in run_dir.rglob("*"):
+ excluded = {"state.json", "checksums.sha256", "publish-candidate.json"}
+ if not path.is_file() or path.name in excluded:
+ continue
+ if path.parent == run_dir and path.name.startswith("."):
+ continue
+ paths.append(path)
+ lines = [
+ f"{_sha256_bytes(path.read_bytes())} {path.relative_to(run_dir).as_posix()}"
+ for path in sorted(paths)
+ ]
+ self._write_text_atomic(run_dir / "checksums.sha256", "\n".join(lines) + "\n")
+
+ @staticmethod
+ def _write_source_lock(path: Path, value: bytes) -> None:
+ WakewordTrainingRunner._write_bytes_atomic(path, value)
+ path.chmod(0o444)
+
+ @staticmethod
+ def _write_state(run_dir: Path, state: RunState) -> None:
+ WakewordTrainingRunner._write_json_atomic(run_dir / "state.json", asdict(state))
+
+ @staticmethod
+ def _write_json_atomic(path: Path, value: Mapping[str, Any]) -> None:
+ WakewordTrainingRunner._write_text_atomic(path, _canonical_json(value) + "\n")
+
+ @staticmethod
+ def _write_text_atomic(path: Path, value: str) -> None:
+ WakewordTrainingRunner._write_bytes_atomic(path, value.encode("utf-8"))
+
+ @staticmethod
+ def _write_bytes_atomic(path: Path, value: bytes) -> None:
+ path.parent.mkdir(parents=True, exist_ok=True)
+ descriptor, temporary_name = tempfile.mkstemp(prefix=f".{path.name}.", dir=path.parent)
+ temporary = Path(temporary_name)
+ try:
+ with os.fdopen(descriptor, "wb") as file:
+ file.write(value)
+ file.flush()
+ os.fsync(file.fileno())
+ os.replace(temporary, path)
+ finally:
+ temporary.unlink(missing_ok=True)
+
+ @staticmethod
+ def _append_logs(
+ run_dir: Path, result: ExecutionResult, redaction_patterns: tuple[str, ...]
+ ) -> None:
+ # This wrapper never puts request values, credentials, or host paths into
+ # either log. Deployment-specific literal secret values can also be
+ # supplied as patterns and are redacted before persistence.
+ def redact(value: str) -> str:
+ for pattern in redaction_patterns:
+ if pattern:
+ value = value.replace(pattern, "[REDACTED]")
+ return value
+
+ (run_dir / "stdout.log").write_text(redact(result.stdout), encoding="utf-8")
+ (run_dir / "stderr.log").write_text(redact(result.stderr), encoding="utf-8")
diff --git a/scripts/wakeword_training_image.py b/scripts/wakeword_training_image.py
new file mode 100644
index 0000000..deac5b5
--- /dev/null
+++ b/scripts/wakeword_training_image.py
@@ -0,0 +1,395 @@
+"""Pinned-image input and provenance contract for Wakeword Training (#163).
+
+This module deliberately does not implement wakeword generation, augmentation,
+feature extraction, training, export, or evaluation. It validates the
+commercial source lock, materializes only its declared inputs, and leaves the
+actual ML stages to the released LiveKit CLI inside the isolated image.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shutil
+from dataclasses import dataclass
+from enum import StrEnum
+from pathlib import Path
+from typing import Any
+
+LIVEKIT_WAKEWORD_VERSION = "0.2.1"
+LIVEKIT_WAKEWORD_REVISION = "1ec7f680df30ff4ca0ebae6b5983441e94b10980"
+LIVEKIT_WAKEWORD_SDIST_SHA256 = "cf2d9cf4867812c06788f64c15e49abd909d9d6291f0a13f1c3f9cb649fa6127"
+
+_COMMERCIAL_PURPOSES = frozenset({"wakeword_training", "classifier_distribution"})
+_BLOCKED_LICENSE_MARKERS = ("unknown", "nc", "non-commercial", "research-only")
+_BLOCKED_SOURCE_MARKERS = ("acav", "unknown_rir_mirror")
+_SYNTHETIC_SOURCE_KINDS = frozenset({"piper_output", "voxcpm_output"})
+_SAFE_TOKEN = re.compile(r"^[a-z0-9][a-z0-9._-]{0,127}$")
+_ALLOWED_PURPOSES = frozenset(
+ {
+ "positive",
+ "adversarial_negative",
+ "near_miss",
+ "general_negative_speech",
+ "background",
+ "rir",
+ }
+)
+_ALLOWED_PARTITIONS = frozenset({"train", "validation", "calibration", "release_test"})
+_REQUIRED_PURPOSE_PARTITIONS = frozenset(
+ {
+ ("positive", "train"),
+ ("positive", "release_test"),
+ ("general_negative_speech", "train"),
+ ("general_negative_speech", "validation"),
+ ("background", "train"),
+ ("rir", "train"),
+ }
+)
+
+
+class SourceLockError(ValueError):
+ """A source lock cannot safely enter the requested training lane."""
+
+
+class RunClassification(StrEnum):
+ COMMERCIAL_REVIEW_REQUIRED = "commercial_review_required"
+ LOCAL_ONLY = "local_only"
+ QUARANTINED = "quarantined"
+
+ @property
+ def commercial_promotion_eligible(self) -> bool:
+ return self is RunClassification.COMMERCIAL_REVIEW_REQUIRED
+
+
+def classify_run(run_kind: str) -> RunClassification:
+ if run_kind == "commercial":
+ return RunClassification.COMMERCIAL_REVIEW_REQUIRED
+ if run_kind == "local_experiment":
+ return RunClassification.LOCAL_ONLY
+ if run_kind == "quarantined_smoke":
+ return RunClassification.QUARANTINED
+ raise SourceLockError("run_kind must be commercial, local_experiment, or quarantined_smoke")
+
+
+def _sha256_file(path: Path) -> str:
+ digest = hashlib.sha256()
+ with path.open("rb") as file:
+ for block in iter(lambda: file.read(1024 * 1024), b""):
+ digest.update(block)
+ return digest.hexdigest()
+
+
+def _require_mapping(value: object, label: str) -> dict[str, Any]:
+ if not isinstance(value, dict):
+ raise SourceLockError(f"{label} must be an object")
+ return value
+
+
+def _require_string(value: object, label: str) -> str:
+ if not isinstance(value, str) or not value.strip():
+ raise SourceLockError(f"{label} must be a non-empty string")
+ return value.strip()
+
+
+def _require_sha256(value: object, label: str) -> str:
+ digest = _require_string(value, label).removeprefix("sha256:").lower()
+ if len(digest) != 64 or any(character not in "0123456789abcdef" for character in digest):
+ raise SourceLockError(f"{label} must be a SHA-256 digest")
+ return digest
+
+
+def _safe_input_path(root: Path, declared_path: str) -> Path:
+ candidate = (root / declared_path).resolve(strict=True)
+ if not candidate.is_file() or os.path.commonpath((root, candidate)) != str(root):
+ raise SourceLockError("source lock file path must identify a regular file below input_root")
+ return candidate
+
+
+@dataclass(frozen=True)
+class MaterializedInputs:
+ provenance_manifest_path: Path
+ recorded_manifest_path: Path
+
+
+class InputMaterializer:
+ """Verify and copy a source lock's declared inputs into one sealed run.
+
+ The input root is read-only when this code runs in the training image. The
+ run directory is the sole persistence target, so no upstream ``setup``
+ download can become an undeclared training input.
+ """
+
+ def __init__(self, lock_path: Path, input_root: Path, run_dir: Path, *, run_kind: str) -> None:
+ self.lock_path = lock_path.resolve(strict=True)
+ self.input_root = input_root.resolve(strict=True)
+ self.run_dir = run_dir.resolve()
+ self.run_kind = run_kind
+
+ def materialize(self) -> MaterializedInputs:
+ classification = classify_run(self.run_kind)
+ lock = self._read_lock()
+ if lock.get("run_kind") != self.run_kind:
+ raise SourceLockError("source lock run_kind does not match the requested run")
+ sources = lock.get("sources")
+ if not isinstance(sources, list) or not sources:
+ raise SourceLockError("source lock must contain at least one source")
+
+ materialized_root = self.run_dir / "materialized"
+ materialized_root.mkdir(parents=True, exist_ok=False)
+ source_manifest: list[dict[str, object]] = []
+ supplied_purposes: set[tuple[str, str]] = set()
+ seen_source_ids: set[str] = set()
+ materialized_destinations: set[Path] = set()
+ for index, raw_source in enumerate(sources):
+ source = _require_mapping(raw_source, f"sources[{index}]")
+ source_id, purpose, partition, file_records = self._validate_source(
+ source, index, commercial=classification.commercial_promotion_eligible
+ )
+ if source_id in seen_source_ids:
+ raise SourceLockError(f"duplicate source_id: {source_id}")
+ seen_source_ids.add(source_id)
+ supplied_purposes.add((purpose, partition))
+ target_root = materialized_root / partition / purpose / source_id
+ target_root.mkdir(parents=True)
+ materialized_files: list[dict[str, str]] = []
+ for record in file_records:
+ source_path = _safe_input_path(self.input_root, record["path"])
+ if _sha256_file(source_path) != record["sha256"]:
+ raise SourceLockError(f"source hash mismatch: {record['path']}")
+ target = target_root / source_path.name
+ if target in materialized_destinations:
+ raise SourceLockError(f"duplicate materialized destination: {target.name}")
+ materialized_destinations.add(target)
+ shutil.copyfile(source_path, target)
+ target.chmod(0o444)
+ materialized_files.append(
+ {
+ "source_path": record["path"],
+ "materialized_path": target.relative_to(self.run_dir).as_posix(),
+ "sha256": record["sha256"],
+ }
+ )
+ source_manifest.append(
+ {
+ "source_id": source_id,
+ "purpose": purpose,
+ "partition": partition,
+ "files": materialized_files,
+ }
+ )
+
+ if classification.commercial_promotion_eligible:
+ missing = _REQUIRED_PURPOSE_PARTITIONS - supplied_purposes
+ if missing:
+ formatted = ", ".join(
+ f"{purpose}:{partition}" for purpose, partition in sorted(missing)
+ )
+ raise SourceLockError(
+ f"commercial source lock is missing required inputs: {formatted}"
+ )
+
+ provenance_path = self.run_dir / "sources.lock.json"
+ if self.lock_path != provenance_path:
+ shutil.copyfile(self.lock_path, provenance_path)
+ provenance_path.chmod(0o444)
+ attribution_dir = self.run_dir / "attribution"
+ attribution_dir.mkdir(exist_ok=True)
+ self._materialize_attribution(lock["sources"], attribution_dir)
+ recorded_manifest_path = self.run_dir / "recorded-inputs.json"
+ recorded_manifest_path.write_text(
+ json.dumps(
+ {
+ "schema_version": 1,
+ "classification": classification.value,
+ "sources": source_manifest,
+ },
+ sort_keys=True,
+ separators=(",", ":"),
+ )
+ + "\n",
+ encoding="utf-8",
+ )
+ recorded_manifest_path.chmod(0o444)
+ return MaterializedInputs(
+ provenance_manifest_path=provenance_path,
+ recorded_manifest_path=recorded_manifest_path,
+ )
+
+ def _read_lock(self) -> dict[str, Any]:
+ try:
+ lock = json.loads(self.lock_path.read_text(encoding="utf-8"))
+ except (OSError, json.JSONDecodeError) as exc:
+ raise SourceLockError("source lock must be readable JSON") from exc
+ lock = _require_mapping(lock, "source lock")
+ if lock.get("schema_version") != 1:
+ raise SourceLockError("source lock schema_version must be 1")
+ return lock
+
+ def _validate_source(
+ self, source: dict[str, Any], index: int, *, commercial: bool
+ ) -> tuple[str, str, str, list[dict[str, str]]]:
+ source_id = _require_string(source.get("source_id"), f"sources[{index}].source_id")
+ purpose = _require_string(source.get("purpose"), f"sources[{index}].purpose")
+ partition = _require_string(source.get("partition"), f"sources[{index}].partition")
+ source_kind = _require_string(source.get("source_kind"), f"sources[{index}].source_kind")
+ if not _SAFE_TOKEN.fullmatch(source_id):
+ raise SourceLockError(f"sources[{index}].source_id must be a safe token")
+ if purpose not in _ALLOWED_PURPOSES:
+ raise SourceLockError(f"sources[{index}].purpose is not an allowed purpose")
+ if partition not in _ALLOWED_PARTITIONS:
+ raise SourceLockError(f"sources[{index}].partition is not an allowed partition")
+ publisher = _require_mapping(
+ source.get("original_publisher"), f"sources[{index}].original_publisher"
+ )
+ _require_string(publisher.get("name"), f"sources[{index}].original_publisher.name")
+ _require_string(publisher.get("url"), f"sources[{index}].original_publisher.url")
+ _require_string(source.get("version"), f"sources[{index}].version")
+ _require_string(source.get("revision"), f"sources[{index}].revision")
+ _require_string(source.get("attribution"), f"sources[{index}].attribution")
+ license_data = _require_mapping(source.get("license"), f"sources[{index}].license")
+ license_id = _require_string(
+ license_data.get("spdx_id"), f"sources[{index}].license.spdx_id"
+ )
+ _require_string(license_data.get("terms_url"), f"sources[{index}].license.terms_url")
+ captured_text = _require_string(
+ license_data.get("captured_text_path"),
+ f"sources[{index}].license.captured_text_path",
+ )
+ captured_hash = _require_sha256(
+ license_data.get("captured_text_sha256"),
+ f"sources[{index}].license.captured_text_sha256",
+ )
+ license_path = _safe_input_path(self.input_root, captured_text)
+ if _sha256_file(license_path) != captured_hash:
+ raise SourceLockError(f"captured license hash mismatch: {captured_text}")
+ files = source.get("files")
+ if not isinstance(files, list) or not files:
+ raise SourceLockError(f"sources[{index}].files must be a non-empty list")
+ records: list[dict[str, str]] = []
+ for file_index, raw_file in enumerate(files):
+ file_data = _require_mapping(raw_file, f"sources[{index}].files[{file_index}]")
+ path = _require_string(
+ file_data.get("path"), f"sources[{index}].files[{file_index}].path"
+ )
+ digest = _require_sha256(
+ file_data.get("sha256"), f"sources[{index}].files[{file_index}].sha256"
+ )
+ size = file_data.get("size_bytes")
+ if not isinstance(size, int) or size < 1:
+ raise SourceLockError(
+ f"sources[{index}].files[{file_index}].size_bytes must be positive"
+ )
+ if _safe_input_path(self.input_root, path).stat().st_size != size:
+ raise SourceLockError(f"source size mismatch: {path}")
+ records.append({"path": path, "sha256": digest})
+ if commercial:
+ self._validate_commercial_source(source_id, source_kind, license_id, source, index)
+ return source_id, purpose, partition, records
+
+ @staticmethod
+ def _validate_commercial_source(
+ source_id: str, source_kind: str, license_id: str, source: dict[str, Any], index: int
+ ) -> None:
+ normalized_id = source_id.lower()
+ normalized_license = license_id.lower()
+ if any(marker in normalized_id for marker in _BLOCKED_SOURCE_MARKERS) or any(
+ marker in normalized_license for marker in _BLOCKED_LICENSE_MARKERS
+ ):
+ raise SourceLockError(f"blocked source for commercial mode: {source_id}")
+ commercial_data = _require_mapping(source.get("commercial"), f"sources[{index}].commercial")
+ if commercial_data.get("disposition") != "approved":
+ raise SourceLockError(f"commercial source is not approved: {source_id}")
+ allowed_purposes = commercial_data.get("allowed_purposes")
+ if not isinstance(allowed_purposes, list) or not _COMMERCIAL_PURPOSES.issubset(
+ set(allowed_purposes)
+ ):
+ raise SourceLockError(f"commercial source has incomplete allowed_purposes: {source_id}")
+ _require_string(commercial_data.get("approver"), f"sources[{index}].commercial.approver")
+ _require_string(
+ commercial_data.get("approved_at"), f"sources[{index}].commercial.approved_at"
+ )
+ if (
+ source_kind in _SYNTHETIC_SOURCE_KINDS
+ and commercial_data.get("tts_output_approved") is not True
+ ):
+ raise SourceLockError(f"unapproved synthetic source for commercial mode: {source_id}")
+
+ def _materialize_attribution(self, sources: object, attribution_dir: Path) -> None:
+ assert isinstance(sources, list)
+ for raw_source in sources:
+ source = _require_mapping(raw_source, "source")
+ source_id = _require_string(source.get("source_id"), "source.source_id")
+ license_data = _require_mapping(source.get("license"), "source.license")
+ license_path = _safe_input_path(
+ self.input_root,
+ _require_string(
+ license_data.get("captured_text_path"), "source.license.captured_text_path"
+ ),
+ )
+ target = attribution_dir / f"{source_id}-license.txt"
+ shutil.copyfile(license_path, target)
+ target.chmod(0o444)
+
+
+def build_stage_command(run_kind: str) -> tuple[str, ...]:
+ """Return the only command an isolated training container may execute."""
+
+ classification = classify_run(run_kind)
+ if classification is RunClassification.COMMERCIAL_REVIEW_REQUIRED:
+ return (
+ "python",
+ "/opt/jr-wakeword/run-commercial-pipeline.py",
+ "/run/resolved-config.yaml",
+ )
+ if classification is RunClassification.LOCAL_ONLY:
+ return (
+ "python",
+ "/opt/jr-wakeword/run-local-experiment.py",
+ "/run/resolved-config.yaml",
+ )
+ return (
+ "python",
+ "/opt/jr-wakeword/run-quarantined-smoke.py",
+ "/run/resolved-config.yaml",
+ )
+
+
+def collect_image_provenance(
+ *,
+ dependency_lock_path: Path,
+ frontend_asset_paths: list[Path],
+ installed_distributions: dict[str, str],
+ image_digest: str,
+ python_version: str,
+ cuda_version: str,
+ os_packages: list[str],
+) -> dict[str, object]:
+ """Return manifest-safe image evidence; callers persist it in the run bundle."""
+
+ if not image_digest.startswith("sha256:"):
+ raise ValueError("image_digest must be sha256-pinned")
+ lock_path = dependency_lock_path.resolve(strict=True)
+ assets = []
+ for path in frontend_asset_paths:
+ resolved = path.resolve(strict=True)
+ assets.append({"path": resolved.name, "sha256": _sha256_file(resolved)})
+ return {
+ "schema_version": 1,
+ "image_digest": image_digest,
+ "python_version": python_version,
+ "cuda_version": cuda_version,
+ "os_packages": sorted(os_packages),
+ "livekit_wakeword": {
+ "distribution": "livekit-wakeword",
+ "version": LIVEKIT_WAKEWORD_VERSION,
+ "source_revision": LIVEKIT_WAKEWORD_REVISION,
+ "source_distribution_sha256": LIVEKIT_WAKEWORD_SDIST_SHA256,
+ "installed_version": installed_distributions.get("livekit-wakeword"),
+ },
+ "installed_distributions": dict(sorted(installed_distributions.items())),
+ "dependency_lock": {"path": lock_path.name, "sha256": _sha256_file(lock_path)},
+ "frontend_assets": assets,
+ }
diff --git a/start-windows.ps1 b/start-windows.ps1
new file mode 100644
index 0000000..83a09a7
--- /dev/null
+++ b/start-windows.ps1
@@ -0,0 +1,25 @@
+$ErrorActionPreference = "Stop"
+$release = "0.2.1-jrich-2"
+$source = (& wsl.exe wslpath -a -u -- $PSScriptRoot).Trim()
+
+if ($LASTEXITCODE -ne 0 -or -not $source) {
+ throw "WSL2 is required. Install WSL2 with Ubuntu, then run this file again."
+}
+
+$target = (& wsl.exe bash -lc "printf '%s' \"`$HOME/.local/share/jrich-wakeword-trainer/$release\"").Trim()
+if ($LASTEXITCODE -ne 0 -or -not $target) {
+ throw "Could not resolve the trainer directory inside WSL2."
+}
+
+& wsl.exe --exec env "JR_TRAINER_SOURCE=$source" "JR_TRAINER_TARGET=$target" bash -lc '
+set -euo pipefail
+mkdir -p "$JR_TRAINER_TARGET"
+cp -a "$JR_TRAINER_SOURCE/." "$JR_TRAINER_TARGET/"
+chmod +x "$JR_TRAINER_TARGET/start.sh" "$JR_TRAINER_TARGET/scripts/jrich-wakeword-trainer"
+'
+if ($LASTEXITCODE -ne 0) {
+ throw "Could not install the trainer into the WSL2 filesystem."
+}
+
+& wsl.exe --cd $target ./start.sh @args
+exit $LASTEXITCODE
diff --git a/start.sh b/start.sh
new file mode 100755
index 0000000..4f103fb
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+trainer_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+
+if ! command -v python3 >/dev/null 2>&1; then
+ echo "Python 3.11 or newer is required. Install it, then run this file again." >&2
+ exit 1
+fi
+
+exec python3 "$trainer_root/scripts/jrich-wakeword-trainer" "$@"