# for all class/function included in this repo, we use !<name> or !<new> for intialization, so that user may find all corresponding class/function according to one single yaml.
# for system/third_party class/function, we do not require this.
# for all class/function included in this repo, we use !<name> or !<new> for intialization, so that user may find all corresponding class/function according to one single yaml.
# for system/third_party class/function, we do not require this.
# for all class/function included in this repo, we use !<name> or !<new> for intialization, so that user may find all corresponding class/function according to one single yaml.
# for system/third_party class/function, we do not require this.
electro_1 <|90.00|><|chorus|><|A dynamic blend of electronic beats and drum and bass rhythms.|><|120.00|>
jazz_1 <|30.00|><|verse1|><|A smooth blend of contemporary jazz with soulful undertones, evoke a relaxed and sophisticated atmosphere.|><|60.00|>
instrumental_1 <|0.00|><|intro|><|A soothing piano instrumental with a melancholic feel, evoke a sense of longing, complemented by light and serene instrumental solos.|><|30.00|>
1 <|30.0|><|verse|><|Experience soothing and sensual instrumental jazz with a touch of Bossa Nova, perfect for a relaxing restaurant or spa ambiance.|><|60.0|>
2 <|0.0|><|intro|><|A delightful collection of classical keyboard music, purely instrumental, exuding a timeless and elegant charm.|><|30.0|>
3 <|120.0|><|chorus|><|The instrumental rap track exudes a classic boom bap vibe, characterized by its French hip-hop roots and a smooth, rhythmic flow.|><|150.0|>
4 <|300.0|><|outro|><|The music exudes a vibrant and sophisticated jazz ambiance, characterized by the rich, dynamic sounds of a big band ensemble. With instrumental purity and a touch of classical influence, it offers a captivating listening experience.|><|330.0|>
parser.add_argument('--prompt_data',required=True,help='prompt data file')
parser.add_argument('--flow_model',default=None,required=False,help='flow model file')
parser.add_argument('--llm_model',default=None,required=False,help='flow model file')
parser.add_argument('--music_tokenizer',required=True,help='music tokenizer model file')
parser.add_argument('--wavtokenizer',required=True,help='wavtokenizer model file')
parser.add_argument('--chorus',default="random",required=False,help='chorus tag generation mode, eg. random, verse, chorus, intro.')
parser.add_argument('--fast',action='store_true',required=False,help='True: fast inference mode, without flow matching for fast inference. False: normal inference mode, with flow matching for high quality.')
parser.add_argument('--fp16',default=True,type=bool,required=False,help='inference with fp16 model')
parser.add_argument('--fade_out',default=True,type=bool,required=False,help='add fade out effect to generated audio')
parser.add_argument('--fade_out_duration',default=1.0,type=float,required=False,help='fade out duration in seconds')
parser.add_argument('--trim',default=False,type=bool,required=False,help='trim the silence ending of generated audio')
help='choose inference task type. text-to-music: text-to-music task. continuation: music continuation task. reconstruct: reconstruction of original music. super_resolution: convert original 24kHz music into 48kHz music.')
parser.add_argument('--result_dir',required=True,help='asr result file')