Files
juzi/graphify-out/cache/ast/v0.9.33/8430ebff9c4a15cc4977a112d8b96974f46cb80fbc4e859e41ee4aed6e070151.json
T
2026-09-28 09:02:32 +08:00

1 line
17 KiB
JSON

{"nodes": [{"id": "$graphify-root$_tools_gen_voice_py", "label": "gen_voice.py", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L1"}, {"id": "$graphify-root$_tools_gen_voice_trim_edges", "label": "trim_edges()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L59", "_callable": true}, {"id": "ndarray", "label": "ndarray", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/tools/gen_voice.py"}, {"id": "$graphify-root$_tools_gen_voice_to_mp3", "label": "to_mp3()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L71", "_callable": true}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/tools/gen_voice.py"}, {"id": "$graphify-root$_tools_gen_voice_normalize_clip", "label": "normalize_clip()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L115", "_callable": true}, {"id": "$graphify-root$_tools_gen_voice_write_mp3", "label": "write_mp3()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L127", "_callable": true}, {"id": "$graphify-root$_tools_gen_voice_gen_countdown", "label": "gen_countdown()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L136", "_callable": true}, {"id": "$graphify-root$_tools_gen_voice_main", "label": "main()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L162", "_callable": true}, {"id": "$graphify-root$_tools_gen_voice_rationale_60", "label": "\u88c1\u6389\u8fc7\u957f\u9996\u5c3e\u9759\u97f3\uff0c\u4fdd\u7559 \u2264150ms \u8fb9\u6cbf\uff0c\u907f\u514d\u63d0\u793a\u663e\u8fdf\u949d\u3002", "file_type": "rationale", "source_file": "tools/gen_voice.py", "source_location": "L60"}, {"id": "$graphify-root$_tools_gen_voice_rationale_72", "label": "\u54cd\u5ea6\u5f52\u4e00 \u221216 LUFS + \u8f6c MP3 48k CBR mono 22050Hz\u3002", "file_type": "rationale", "source_file": "tools/gen_voice.py", "source_location": "L72"}, {"id": "$graphify-root$_tools_gen_voice_rationale_137", "label": "\u5012\u8ba1\u65f6\u5355\u72ec\u6309\u5b57\u751f\u6210\u518d\u62fc\u63a5\uff0c\u907f\u514d\u300c\u4e09\u3001\u4e8c\u3001\u4e00\u300d\u6574\u53e5\u88ab\u8bfb\u6210\u64ad\u62a5\u8154\u3001\u4e0e\u63d0\u793a\u97f3\u6c14\u8d28\u6f02\u79fb\u3002 \u4e0e\u63d0\u793a\u97f3\u5171\u7528\u540c\u4e00 speaker + instruct\uff1b\u53e5\u95f4\u7559\u7ea6\u2026", "file_type": "rationale", "source_file": "tools/gen_voice.py", "source_location": "L137"}], "edges": [{"source": "$graphify-root$_tools_gen_voice_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L11", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L12", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "subprocess", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L13", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "tempfile", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L15", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L16", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "numpy", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L21", "weight": 1.0, "local_alias": "np"}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "soundfile", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L22", "weight": 1.0, "local_alias": "sf"}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "torch", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L23", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "qwen_tts", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "$graphify-root$_tools_gen_voice_trim_edges", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L59", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_trim_edges", "target": "ndarray", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L59", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_trim_edges", "target": "ndarray", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L59", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "$graphify-root$_tools_gen_voice_to_mp3", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L71", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_to_mp3", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L71", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_to_mp3", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L71", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "$graphify-root$_tools_gen_voice_normalize_clip", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L115", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_normalize_clip", "target": "ndarray", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L115", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_normalize_clip", "target": "ndarray", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L115", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "$graphify-root$_tools_gen_voice_write_mp3", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L127", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_write_mp3", "target": "ndarray", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L127", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "$graphify-root$_tools_gen_voice_gen_countdown", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L136", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_gen_countdown", "target": "ndarray", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L136", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_py", "target": "$graphify-root$_tools_gen_voice_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L162", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_normalize_clip", "target": "$graphify-root$_tools_gen_voice_trim_edges", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L116", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_write_mp3", "target": "$graphify-root$_tools_gen_voice_to_mp3", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L131", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_gen_countdown", "target": "$graphify-root$_tools_gen_voice_normalize_clip", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L154", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_main", "target": "$graphify-root$_tools_gen_voice_write_mp3", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L205", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_main", "target": "$graphify-root$_tools_gen_voice_normalize_clip", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L205", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_main", "target": "$graphify-root$_tools_gen_voice_gen_countdown", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L212", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_rationale_60", "target": "$graphify-root$_tools_gen_voice_trim_edges", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L60", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_rationale_72", "target": "$graphify-root$_tools_gen_voice_to_mp3", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L72", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_rationale_137", "target": "$graphify-root$_tools_gen_voice_gen_countdown", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L137", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_tools_gen_voice_trim_edges", "callee": "where", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L62", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_to_mp3", "callee": "run", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L74", "receiver": "subprocess"}, {"caller_nid": "$graphify-root$_tools_gen_voice_to_mp3", "callee": "rfind", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L86", "receiver": "err"}, {"caller_nid": "$graphify-root$_tools_gen_voice_to_mp3", "callee": "rfind", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L87", "receiver": "err"}, {"caller_nid": "$graphify-root$_tools_gen_voice_to_mp3", "callee": "RuntimeError", "is_member_call": false, "source_file": "tools/gen_voice.py", "source_location": "L89", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_to_mp3", "callee": "loads", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L90", "receiver": "json"}, {"caller_nid": "$graphify-root$_tools_gen_voice_to_mp3", "callee": "run", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L100", "receiver": "subprocess"}, {"caller_nid": "$graphify-root$_tools_gen_voice_normalize_clip", "callee": "reshape", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L116", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_normalize_clip", "callee": "asarray", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L116", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_normalize_clip", "callee": "RuntimeError", "is_member_call": false, "source_file": "tools/gen_voice.py", "source_location": "L119", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_normalize_clip", "callee": "concatenate", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L123", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_normalize_clip", "callee": "zeros", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L123", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_write_mp3", "callee": "write", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L130", "receiver": "sf"}, {"caller_nid": "$graphify-root$_tools_gen_voice_write_mp3", "callee": "stat", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L133", "receiver": "mp3_path"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "generate_custom_voice", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L144", "receiver": "model"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "SPEAKER", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/gen_voice.py", "source_location": "L147"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "INSTRUCT", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/gen_voice.py", "source_location": "L148"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "zeros", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L151", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "append", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L155", "receiver": "parts"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "append", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L157", "receiver": "parts"}, {"caller_nid": "$graphify-root$_tools_gen_voice_gen_countdown", "callee": "concatenate", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L159", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L165", "receiver": "argparse"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "add_argument", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L166", "receiver": "ap"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "parse_args", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L171", "receiver": "ap"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "strip", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L172", "receiver": "x"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "split", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L172", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "strip", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L172", "receiver": "x"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "mkdir", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L178", "receiver": "OUT_DIR"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "mkdir", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L179", "receiver": "STAGING"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "from_pretrained", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L182", "receiver": "Qwen3TTSModel"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "generate_custom_voice", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L196", "receiver": "model"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "SPEAKER", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/gen_voice.py", "source_location": "L199"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "INSTRUCT", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "tools/gen_voice.py", "source_location": "L200"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "is_file", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L220", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "write_text", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L223", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "dumps", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L224", "receiver": "json"}]}