Repository Analysis

remsky/Kokoro-FastAPI

Dockerized FastAPI wrapper for Kokoro-82M text-to-speech model w/multiplatform CPU, AMD, NVIDIA GPU PyTorch support; voice-mixing, auto-stitching, captioned timestamps

24.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of remsky/Kokoro-FastAPI, a Python project with 5,283 GitHub stars. SynthScan v2.0 examined 27,157 lines of code across 199 source files, recording 487 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 24.8 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

24.8
Adjusted Score
24.8
Raw Score
100%
Time Factor
2026-08-02
Last Push
5.3K
Stars
Python
Language
27.2K
Lines of Code
199
Files
487
Pattern Hits
2026-08-02
Scan Date
0.10
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 19MEDIUM 62LOW 406

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 487 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Excessive Try-Catch Wrapping157 hits · 225 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md557 print(f"Error: {response.text}")CODE
LOWREADME.md574except Exception as e:CODE
MEDIUMREADME.md575 print(f"Error: {e}")CODE
LOWui/lib/files.py64 except Exception as e:CODE
MEDIUMui/lib/files.py65 print(f"Error saving file: {e}")CODE
LOWui/lib/files.py77 except Exception as e:CODE
MEDIUMui/lib/files.py78 print(f"Error deleting input files: {e}")CODE
LOWui/lib/files.py90 except Exception as e:CODE
MEDIUMui/lib/files.py91 print(f"Error deleting output files: {e}")CODE
LOWui/lib/files.py122 except Exception as e:CODE
MEDIUMui/lib/files.py123 print(f"Error saving uploaded file: {e}")CODE
LOWui/lib/interface.py79 except Exception as e:CODE
MEDIUMui/lib/interface.py80 print(f"Error in status update: {str(e)}")CODE
MEDIUMui/lib/interface.py47def update_status():CODE
LOWui/lib/handlers.py37 except Exception as e:CODE
MEDIUMui/lib/handlers.py38 print(f"Error in refresh status: {str(e)}")CODE
LOWui/lib/handlers.py55 except Exception as e:CODE
MEDIUMui/lib/handlers.py56 print(f"Error reading file: {e}")CODE
LOWui/lib/handlers.py93 except Exception as e:CODE
MEDIUMui/lib/handlers.py94 print(f"Error handling file: {e}")CODE
MEDIUMui/lib/handlers.py12def refresh_status():CODE
LOWui/lib/api.py34 except Exception as e:CODE
LOWui/lib/api.py79 except Exception as e:CODE
LOWdocker/scripts/download_model.py66 except Exception:CODE
LOWdocker/scripts/download_model.py124 except Exception as e:CODE
LOWdocker/rocm/warmup_miopen.py65 except Exception as e:CODE
LOWexamples/simul_file_test.py33 except Exception as e:CODE
MEDIUMexamples/simul_file_test.py34 print(f"Error processing file {file_id}: {e}")CODE
LOWexamples/stream_tts_playback.py109 except Exception as e:CODE
MEDIUMexamples/stream_tts_playback.py110 print(f"Error during streaming: {str(e)}")CODE
MEDIUMexamples/captioned_speech_example.py33 print(f"Error response: {response.text}")CODE
MEDIUMexamples/captioned_speech_example.py46 print("Error: Empty audio content")CODE
MEDIUMexamples/captioned_speech_example.py51 print(f"Error parsing timestamps: {e}")CODE
MEDIUMexamples/captioned_speech_example.py54 print(f"Error retrieving timestamps: {e}")CODE
MEDIUMexamples/captioned_speech_example.py79 print("Error: No audio data or timestamps generated")CODE
MEDIUMexamples/captioned_speech_example.py100 print(f"Error: {e}\n")CODE
MEDIUMexamples/phoneme_examples/test_phoneme_generation.py41 print(f"Error: API request failed with status code {response.status_code}")CODE
LOWexamples/phoneme_examples/test_phoneme_generation.py44 except Exception as e:CODE
MEDIUMexamples/phoneme_examples/test_phoneme_generation.py45 print(f"An error occurred: {str(e)}")CODE
MEDIUMexamples/phoneme_examples/generate_phonemes.py49 print(f"Error response: {response.text}")CODE
MEDIUMexamples/phoneme_examples/generate_phonemes.py53 print("Error: Empty response content")CODE
MEDIUMexamples/phoneme_examples/generate_phonemes.py94 print("Error: No audio data generated")CODE
MEDIUMexamples/phoneme_examples/generate_phonemes.py110 print(f"Error: {e}\n")CODE
MEDIUMexamples/assorted_checks/validate_wavs.py11 print(f"Error: {result['error']}")CODE
LOWexamples/assorted_checks/validate_wav.py159 except Exception as e:CODE
MEDIUMexamples/assorted_checks/validate_wav.py262 print(f"Error: {result['error']}")CODE
MEDIUMexamples/assorted_checks/generate_readme_plots.py56 print(f"Error: {result['error']}")CODE
LOW…les/assorted_checks/test_formats/test_audio_formats.py94 except Exception as e:CODE
MEDIUM…les/assorted_checks/test_formats/test_audio_formats.py95 print(f"Error plotting waveform for {format_name}: {e}")CODE
LOW…les/assorted_checks/test_formats/test_audio_formats.py299 except Exception as e:CODE
MEDIUM…les/assorted_checks/test_formats/test_audio_formats.py300 print(f"Error writing {fmt} file: {e}")CODE
LOW…ecks/test_combinations/test_analyze_combined_voices.py58 except Exception as e:CODE
MEDIUM…ecks/test_combinations/test_analyze_combined_voices.py59 print(f"Error reading file: {str(e)}")CODE
LOW…ecks/test_combinations/test_analyze_combined_voices.py188 except Exception as e:CODE
MEDIUM…ecks/test_combinations/test_analyze_combined_voices.py189 print(f"Error generating audio for {voice}: {e}")CODE
LOW…ecks/test_combinations/test_analyze_combined_voices.py197 except Exception as e:CODE
MEDIUM…ecks/test_combinations/test_analyze_combined_voices.py198 print(f"Error analyzing {name}: {e}")CODE
LOW…sorted_checks/test_combinations/test_download_voice.py70 except Exception as e:CODE
MEDIUM…sorted_checks/test_combinations/test_download_voice.py71 print(f"Error downloading combination {combo}: {e}")CODE
LOW…cks/benchmarks/benchmark_first_token_stream_unified.py93 except Exception as e:CODE
97 more matches not shown…
Hyper-Verbose Identifiers123 hits · 140 pts
SeverityFileLineSnippetContext
LOWREADME.md549def generate_audio_from_phonemes(phonemes: str, voice: str = "af_bella"):CODE
LOWui/depr_tests/test_components.py9def test_create_model_column_structure():CODE
LOWui/depr_tests/test_components.py29def test_model_column_default_values():CODE
LOWui/depr_tests/test_components.py57def test_model_column_no_voices():CODE
LOWui/depr_tests/test_components.py65def test_create_output_column_structure():CODE
LOWui/depr_tests/test_components.py91def test_output_column_configuration():CODE
LOWui/depr_tests/test_input.py7def test_create_input_column_structure():CODE
LOWui/depr_tests/test_input.py39def test_text_input_configuration():CODE
LOWui/depr_tests/test_input.py49def test_file_upload_configuration():CODE
LOWui/depr_tests/test_input.py58def test_button_configurations():CODE
LOWui/depr_tests/test_files.py25def test_list_input_files_empty(mock_dirs):CODE
LOWui/depr_tests/test_files.py46def test_list_output_files_empty(mock_dirs):CODE
LOWui/depr_tests/test_files.py66def test_read_text_file_empty_filename(mock_dirs):CODE
LOWui/depr_tests/test_files.py71def test_read_text_file_nonexistent(mock_dirs):CODE
LOWui/depr_tests/test_files.py76def test_read_text_file_success(mock_dirs):CODE
LOWui/depr_tests/test_files.py91def test_save_text_auto_filename(mock_dirs):CODE
LOWui/depr_tests/test_files.py106def test_save_text_custom_filename(mock_dirs):CODE
LOWui/depr_tests/test_files.py115def test_save_text_duplicate_filename(mock_dirs):CODE
LOWui/depr_tests/test_files.py131def test_delete_all_input_files(mock_dirs):CODE
LOWui/depr_tests/test_files.py146def test_delete_all_output_files(mock_dirs):CODE
LOWui/depr_tests/test_files.py161def test_process_uploaded_file_empty_path(mock_dirs):CODE
LOWui/depr_tests/test_files.py166def test_process_uploaded_file_invalid_extension(mock_dirs, tmp_path):CODE
LOWui/depr_tests/test_files.py173def test_process_uploaded_file_success(mock_dirs, tmp_path):CODE
LOWui/depr_tests/test_files.py185def test_process_uploaded_file_duplicate(mock_dirs, tmp_path):CODE
LOWui/depr_tests/test_api.py27def test_check_api_status_success(mock_response):CODE
LOWui/depr_tests/test_api.py36def test_check_api_status_no_voices(mock_response):CODE
LOWui/depr_tests/test_api.py44def test_check_api_status_timeout():CODE
LOWui/depr_tests/test_api.py52def test_check_api_status_connection_error():CODE
LOWui/depr_tests/test_api.py60def test_text_to_speech_success(mock_response, tmp_path):CODE
LOWui/depr_tests/test_api.py75def test_text_to_speech_empty_text():CODE
LOWui/depr_tests/test_api.py81def test_text_to_speech_timeout():CODE
LOWui/depr_tests/test_api.py88def test_text_to_speech_request_error():CODE
LOWui/depr_tests/test_api.py95def test_get_status_html_available():CODE
LOWui/depr_tests/test_api.py102def test_get_status_html_unavailable():CODE
LOWui/depr_tests/test_api.py109def test_text_to_speech_api_params(mock_response, tmp_path):CODE
LOWui/depr_tests/test_api.py146def test_text_to_speech_output_filename(mock_response, tmp_path):CODE
LOWui/depr_tests/test_interface.py32def test_create_interface_structure():CODE
LOWui/depr_tests/test_interface.py43def test_interface_html_links():CODE
LOWui/depr_tests/test_interface.py62def test_update_status_available(mock_timer):CODE
LOWui/depr_tests/test_interface.py83def test_update_status_unavailable(mock_timer):CODE
LOWui/depr_tests/test_interface.py129def test_interface_components_presence():CODE
LOWexamples/captioned_speech_example.py11def generate_captioned_speech(CODE
LOWexamples/phoneme_examples/generate_phonemes.py35def generate_audio_from_phonemes(phonemes: str, voice: str = "af_bella") -> Optional[bytes]:CODE
LOW…cks/benchmarks/benchmark_first_token_stream_unified.py17def measure_first_token_requests(CODE
LOW…cks/benchmarks/benchmark_first_token_stream_unified.py98def measure_first_token_openai(CODE
LOWexamples/assorted_checks/benchmarks/lib/stream_utils.py27def process_benchmark_results(CODE
LOWexamples/assorted_checks/benchmarks/lib/shared_utils.py22def check_audio_file_is_silent(audio_path: str, threshold: float = 0.01) -> bool:CODE
LOWapi/tests/test_openai_endpoints.py58def test_load_openai_mappings(mock_json_file):CODE
LOWapi/tests/test_openai_endpoints.py68def test_load_openai_mappings_file_not_found():CODE
LOWapi/tests/test_openai_endpoints.py117async def test_get_tts_service_initialization():CODE
LOWapi/tests/test_openai_endpoints.py139async def test_stream_audio_chunks_client_disconnect():CODE
LOWapi/tests/test_openai_endpoints.py173def test_openai_voice_mapping(mock_tts_service, mock_openai_mappings):CODE
LOWapi/tests/test_openai_endpoints.py192def test_openai_voice_mapping_streaming(CODE
LOWapi/tests/test_openai_endpoints.py215def test_invalid_openai_model(mock_tts_service, mock_openai_mappings):CODE
LOWapi/tests/test_openai_endpoints.py259def test_openai_speech_endpoint(CODE
LOWapi/tests/test_openai_endpoints.py288def test_openai_speech_streaming(mock_tts_service, test_voice, mock_audio_bytes):CODE
LOWapi/tests/test_openai_endpoints.py311def test_openai_speech_pcm_streaming(mock_tts_service, test_voice, mock_audio_bytes):CODE
LOWapi/tests/test_openai_endpoints.py332def test_openai_speech_invalid_voice(mock_tts_service):CODE
LOWapi/tests/test_openai_endpoints.py355def test_openai_speech_empty_text(mock_tts_service, test_voice):CODE
LOWapi/tests/test_openai_endpoints.py381def test_openai_speech_invalid_format(mock_tts_service, test_voice):CODE
63 more matches not shown…
Unused Imports111 hits · 107 pts
SeverityFileLineSnippetContext
LOWui/depr_tests/test_components.py2CODE
LOWui/depr_tests/conftest.py5CODE
LOWui/depr_tests/test_input.py2CODE
LOWui/depr_tests/test_files.py1CODE
LOWui/depr_tests/test_interface.py1CODE
LOWui/depr_tests/test_interface.py1CODE
LOWui/lib/files.py1CODE
LOWui/lib/files.py3CODE
LOWui/lib/components/__init__.py1CODE
LOWui/lib/components/__init__.py2CODE
LOWui/lib/components/__init__.py3CODE
LOWui/lib/components/model.py5CODE
LOWdocker/rocm/warmup_miopen.py19CODE
LOW…ples/streaming_refactor/benchmark_unified_streaming.py7CODE
LOWexamples/phoneme_examples/test_phoneme_generation.py3CODE
LOWexamples/phoneme_examples/generate_phonemes.py2CODE
LOWexamples/phoneme_examples/generate_phonemes.py2CODE
LOWexamples/assorted_checks/validate_wav.py1CODE
LOW…ecks/test_combinations/test_analyze_combined_voices.py2CODE
LOW…sorted_checks/test_combinations/test_download_voice.py2CODE
LOW…amples/assorted_checks/benchmarks/benchmark_tts_rtf.py3CODE
LOW…amples/assorted_checks/benchmarks/benchmark_tts_rtf.py4CODE
LOW…amples/assorted_checks/benchmarks/benchmark_tts_rtf.py8CODE
LOW…es/assorted_checks/benchmarks/benchmark_first_token.py3CODE
LOW…es/assorted_checks/benchmarks/benchmark_first_token.py6CODE
LOW…mples/assorted_checks/benchmarks/depr_benchmark_tts.py2CODE
LOWexamples/assorted_checks/benchmarks/lib/stream_utils.py4CODE
LOWexamples/assorted_checks/benchmarks/lib/stream_utils.py5CODE
LOW…/test_transcription/test_transcription_multilingual.py26CODE
LOW…sorted_checks/test_transcription/test_transcription.py18CODE
LOW…s/assorted_checks/test_transcription/test_long_form.py25CODE
LOWscripts/update_version.py12CODE
LOWscripts/fix_misaki.py5CODE
LOWapi/tests/test_openai_endpoints.py3CODE
LOWapi/tests/test_openai_endpoints.py4CODE
LOWapi/tests/test_openai_endpoints.py11CODE
LOWapi/tests/test_normalizer.py3CODE
LOWapi/tests/conftest.py2CODE
LOWapi/tests/conftest.py3CODE
LOWapi/tests/conftest.py13CODE
LOWapi/tests/test_tts_service.py1CODE
LOWapi/tests/test_tts_service.py5CODE
LOWapi/tests/test_development.py5CODE
LOWapi/tests/test_development.py6CODE
LOWapi/tests/test_kokoro_v1.py5CODE
LOWapi/tests/test_audio_service.py9CODE
LOWapi/tests/integration/conftest.py16CODE
LOWapi/tests/integration/test_voices_endpoint.py8CODE
LOWapi/tests/integration/test_tts_roundtrip.py14CODE
LOWapi/src/main.py8CODE
LOWapi/src/routers/openai_compatible.py8CODE
LOWapi/src/routers/openai_compatible.py9CODE
LOWapi/src/routers/openai_compatible.py14CODE
LOWapi/src/routers/development.py2CODE
LOWapi/src/routers/development.py3CODE
LOWapi/src/routers/development.py4CODE
LOWapi/src/routers/development.py5CODE
LOWapi/src/routers/development.py6CODE
LOWapi/src/routers/development.py6CODE
LOWapi/src/routers/development.py6CODE
51 more matches not shown…
Docstring Block Structure19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHapi/src/routers/openai_compatible.py616Combine multiple voices into a new voice and return the .pt file. Args: request: Either a string with voiceSTRING
HIGHapi/src/core/paths.py22Find file in search paths. Args: filename: Name of file to find search_paths: List of paths to searSTRING
HIGHapi/src/core/paths.py82Get path to model file. Args: model_name: Name of model file Returns: Absolute path to model fSTRING
HIGHapi/src/core/paths.py110Get path to voice file. Args: voice_name: Name of voice file (without .pt extension) Returns: STRING
HIGHapi/src/core/paths.py168Load voice tensor from file. Args: voice_path: Path to voice file device: Device to load tensor to STRING
HIGHapi/src/core/paths.py210Load JSON file asynchronously. Args: path: Path to JSON file Returns: Parsed JSON data RaSTRING
HIGHapi/src/core/paths.py230Load model weights asynchronously. Args: path: Path to model file (.pth or .onnx) device: Device toSTRING
HIGHapi/src/core/paths.py251Read text file asynchronously. Args: path: Path to file Returns: File contents as string STRING
HIGHapi/src/core/paths.py270Read file as bytes asynchronously. Args: path: Path to file Returns: File contents as bytes STRING
HIGHapi/src/core/paths.py289Get path to web static file. Args: filename: Name of file in web directory Returns: Absolute pSTRING
HIGHapi/src/core/paths.py379Get path to temporary audio file. Args: filename: Name of temp file Returns: Absolute path to STRING
HIGHapi/src/inference/voice_manager.py26Get path to voice file. Args: voice_name: Name of voice Returns: Path to voiceSTRING
HIGHapi/src/inference/voice_manager.py42Load voice tensor. Args: voice_name: Name of voice to load device: Optional override foSTRING
HIGHapi/src/inference/voice_manager.py66Combine multiple voices. Args: voices: List of voice names to combine device: Optional STRING
HIGHapi/src/inference/model_manager.py48Initialize and warm up model. Args: voice_manager: Voice manager instance for warmup ReturSTRING
HIGHapi/src/inference/kokoro_v1.py175Generate audio from phoneme tokens. Args: tokens: Input phoneme tokens to synthesize voSTRING
HIGHapi/src/inference/kokoro_v1.py274Generate audio using model. Args: text: Input text to synthesize voice: Either a voice STRING
HIGHapi/src/inference/base.py61Generate audio from text. Args: text: Input text to synthesize voice: Either a voice paSTRING
HIGHapi/src/services/tts_service.py181Get voice path, handling combined voices. Args: voice: Voice name or combined voice names (e.g., 'aSTRING
Redundant / Tautological Comments26 hits · 40 pts
SeverityFileLineSnippetContext
LOWui/lib/interface.py15 # Check if local saving is disabledCOMMENT
LOWui/lib/handlers.py68 # Read the file contentCOMMENT
LOWdocker/scripts/download_model.sh78# Check if files already exist and are validCOMMENT
LOWdocker/scripts/download_model.py86 # Check if files already exist and are validCOMMENT
LOWdocker/rocm/kdb_install.sh27# Check if Torch installation path existsCOMMENT
LOWdocker/rocm/kdb_install.sh60 # Check if files were downloaded. No KDB files in repo.radeon will result in error.COMMENT
LOWdocker/rocm/kdb_install.sh88 # Check if files were downloaded. No KDB files in repo.radeon will result in error.COMMENT
LOWexamples/simul_file_test.py27 # Open file in binary write modeCOMMENT
LOWexamples/simul_openai_streaming_audio.py55 # Open file in binary write modeCOMMENT
LOW…ples/streaming_refactor/benchmark_unified_streaming.py133 # Print results for this testCOMMENT
LOWexamples/phoneme_examples/test_phoneme_generation.py25 # Check if request was successfulCOMMENT
LOWexamples/assorted_checks/test_normalizer.py302 # Print resultsCOMMENT
LOW…les/assorted_checks/test_formats/test_audio_formats.py281 # Write the file and verify it was written correctlyCOMMENT
LOWscripts/update_version.py103 # Check if quotes were consistent (both present or both absent)COMMENT
LOWscripts/update_version.py110 ): # Check if already correct *and* quotedCODE
LOWscripts/fix_misaki.py30# Check if the problematic line existsCOMMENT
LOWapi/src/routers/openai_compatible.py159 # Check if client is still connectedCOMMENT
LOWapi/src/routers/openai_compatible.py209 # Check if streaming is requested (default for OpenAI client)COMMENT
LOWapi/src/routers/openai_compatible.py560 # Check if requested model existsCOMMENT
LOWapi/src/routers/openai_compatible.py630 # Check if local voice saving is allowedCOMMENT
LOWapi/src/routers/openai_compatible.py644 # Check if it's an OpenAI voice nameCOMMENT
LOWapi/src/routers/development.py186 # Check if streaming is requested (default for OpenAI client)COMMENT
LOWapi/src/routers/web_player.py46 # Read file contentCOMMENT
LOWapi/src/services/tts_service.py173 # Check if the path is None and raise a ValueError if it is notCOMMENT
LOWapi/src/services/text_processing/text_processor.py308 # Check if the next part is a pause duration stringCOMMENT
LOWapi/src/services/text_processing/text_processor.py311 # Check if it looks like a valid number string captured by the regex groupCOMMENT
Deep Nesting28 hits · 26 pts
SeverityFileLineSnippetContext
LOWui/lib/components/input.py8CODE
LOWdocker/scripts/download_model.py70CODE
LOWexamples/stream_tts_playback.py11CODE
LOWexamples/phoneme_examples/test_phoneme_generation.py5CODE
LOWexamples/phoneme_examples/generate_phonemes.py59CODE
LOWexamples/assorted_checks/validate_wavs.py27CODE
LOWexamples/assorted_checks/validate_wav.py10CODE
LOW…les/assorted_checks/test_formats/test_audio_formats.py52CODE
LOW…cks/benchmarks/benchmark_first_token_stream_unified.py17CODE
LOW…cks/benchmarks/benchmark_first_token_stream_unified.py98CODE
LOW…sorted_checks/benchmarks/lib/shared_benchmark_utils.py31CODE
LOWexamples/assorted_checks/benchmarks/lib/stream_utils.py107CODE
LOWexamples/assorted_checks/benchmarks/lib/shared_utils.py150CODE
LOWscripts/update_version.py56CODE
LOWscripts/update_version.py158CODE
LOWapi/src/routers/openai_compatible.py175CODE
LOWapi/src/routers/development.py79CODE
LOWapi/src/routers/development.py162CODE
LOWapi/src/core/paths.py50CODE
LOWapi/src/core/paths.py353CODE
LOWapi/src/inference/kokoro_v1.py20CODE
LOWapi/src/inference/kokoro_v1.py266CODE
LOWapi/src/services/tts_service.py48CODE
LOWapi/src/services/tts_service.py180CODE
LOWapi/src/services/tts_service.py259CODE
LOWapi/src/services/tts_service.py466CODE
LOWapi/src/services/temp_manager.py14CODE
LOWapi/src/services/text_processing/text_processor.py136CODE
Decorative Section Separators4 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMapi/tests/test_model_unload.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMapi/tests/test_model_unload.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMapi/tests/test_model_unload.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMapi/tests/test_model_unload.py189# ---------------------------------------------------------------------------COMMENT
Over-Commented Block9 hits · 9 pts
SeverityFileLineSnippetContext
LOWstart-cpu.sh21# Apply the misaki patch to fix possible EspeakWrapper issue in older versionsCOMMENT
LOWdocker/docker-compose.test.yml1name: kokoro-fastapi-testCOMMENT
LOWdocker/gpu/docker-compose.yml41 # - "7860:7860"COMMENT
LOWdocker/cpu/docker-compose.yml21 - API_LOG_LEVEL=DEBUGCOMMENT
LOWdocker/cpu/docker-compose.yml41 # - API_HOST=kokoro-tts # Set TTS service URLCOMMENT
LOWdocker/rocm/docker-compose.yml21 # `docker compose down`; `docker compose down -v` clears them. InspectCOMMENT
LOWdocker/rocm/docker-compose.yml41 # See: https://github.com/ROCm/MIOpen/blob/develop/docs/conceptual/tuningdb.rstCOMMENT
LOWcharts/kokoro-fastapi/examples/aks-tls-values.yaml1# Tested onCOMMENT
LOW.github/workflows/release.yml181 REPO="${{ env.REPO }}"COMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMexamples/simul_speaker_test.py10# Create a shared PyAudio instanceCOMMENT
MEDIUMexamples/simul_openai_streaming_audio.py11# Create a shared PyAudio instanceCOMMENT
MEDIUMexamples/phoneme_examples/generate_phonemes.py21 # Create the request payloadCOMMENT
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWui/lib/components/__init__.py5__all__ = ["create_input_column", "create_model_column", "create_output_column"]CODE
LOWapi/src/core/__init__.py3__all__ = ["settings"]CODE
LOWapi/src/structures/__init__.py10__all__ = [CODE
LOWapi/src/inference/__init__.py7__all__ = [CODE
LOWapi/src/services/__init__.py3__all__ = ["TTSService"]CODE
LOWapi/src/services/text_processing/__init__.py14__all__ = [CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocker/docker-compose.test.yml3# Test orchestration. Brings up the Kokoro server and the Whisper-equippedCOMMENT