Kitten can't handle long input?
conda create -n kitten python=3.11
conda activate kitten
git clone https://github.com/Mrkomiljon/KittenTTS.git
cd .\KittenTTS\
pip install -r requirements.txt
pip install https://github.com/KittenML/KittenTTS/releases/download/0.1/kittentts-0.1.0-py3-none-any.whl
python .\simple_example.py
the code run success.
But when i change the intput to
text = "The golden dawn painted the sky as birds chirped from ancient oak trees. Mist hovered softly over the meadow, where dew-kissed wildflowers swayed in the gentle breeze. By the bubbling creek, a rabbit paused to drink, its nose twitching cautiously. Nearby, an old stone bridge arched gracefully, covered in velvety moss that whispered of timelessness. A farmer walked along the dirt path, his boots crunching rhythmically on the gravel while he hummed a half-forgotten tune. Sunlight filtered through leaves, casting dancing shadows on the forest floor where mushrooms clustered like tiny umbrellas."
get error :
2025-08-11 09:53:28.3446065 [E:onnxruntime:, sequential_executor.cc:572 onnxruntime::ExecuteKernel] Non-zero status code returned while running Expand node. Name:'/bert/Expand' Status Message: invalid expand shape
Traceback (most recent call last):
File "D:\StreamingMedia\TTS\KittenTTS\simple_example.py", line 14, in <module>
audio = model.generate(text, voice='expr-voice-5-f')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\StreamingMedia\TTS\KittenTTS\kittentts\get_model.py", line 37, in generate
return self.model.generate(text, voice=voice, speed=speed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\StreamingMedia\TTS\KittenTTS\kittentts\onnx_model.py", line 102, in generate
outputs = self.session.run(None, onnx_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda3\envs\kitten\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 273, in run
return self._sess.run(output_names, input_feed, run_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running Expand node. Name:'/bert/Expand' Status Message: invalid expand shape
Kitten can't handle long input?
the code run success.
But when i change the intput to
text = "The golden dawn painted the sky as birds chirped from ancient oak trees. Mist hovered softly over the meadow, where dew-kissed wildflowers swayed in the gentle breeze. By the bubbling creek, a rabbit paused to drink, its nose twitching cautiously. Nearby, an old stone bridge arched gracefully, covered in velvety moss that whispered of timelessness. A farmer walked along the dirt path, his boots crunching rhythmically on the gravel while he hummed a half-forgotten tune. Sunlight filtered through leaves, casting dancing shadows on the forest floor where mushrooms clustered like tiny umbrellas."get error :