pipecat-talksign 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ #
2
+ # Copyright 2026 Talksign
3
+ #
4
+ # SPDX-License-Identifier: Apache-2.0
5
+ #
6
+
7
+ """Talksign sign language avatar for Pipecat."""
8
+
9
+ from ._version import __version__
10
+ from .video import TalksignVideoService
11
+
12
+ __all__ = ["TalksignVideoService", "__version__"]
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
File without changes
@@ -0,0 +1,207 @@
1
+ #
2
+ # Copyright 2026 Talksign
3
+ #
4
+ # SPDX-License-Identifier: Apache-2.0
5
+ #
6
+
7
+ """Talksign video service: an Echo 2.0 avatar that signs the bot's replies."""
8
+
9
+ from __future__ import annotations
10
+
11
+ import asyncio
12
+ import contextlib
13
+ from typing import Any, Literal
14
+
15
+ from loguru import logger
16
+ from pipecat.frames.frames import (
17
+ CancelFrame,
18
+ EndFrame,
19
+ Frame,
20
+ InterruptionFrame,
21
+ LLMFullResponseEndFrame,
22
+ LLMTextFrame,
23
+ OutputImageRawFrame,
24
+ StartFrame,
25
+ TextFrame,
26
+ TTSStoppedFrame,
27
+ TTSTextFrame,
28
+ )
29
+ from pipecat.processors.frame_processor import FrameDirection
30
+ from pipecat.services.ai_service import AIService
31
+ from pipecat.services.settings import ServiceSettings
32
+
33
+ try:
34
+ from talksign import AsyncTalksign
35
+ from talksign.video import EchoFrameSource
36
+ except ModuleNotFoundError as e: # pragma: no cover
37
+ logger.error(f"Exception: {e}")
38
+ logger.error("In order to use Talksign, you need to `pip install pipecat-talksign`.")
39
+ raise ImportError(f"Missing module: {e}") from e
40
+
41
+
42
+ TextSource = Literal["tts", "llm"]
43
+
44
+
45
+ class TalksignVideoService(AIService):
46
+ """Signs the bot's replies in sign language with a Talksign Echo 2.0 avatar.
47
+
48
+ Place it after the TTS service. It reads the text the bot speaks (``TTSTextFrame``; or
49
+ ``LLMTextFrame`` with ``text_source="llm"``), sends it to Echo 2.0 and pushes the avatar's
50
+ video as ``OutputImageRawFrame`` at ``fps`` frames per second. Between answers the avatar
51
+ plays its idle loop. An ``InterruptionFrame`` stops signing at once. Every frame, audio
52
+ included, passes through unchanged, so the bot's voice still plays.
53
+
54
+ Set the output transport's ``video_out_width`` / ``video_out_height`` to ``width`` /
55
+ ``height`` and ``video_out_enabled=True``.
56
+ """
57
+
58
+ def __init__(
59
+ self,
60
+ *,
61
+ api_key: str | None = None,
62
+ avatar: str = "arthur",
63
+ language: str = "asl",
64
+ width: int = 1280,
65
+ height: int = 720,
66
+ fps: float = 30.0,
67
+ text_source: TextSource = "tts",
68
+ base_url: str | None = None,
69
+ client: AsyncTalksign | None = None,
70
+ source_options: dict[str, Any] | None = None,
71
+ **kwargs: Any,
72
+ ) -> None:
73
+ """Initialize the Talksign video service.
74
+
75
+ Args:
76
+ api_key: Talksign API key. Defaults to the ``TALKSIGN_API_KEY`` environment variable.
77
+ avatar: Avatar id, e.g. ``"arthur"``.
78
+ language: Sign language, e.g. ``"asl"``.
79
+ width: Output video width in pixels.
80
+ height: Output video height in pixels.
81
+ fps: Output frame rate.
82
+ text_source: ``"tts"`` signs ``TTSTextFrame`` (what is actually spoken, default);
83
+ ``"llm"`` signs ``LLMTextFrame`` (lower latency; place the service after the LLM).
84
+ base_url: Talksign API base URL. Defaults to ``TALKSIGN_BASE_URL`` or the public API.
85
+ client: An existing ``talksign.AsyncTalksign`` client to use (not closed by the service).
86
+ source_options: Extra keyword arguments for ``talksign.video.EchoFrameSource``
87
+ (e.g. ``crossfade_ms``, ``background``).
88
+ **kwargs: Additional arguments passed to the parent AIService.
89
+ """
90
+ kwargs.setdefault("settings", ServiceSettings(model=None))
91
+ super().__init__(**kwargs)
92
+ if text_source not in ("tts", "llm"):
93
+ raise ValueError('text_source must be "tts" or "llm"')
94
+ self._api_key = api_key
95
+ self._base_url = base_url
96
+ self._avatar = avatar
97
+ self._language = language
98
+ self._width = int(width)
99
+ self._height = int(height)
100
+ self._fps = float(fps)
101
+ self._text_source: TextSource = text_source
102
+ self._client = client
103
+ self._own_client = client is None
104
+ self._source_options = dict(source_options or {})
105
+ self._source: EchoFrameSource | None = None
106
+ self._video_task: asyncio.Task[None] | None = None
107
+ self._need_space = False
108
+ self._end_of_text: type[Frame] = TTSStoppedFrame if text_source == "tts" else LLMFullResponseEndFrame
109
+
110
+ def can_generate_metrics(self) -> bool:
111
+ """Talksign does not report Pipecat metrics yet."""
112
+ return False
113
+
114
+ @property
115
+ def is_signing(self) -> bool:
116
+ """True while the avatar is signing (a word is playing or queued)."""
117
+ return self._source is not None and self._source.is_signing
118
+
119
+ # -- lifecycle --------------------------------------------------------------
120
+ async def start(self, frame: StartFrame) -> None:
121
+ """Opens the Echo stream and starts pushing video frames."""
122
+ await super().start(frame)
123
+ if self._source is not None:
124
+ return
125
+ if self._client is None:
126
+ self._client = AsyncTalksign(api_key=self._api_key, base_url=self._base_url)
127
+ self._source = EchoFrameSource.from_client(
128
+ self._client,
129
+ avatar=self._avatar,
130
+ language=self._language,
131
+ width=self._width,
132
+ height=self._height,
133
+ fps=self._fps,
134
+ **self._source_options,
135
+ )
136
+ self._video_task = self.create_task(self._video_loop(), "talksign_video")
137
+
138
+ async def stop(self, frame: EndFrame) -> None:
139
+ """Stops the video and closes the Echo stream."""
140
+ await super().stop(frame)
141
+ await self._close()
142
+
143
+ async def cancel(self, frame: CancelFrame) -> None:
144
+ """Stops the video and closes the Echo stream at once."""
145
+ await super().cancel(frame)
146
+ await self._close()
147
+
148
+ async def cleanup(self) -> None:
149
+ """Releases everything still open."""
150
+ await super().cleanup()
151
+ await self._close()
152
+
153
+ async def _close(self) -> None:
154
+ source, self._source = self._source, None
155
+ task, self._video_task = self._video_task, None
156
+ if task is not None:
157
+ await self.cancel_task(task)
158
+ if source is not None:
159
+ with contextlib.suppress(Exception):
160
+ await source.aclose()
161
+ if self._own_client and self._client is not None:
162
+ client, self._client = self._client, None
163
+ with contextlib.suppress(Exception):
164
+ await client.aclose()
165
+
166
+ async def _video_loop(self) -> None:
167
+ source = self._source
168
+ assert source is not None
169
+ size = (self._width, self._height)
170
+ try:
171
+ async for image in source:
172
+ await self.push_frame(OutputImageRawFrame(image=image.tobytes(), size=size, format="RGB"))
173
+ except asyncio.CancelledError:
174
+ raise
175
+ except Exception as e:
176
+ await self.push_error(error_msg=f"Talksign video stopped: {e}", exception=e)
177
+
178
+ # -- frames -----------------------------------------------------------------
179
+ def _wants(self, frame: Frame) -> bool:
180
+ if self._text_source == "tts":
181
+ return isinstance(frame, TTSTextFrame)
182
+ return isinstance(frame, LLMTextFrame)
183
+
184
+ def _push_text(self, frame: TextFrame) -> None:
185
+ if self._source is None or not frame.text:
186
+ return
187
+ text = frame.text
188
+ if not frame.includes_inter_frame_spaces and self._need_space and not text[:1].isspace():
189
+ text = " " + text
190
+ self._source.push_text(text)
191
+ self._need_space = not text[-1:].isspace()
192
+
193
+ async def process_frame(self, frame: Frame, direction: FrameDirection) -> None:
194
+ """Feeds the bot's text to Echo and passes every frame through unchanged."""
195
+ await super().process_frame(frame, direction)
196
+
197
+ if direction == FrameDirection.DOWNSTREAM and self._source is not None:
198
+ if isinstance(frame, InterruptionFrame):
199
+ self._source.interrupt()
200
+ self._need_space = False
201
+ elif isinstance(frame, TextFrame) and self._wants(frame):
202
+ self._push_text(frame)
203
+ elif isinstance(frame, self._end_of_text):
204
+ self._source.flush()
205
+ self._need_space = False
206
+
207
+ await self.push_frame(frame, direction)
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.5
2
+ Name: pipecat-talksign
3
+ Version: 0.1.0
4
+ Summary: Talksign sign language avatar for Pipecat: an Echo 2.0 avatar signs your bot's replies.
5
+ Project-URL: Homepage, https://talksign.co
6
+ Project-URL: Documentation, https://github.com/talksign/pipecat-talksign#readme
7
+ Project-URL: Repository, https://github.com/talksign/pipecat-talksign
8
+ Project-URL: Issues, https://github.com/talksign/pipecat-talksign/issues
9
+ Project-URL: Changelog, https://github.com/talksign/pipecat-talksign/blob/main/CHANGELOG.md
10
+ Author: Talksign
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: accessibility,asl,avatar,pipecat,sign language,talksign,voice agent
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Multimedia :: Video
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: pipecat-ai<2,>=1.17
25
+ Requires-Dist: talksign[video]>=0.2.0
26
+ Provides-Extra: dev
27
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
28
+ Requires-Dist: pytest>=8; extra == 'dev'
29
+ Requires-Dist: respx>=0.21; extra == 'dev'
30
+ Requires-Dist: ruff>=0.6; extra == 'dev'
31
+ Description-Content-Type: text/markdown
32
+
33
+ # pipecat-talksign
34
+
35
+ A [Talksign](https://talksign.co) sign language avatar for [Pipecat](https://github.com/pipecat-ai/pipecat).
36
+ Your bot's replies are signed in ASL by an **Echo 2.0** avatar while its voice still plays.
37
+
38
+ ```sh
39
+ pip install pipecat-talksign # then add TalksignVideoService() after your TTS
40
+ ```
41
+
42
+ **Maintainer:** Talksign &middot; **Tested with:** Pipecat 1.17.0 &middot; Python 3.10+
43
+
44
+ ## What it does
45
+
46
+ `TalksignVideoService` is a frame processor that goes right after the TTS service:
47
+
48
+ - reads the text the bot speaks (`TTSTextFrame`) and streams it to Echo 2.0, sentence by sentence;
49
+ - pushes the avatar video as `OutputImageRawFrame` (RGB) at 30 FPS, with the avatar's idle loop between answers;
50
+ - on `InterruptionFrame` (the user barges in) stops signing at once and returns to idle;
51
+ - passes every frame through unchanged, so audio and text reach the transport as before.
52
+
53
+ Sign → text (Palm) is **coming soon**.
54
+
55
+ ## Usage
56
+
57
+ Get an API key in the [Developer Console](https://developer.talksign.co) and set `TALKSIGN_API_KEY`.
58
+
59
+ ```python
60
+ from pipecat_talksign import TalksignVideoService
61
+
62
+ signer = TalksignVideoService(avatar="arthur", language="asl", width=1280, height=720)
63
+
64
+ pipeline = Pipeline(
65
+ [
66
+ transport.input(),
67
+ stt,
68
+ user_aggregator,
69
+ llm,
70
+ tts,
71
+ signer, # after TTS
72
+ transport.output(),
73
+ assistant_aggregator,
74
+ ]
75
+ )
76
+ ```
77
+
78
+ Enable video on the output transport with the same size:
79
+ `video_out_enabled=True, video_out_is_live=True, video_out_width=1280, video_out_height=720`.
80
+
81
+ | Argument | Default | |
82
+ |---|---|---|
83
+ | `api_key` | `TALKSIGN_API_KEY` | Talksign API key |
84
+ | `avatar` | `"arthur"` | Avatar id |
85
+ | `language` | `"asl"` | Sign language |
86
+ | `width`, `height`, `fps` | `1280`, `720`, `30` | Output video |
87
+ | `text_source` | `"tts"` | `"tts"`: sign spoken text (`TTSTextFrame`). `"llm"`: sign `LLMTextFrame` (place after the LLM; lower latency) |
88
+ | `client` | new client | Reuse a `talksign.AsyncTalksign` |
89
+ | `source_options` | `{}` | Extra `talksign.video.EchoFrameSource` options (`crossfade_ms`, `background`, …) |
90
+
91
+ ## Example
92
+
93
+ [`examples/signing_bot.py`](examples/signing_bot.py): Deepgram + OpenAI + Cartesia voice bot with a signing avatar,
94
+ run with the Pipecat development runner (`python examples/signing_bot.py -t daily`).
95
+
96
+ ## Development
97
+
98
+ ```sh
99
+ pip install -e ../talksign-python[video] -e ".[dev]"
100
+ pytest # offline: a fake Talksign API serves tiny ffmpeg-made clips
101
+ ```
102
+
103
+ ## License
104
+
105
+ Apache-2.0
@@ -0,0 +1,8 @@
1
+ pipecat_talksign/__init__.py,sha256=lQJHjiN9OxC0hBiDjL-xFG9sB0mXrv_rMPjRfOt2ln4,246
2
+ pipecat_talksign/_version.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
3
+ pipecat_talksign/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ pipecat_talksign/video.py,sha256=tTX8UD4oBwH787JzE3gpRANhHGzOJxkXPNoe_E2Qbks,8097
5
+ pipecat_talksign-0.1.0.dist-info/METADATA,sha256=BUIcmfCDGU49789SceluHUqD4H24kbTQQsGxCkZ4-jo,3948
6
+ pipecat_talksign-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
7
+ pipecat_talksign-0.1.0.dist-info/licenses/LICENSE,sha256=synCHJDEXNUrXh2EpoBg_t-2jhDfaMPWD8V45V2RNLA,11339
8
+ pipecat_talksign-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Talksign
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.