{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.12.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":37174,"databundleVersionId":3938797,"sourceType":"competition"},{"sourceId":14584906,"sourceType":"datasetVersion","datasetId":9316737}],"dockerImageVersionId":31259,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import os\nimport IPython.display as ipd\n\n# 1. Selection\nprint(\"Select Dataset:\\n1. dlsprint\\n2. md\")\nchoice = input(\"Enter 1 or 2: \")\n\n# 2. Input Handling\nuser_input = input(\"Enter filename: \")\n\n# 3. Path Construction\nfinal_path = \"\"\n\nif choice == '1':\n    if not user_input.endswith('.mp3'):\n        user_input += '.mp3'\n    final_path = os.path.join(\"/kaggle/input/dlsprint/train_files\", user_input)\n\nelif choice == '2':\n    try:\n        parts = user_input.split('_')\n        speaker_id = parts[1]\n        \n        folder_name = f\"{speaker_id}_voice_folder\"\n        filename = f\"{user_input}.mp3\"\n        \n        final_path = os.path.join(\"/kaggle/input/md-set-bn-tts/Voice_folder\", folder_name, filename)\n    except IndexError:\n        print(\"Error: Please use the format 'numbers_id' (e.g., 0002_f1)\")\n\n# 4. Execute Player\nif final_path and os.path.exists(final_path):\n    print(f\"Path identified: {final_path}\")\n    display(ipd.Audio(final_path))\nelse:\n    if final_path:\n        print(f\"File not found at: {final_path}\")","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2026-01-23T19:53:12.427285Z","iopub.execute_input":"2026-01-23T19:53:12.427676Z","iopub.status.idle":"2026-01-23T19:53:18.365670Z","shell.execute_reply.started":"2026-01-23T19:53:12.427645Z","shell.execute_reply":"2026-01-23T19:53:18.364324Z"}},"outputs":[],"execution_count":null},{"cell_type":"markdown","source":"# Example input\n\nfor dlsprint","metadata":{}},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}