1 line
10 KiB
JSON
1 line
10 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_main", "label": "main()", "file_type": "code", "source_file": "tools/gen_voice.py", "source_location": "L115", "_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"}], "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_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L115", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_main", "target": "$graphify-root$_tools_gen_voice_trim_edges", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L140", "weight": 1.0}, {"source": "$graphify-root$_tools_gen_voice_main", "target": "$graphify-root$_tools_gen_voice_to_mp3", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tools/gen_voice.py", "source_location": "L155", "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}], "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_main", "callee": "mkdir", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L116", "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": "L117", "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": "L120", "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": "L129", "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": "L132"}, {"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": "L133"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "reshape", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L139", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "asarray", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L139", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "zeros", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L148", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "concatenate", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L149", "receiver": "np"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "write", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L154", "receiver": "sf"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "stat", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L156", "receiver": "mp3_path"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "append", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L158", "receiver": "manifest_ids"}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "write_text", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L161", "receiver": null}, {"caller_nid": "$graphify-root$_tools_gen_voice_main", "callee": "dumps", "is_member_call": true, "source_file": "tools/gen_voice.py", "source_location": "L162", "receiver": "json"}]} |