Skip to content

Commit edaba97

Browse files
Young Hanseyeong-han
authored andcommitted
examples/voxtral_tts: apply lintrunner auto-fixes
ufmt + clang-format whitespace and import-ordering only. No semantic changes. Authored with Claude (Anthropic) assistance.
1 parent 544a873 commit edaba97

5 files changed

Lines changed: 6 additions & 14 deletions

File tree

examples/models/voxtral_tts/CMakeLists.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ endif()
8989
list(APPEND link_libraries tokenizers::tokenizers)
9090

9191
add_executable(
92-
voxtral_tts_runner
93-
main.cpp
94-
voxtral_tts_runner.cpp
95-
wav_writer.cpp
92+
voxtral_tts_runner main.cpp voxtral_tts_runner.cpp wav_writer.cpp
9693
)
9794
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
9895
target_link_options_gc_sections(voxtral_tts_runner)
@@ -102,11 +99,8 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
10299
endif()
103100

104101
target_include_directories(
105-
voxtral_tts_runner PUBLIC
106-
${_common_include_directories}
107-
${EXECUTORCH_ROOT}/third-party/json/include
102+
voxtral_tts_runner PUBLIC ${_common_include_directories}
103+
${EXECUTORCH_ROOT}/third-party/json/include
108104
)
109105
target_link_libraries(voxtral_tts_runner PUBLIC ${link_libraries})
110-
target_compile_options(
111-
voxtral_tts_runner PUBLIC ${_common_compile_options}
112-
)
106+
target_compile_options(voxtral_tts_runner PUBLIC ${_common_compile_options})

examples/models/voxtral_tts/export_voxtral_tts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
from executorch.extension.llm.export.quantize import quantize_model_
4141
from torch.export import Dim, export
4242

43-
4443
# ---------------------------------------------------------------------------
4544
# Export wrappers
4645
# ---------------------------------------------------------------------------

examples/models/voxtral_tts/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import torch.nn.functional as F
2323
from executorch.extension.llm.custom_ops import custom_ops as _custom_ops # noqa: F401
2424

25-
2625
# ---------------------------------------------------------------------------
2726
# Config
2827
# ---------------------------------------------------------------------------

examples/models/voxtral_tts/voice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import numpy as np
44
import torch
55

6-
76
DEFAULT_VOICE_NAME = "neutral_female"
87

98

examples/models/voxtral_tts/wav_writer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ bool WavWriter::Write(const float* samples, std::size_t frame_count) {
5353
file_.write(reinterpret_cast<const char*>(&pcm), sizeof(pcm));
5454
}
5555

56-
data_bytes_ += static_cast<std::uint32_t>(sample_count * sizeof(std::int16_t));
56+
data_bytes_ +=
57+
static_cast<std::uint32_t>(sample_count * sizeof(std::int16_t));
5758
return file_.good();
5859
}
5960

0 commit comments

Comments
 (0)