1import{H as e,r as t,k as a,a2 as l,a6 as n,p as s,af as i,ad as r,V as o,ah as c,a3 as u,a4 as p,W as d,ag as v,ai as m,ab as g,ac as y,ak as b,aE as f,ae as h,an as G,ao as w,u as k,aa as q}from"./CF0HNS9x.js";import{_ as x}from"./CoV6LhOW.js";import{u as _}from"./DtlkWaAH.js";import{f as C,g as R,u as S,c as A,a as T,b as P,e as L,_ as j}from"./BfggIaMj.js";import{_ as H}from"./0kTF78ew.js";import{_ as B}from"./CoOENA1x.js";import{_ as M}from"./DHNjmu3_.js";import $ from"./MZmCthI_.js";import"./CZxa8tUy.js";const E={class:"podcast-name"},W={key:0,class:"podcast-name-card"},F={class:"link-box"},I={class:"main-content"},N={class:"text-input-box"},D={class:"field-group"},J={class:"section-label"},V={class:"select-row",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}},O={class:"dropdown-trigger"},U={class:"select-label"},K={class:"selected-label"},z={class:"field-group topic-group"},Q={class:"text-box"},X=["placeholder"],Y={class:"action-row"},Z={key:1,class:"processing content-box"},ee={class:"loader-box"},te={class:"loader-inner"},ae={key:2,class:"state-panel result"},le={class:"result-label"},ne={class:"lyrics-result-wrap"},se={class:"lyrics-result scrollbar Negative"},ie={key:3,class:"processing failed content-box"},re=A(e({inheritAttrs:!1,__name:"LyricsGenerator",props:{showBatchBtn:{type:Boolean,default:!1},preset:{},config:{}},emits:["generate","processing-change"],setup(e,{expose:A,emit:T}){const P=e,L=C(),j=R(),{t:H}=S(),B=_(P.preset??"song"),M=T,$=t("form"),re=t(""),oe=a(()=>{var e,t,a;return{...B.content,...(null==(e=P.config)?void 0:e.content)??{},sectionLabel:(null==(a=null==(t=P.config)?void 0:t.content)?void 0:a.sectionLabel)??"More Options"}}),ce=a(()=>[{key:"theme",label:"Theme",options:[{value:"Random",label:"Random"},{value:"Love",label:"Love"},{value:"Heartbreak",label:"Heartbreak"},{value:"Friendship",label:"Friendship"},{value:"Social issues",label:"Social issues"},{value:"Nature",label:"Nature"},{value:"Adventure",label:"Adventure"},{value:"Personal growth",label:"Personal growth"},{value:"Loss",label:"Loss"},{value:"Celebration",label:"Celebration"},{value:"Fantasy",label:"Fantasy"},{value:"Historical events",label:"Historical events"}]},{key:"language",label:"Language",options:[{value:"English",label:"English"},{value:"Simplified Chinese",label:"Simplified Chinese"},{value:"Traditional Chinese",label:"Traditional Chinese"},{value:"Spanish",label:"Spanish"},{value:"Japanese",label:"Japanese"},{value:"Hindi",label:"Hindi"},{value:"Arabic",label:"Arabic"},{value:"Portuguese",label:"Portuguese"},{value:"Bengali",label:"Bengali"},{value:"Russian",label:"Russian"},{value:"Punjabi",label:"Punjabi"},{value:"German",label:"German"},{value:"Javanese",label:"Javanese"},{value:"Korean",label:"Korean"},{value:"French",label:"French"},{value:"Turkish",label:"Turkish"},{value:"Persian",label:"Persian"},{value:"Italian",label:"Italian"},{value:"Tamil",label:"Tamil"},{value:"Dutch",label:"Dutch"},{value:"Polish",label:"Polish"},{value:"Hebrew",label:"Hebrew"}]},{key:"style",label:"Style",options:[{value:"Random",label:"Random"},{value:"Narrative",label:"Narrative"},{value:"Abstract",label:"Abstract"},{value:"Direct and personal",label:"Direct and personal"},{value:"Philosophical",label:"Philosophical"},{value:"Humorous",label:"Humorous"},{value:"Political",label:"Political"},{value:"Poetic imagery",label:"Poetic imagery"}]},{key:"mood",label:"Mood",options:[{value:"Random",label:"Random"},{value:"Joyful",label:"Joyful"},{value:"Melancholic",label:"Melancholic"},{value:"Reflective",label:"Reflective"},{value:"Angry",label:"Angry"},{value:"Serene",label:"Serene"},{value:"Mysterious",label:"Mysterious"},{value:"Romantic",label:"Romantic"},{value:"Energetic",label:"Energetic"},{value:"Whimsical",label:"Whimsical"},{value:"Suspenseful",label:"Suspenseful"},{value:"Inspirational",label:"Inspirational"}]}]),ue=t("Choose your style:"),pe=t({theme:"Random",language:"English",style:"Random",mood:"Random",topic:""}),de=a(()=>!!pe.value.topic.trim()),ve=async()=>{var e,t;if(de.value){if(!L.isLoggedIn&&!L.temporaryToken)return j.setTemporaryTokenModal(!0,"user-register-youtube-transcript-generator");$.value="processing",M("processing-change",!0),M("generate",{podcastStyle:pe.value.theme,nameStyle:pe.value.style,targetAudience:pe.value.language,topic:pe.value.topic});try{const a=(null==(e=L.userinfo)?void 0:e.token)||L.temporaryToken||"",l=a.startsWith("Bearer ")?a:`Bearer ${a}`,n=`Prompt:${pe.value.topic},Theme:${pe.value.theme},Mood:${pe.value.mood},Style:${pe.value.style},Language:${pe.value.language}`,s=await k().$fetch("https://aimusicgen.fineshare.net/api/lyricsgen",{method:"POST",body:{prompt:n},headers:{Authorization:`Bearer ${l}`}}),i=((null==s?void 0:s.lyrics)||"").trim();if(!i)throw new Error("The model returned no results.");ue.value=(null==(t=null==s?void 0:s.title)?void 0:t.trim())||"Generated Lyrics",me(i)}catch(a){ge()}}},me=e=>{re.value=e,$.value="result",M("processing-change",!1)},ge=()=>{$.value="failed",M("processing-change",!1)},ye=()=>{$.value="form",re.value="",ue.value="Choose your style:",M("processing-change",!1)};return A({showResult:me,showFailed:ge,resetState:ye,setTopic:e=>{$.value="form",pe.value.topic=e}}),(e,t)=>{const a=m,k=v,_=q,C=x;return l(),n("section",E,["form"===s($)?(l(),n("div",W,[i("div",F,[i("div",I,[i("div",N,[i("div",D,[i("p",J,r(s(oe).sectionLabel),1),i("div",V,[(l(!0),n(o,null,c(s(ce),e=>(l(),u(_,{key:e.key,teleported:!1,"max-height":290,class:"custom-select name-select","popper-class":"custom-select-dropdown",placement:"bottom-start",trigger:"click",onCommand:t=>{return a=e.key,l=t,void(pe.value[a]=l);var a,l}},{dropdown:p(()=>[d(k,null,{default:p(()=>[(l(!0),n(o,null,c(e.options,t=>(l(),u(a,{key:t.value,command:t.value,class:g({"is-selected":t.value===s(pe)[e.key]})},{default:p(()=>[y(r(t.label),1)]),_:2},1032,["command","class"]))),128))]),_:2},1024)]),default:p(()=>{return[i("div",O,[i("span",U,r(e.label),1),i("span",K,r((a=e.options,l=s(pe)[e.key],(null==(n=a.find(e=>e.value===l))?void 0:n.label)??"")),1),t[1]||(t[1]=i("span",{class:"dropdown-arrow"},null,-1))])];var a,l,n}),_:2},1032,["onCommand"]))),128))])]),i("div",z,[t[2]||(t[2]=i("p",{class:"section-label"},"Enter topics to inspire your song",-1)),i("div",Q,[b(i("textarea",{class:"scrollbar Negative","onUpdate:modelValue":t[0]||(t[0]=e=>s(pe).topic=e),maxlength:"500",name:"tts-text",placeholder:s(oe).topicPlaceholder},null,8,X),[[f,s(pe).topic]])])])])]),i("div",Y,[d(C,{class:"submit generate-btn",type:"button",icon:"fv-ic-button-generate",onClick:ve,disabled:!s(de)},{default:p(()=>[i("span",null,r("Generate"))]),_:1},8,["disabled"])])])])):h("",!0),"processing"===s($)?(l(),n("div",Z,[i("div",ee,[i("div",te,[(l(),n(o,null,c(24,e=>i("div",{key:e,class:"loader-block",style:G({"--i":e})},null,4)),64))])]),t[3]||(t[3]=i("div",{class:"loader-content"},[i("p",null,"Generating lyrics, please wait..."),i("p",null,"When the lyrics is being generated, please do not close the window")],-1))])):"result"===s($)?(l(),n("div",ae,[i("p",le,r(s(ue)),1),i("div",ne,[i("pre",se,r(s(re)),1)]),i("div",{class:"result-actions"},[i("button",{class:"regenerate-btn",type:"button",onClick:ye},r("Regenerate"))])])):h("",!0),"failed"===s($)?(l(),n("div",ie,[t[4]||(t[4]=i("div",{class:"failed-box"},[i("img",{class:"failed-img",src:"https://webresources.fineshare.net/finevoice3/images/custom/svg-failed.svg",alt:"Generation failed"})],-1)),i("div",{class:"loader-content filed-content"},[i("p",null,r("Generation failed")),i("p",null,r("Something went wrong. Please try again."))]),i("button",{onClick:w(ye,["stop","prevent"]),class:"cancel mt-2"},r("Try Again"))])):h("",!0)])}}}),[["__scopeId","data-v-eb0cacd7"]]),oe={id:"topbanner"},ce={class:"tool-content"},ue={class:"header"},pe={style:{width:"90%",margin:"0 auto"}},de={class:"tool"},ve={class:"tool-bg"},me={class:"tool-audio"},ge={class:"samples-audio"},ye={class:"sample-title"},be={class:"sample-grid"},fe=["disabled","onClick"],he={class:"sample-text"},Ge={class:"custom-seo"},we={class:"trust-content"},ke={class:"mt-16"},qe={class:"seo-title"},xe={class:"more-tools"},_e={class:"mt-16"},Ce={class:"cato-action"},Re={class:"text-gen"},Se={class:"des"},Ae=A(e({__name:"ai-lyrics-generator",setup(e){const{t:u}=S(),v=T(),m=t(null),g=t(!1),b=t(null);P({title:u("t0910.lyricsGenerator.content.title1"),link:[{rel:"canonical",href:"https://finevoice.ai"+v.path}],meta:[{name:"description",content:u("t0910.lyricsGenerator.seo.content1")},{name:"og:title",content:u("t0910.lyricsGenerator.seo.content2")},{name:"og:description",content:u("t0910.lyricsGenerator.seo.content3")},{name:"og:url",content:"https://finevoice.ai"+v.path},{name:"og:image",content:""},{name:"og:image:type",content:"image/jpeg"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:creator",content:"@finevoice_ai"},{name:"twitter:site",content:"@finevoice_ai"}],script:[{type:"application/ld+json",innerHTML:`{\n "@context": "https://schema.org",\n "@type": "WebApplication",\n "name": "${u("t0910.lyricsGenerator.seo.ldName")}",\n "url": "https://finevoice.ai${v.path}",\n "image": "http://fineshare.com/images/nav-finevoice-logo.svg",\n "operatingSystem": "Windows, Mac, Linux, Chromebook, iOS, Android",\n "applicationCategory": "https://schema.org/UtilitiesApplication",\n "aggregateRating": {\n "@type": "AggregateRating",\n "ratingValue": "4.5",\n "worstRating": 1,\n "bestRating": 5,\n "ratingCount": "3645"\n },\n "offers": {\n "@type": "Offer",\n "price": "0.00",\n "priceCurrency": "USD"\n }\n }`}]});const f=t({title:u("t0910.lyricsGenerator.content.title2"),description:u("t0910.lyricsGenerator.content.description1"),button_text:u("t0910.lyricsGenerator.content.button_text1"),Step:[{id:1,step_index:1,photo:{url:"https://webresources.fineshare.net/finevoice3/images/singify-tools/lyrics-step-1.webp",imgAlt:u("t0910.lyricsGenerator.content.imgAlt1")},title:u("t0910.lyricsGenerator.content.title3"),description:u("t0910.lyricsGenerator.content.description2")},{id:2,step_index:2,photo:{url:"https://webresources.fineshare.net/finevoice3/images/singify-tools/lyrics-step-2.webp",imgAlt:u("t0910.lyricsGenerator.content.imgAlt2")},title:u("t0910.lyricsGenerator.content.title4"),description:u("t0910.lyricsGenerator.content.description3")},{id:3,step_index:3,photo:{url:"https://webresources.fineshare.net/finevoice3/images/singify-tools/lyrics-step-3.webp",imgAlt:u("t0910.lyricsGenerator.content.imgAlt3")},title:u("t0910.lyricsGenerator.content.title5"),description:u("t0910.lyricsGenerator.content.description4")}]}),h=[{title:u("t0910.lyricsGenerator.content.title6"),link:"/image-to-music"},{title:u("t0910.lyricsGenerator.content.title7"),link:"/acapella-extractor"},{title:u("t0910.lyricsGenerator.content.title8"),link:"/vocal-remover"},{title:u("t0910.lyricsGenerator.content.title9"),link:"/ai-music-extender"},{title:u("t0910.lyricsGenerator.content.title10"),link:"/key-bpm-finder"},{title:u("t0910.lyricsGenerator.content.title11"),link:"/ai-song-name-generator"},{title:u("t0910.lyricsGenerator.content.title12"),link:"/playlist-name-generator"},{title:u("t0910.lyricsGenerator.content.title13"),link:"/beat-name-generator"},{title:u("t0910.lyricsGenerator.content.title14"),link:"/album-name-generator"},{title:u("t0910.lyricsGenerator.content.title15"),link:"/youtube-channel-name-generator"},{title:u("t0910.lyricsGenerator.content.title16"),link:"/ai-album-cover-generator"},{title:u("t0910.lyricsGenerator.content.title17"),link:"/ai-music-transcription"},{title:u("t0910.lyricsGenerator.content.title18"),link:"/audio-to-midi"},{title:u("t0910.lyricsGenerator.content.title19"),link:"/ai-singing-photo-generator"}],G=a(()=>["Write dreamy lyrics for a love song about falling for someone unexpectedly.","Create catchy lyrics for an indie song about a late-night road trip with no destination.","Generate vibrant dance-pop lyrics about feeling free, living in the moment, and leaving worries behind.","Write cinematic lyrics about two strangers meeting again years after they first crossed paths."]),w=[{question:u("t0910.lyricsGenerator.faq.question1"),answer:u("t0910.lyricsGenerator.faq.answer1")},{question:u("t0910.lyricsGenerator.faq.question2"),answer:u("t0910.lyricsGenerator.faq.answer2")},{question:u("t0910.lyricsGenerator.faq.question3"),answer:u("t0910.lyricsGenerator.faq.answer3")},{question:u("t0910.lyricsGenerator.faq.question4"),answer:u("t0910.lyricsGenerator.faq.answer4")},{question:u("t0910.lyricsGenerator.faq.question5"),answer:u("t0910.lyricsGenerator.faq.answer5")},{question:u("t0910.lyricsGenerator.faq.question6"),answer:u("t0910.lyricsGenerator.faq.answer6")},{question:u("t0910.lyricsGenerator.faq.question7"),answer:u("t0910.lyricsGenerator.faq.answer7")},{question:u("t0910.lyricsGenerator.faq.question8"),answer:u("t0910.lyricsGenerator.faq.answer8")},{question:u("t0910.lyricsGenerator.faq.question9"),answer:u("t0910.lyricsGenerator.faq.answer9")},{question:u("t0910.lyricsGenerator.faq.question10"),answer:u("t0910.lyricsGenerator.faq.answer10")},{question:u("t0910.lyricsGenerator.faq.question11"),answer:u("t0910.lyricsGenerator.faq.answer11")},{question:u("t0910.lyricsGenerator.faq.question12"),answer:u("t0910.lyricsGenerator.faq.answer12")},{question:u("t0910.lyricsGenerator.faq.question13"),answer:u("t0910.lyricsGenerator.faq.answer13")},{question:u("t0910.lyricsGenerator.faq.question14"),answer:u("t0910.lyricsGenerator.faq.answer14")}],k=a(()=>u("t0910.lyricsGenerator.constants.faqTitle")),q=a(()=>u("t0910.lyricsGenerator.constants.ctaTitle")),_=a(()=>u("t0910.lyricsGenerator.constants.ctaDes")),C=a(()=>u("t0910.lyricsGenerator.constants.ctaBtn")),R=()=>{var e;null==(e=m.value)||e.scrollIntoView({behavior:"smooth",block:"start"})},A=e=>{g.value=e};return(e,t)=>{const a=re,v=H,S=B,T=L,P=M,E=x,W=$,F=j;return l(),n(o,null,[i("section",oe,[i("div",{class:"silence-page",ref_key:"toolRef",ref:m},[i("div",ce,[i("div",ue,[i("h1",null,r(s(u)("t0910.lyricsGenerator.template.text1")),1),i("p",pe,r(s(u)("t0910.lyricsGenerator.template.text2")),1)]),i("div",de,[i("div",ve,[i("div",me,[d(a,{ref_key:"songNameRef",ref:b,showBatchBtn:!1,onProcessingChange:A},null,512)])]),i("div",ge,[i("p",ye,r(s(u)("t0910.lyricsGenerator.template.text3")),1),i("div",be,[(l(!0),n(o,null,c(s(G),e=>(l(),n("button",{key:e,type:"button",class:"sample-card",disabled:s(g),onClick:t=>(e=>{var t;g.value||(null==(t=b.value)||t.setTopic(e),R())})(e)},[i("div",he,r(e),1)],8,fe))),128))])])])])],512)]),i("section",Ge,[d(v,null,{default:p(()=>[i("p",we,r(s(u)("t0423.pages.removeSilence.trustContent")),1)]),_:1}),d(S,{data:s(f),onScrollTop:R},null,8,["data"]),i("div",ke,[i("div",qe,[i("h2",null,r(s(u)("t0910.lyricsGenerator.template.text4")),1)]),i("div",xe,[(l(),n(o,null,c(h,e=>d(T,{key:e.link,to:e.link,class:"more-tools-item"},{default:p(()=>
1[y(r(e.title),1)]),_:2},1032,["to"])),64))])]),i("div",_e,[d(P,{list:w},{title:p(()=>[i("h2",null,r(s(k)),1)]),_:1})]),i("div",Ce,[d(W,null,{content:p(()=>[t[0]||(t[0]=i("p",{class:"logo-box"},[i("img",{width:"46px",height:"46px",src:"https://webresources.fineshare.net/finevoice3/images/svg-home-finevoice-logo.svg",alt:"Logo"}),y(" FineVoice ")],-1)),i("p",Re,r(s(q)),1),i("p",Se,r(s(_)),1),d(E,{type:"btm-btn",onClick:R},{default:p(()=>[y(r(s(C)),1)]),_:1})]),_:1})])]),d(F)],64)}}}),[["__scopeId","data-v-4ba607de"]]);export{Ae as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.