CN107220339A - A kind of lyrics word for word display methods - Google Patents

A kind of lyrics word for word display methods Download PDF

Info

Publication number
CN107220339A
CN107220339A CN201710382991.8A CN201710382991A CN107220339A CN 107220339 A CN107220339 A CN 107220339A CN 201710382991 A CN201710382991 A CN 201710382991A CN 107220339 A CN107220339 A CN 107220339A
Authority
CN
China
Prior art keywords
word
lyrics
display
time
chinese character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710382991.8A
Other languages
Chinese (zh)
Inventor
郭艳杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201710382991.8A priority Critical patent/CN107220339A/en
Publication of CN107220339A publication Critical patent/CN107220339A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/685Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention relates to a kind of lyrics word for word display methods, comprise the following steps:Obtain lyrics original text to be shown;Obtain the lyrics and show the time started;Prelude blank time is calculated, the display time started of first character is obtained;From the display time started of first character, word time accounting is word for word calculated;Word for word increase the display time started of the word, form animation and word for word show lyrics log file;Judge which kind of animation effect user selects show;Animation function and corresponding motion picture are called according to judged result, by " the display time started that the word is shown " display " word is " on time in itself.The present invention, word for word show the lyrics and form animation effect, only need to take seldom display space, lyrics attention rate is high, is easily discernible, and will not misunderstand row or can not find which word current institute's singing word is, possesses error correction fault-tolerant ability, the lyrics show that the degree of accuracy is high, enrich the lyrics display selection of user, meet the individual demand of different user.

Description

A kind of lyrics word for word display methods
Technical field
The present invention relates to song subtitling display technology field in iOS system, specifically a kind of lyrics word for word display methods.
Background technology
Existing iOS lyrics parsing, is mostly that the lyrics are shown with tableview, such benefit is:The lyrics can be rolled Dynamic, the selected lyrics can be highlighted, referring to Fig. 4, wherein the highlighted lyrics are " I always looks forward to you herein ", in this example only Show the three row lyrics in scrolling display.
Generally, the lyrics are recorded in lrc files.The lyrics, which are shown on screen, needs at least following steps:
1. the lyrics are parsed:This step parses the lyrics, is put among a dictionary.In addition, generally also having two will note The problem of meaning:One is that the time is converted to the second, and two are for the lyrics parsed according to time-sequencing.
2. Dynamic Announce:After parsing being partially completed of the lyrics, remaining task is exactly Dynamic Announce, how can allow song Word Dynamic Announce, mainly uses following two method:
1)NSTimer classes(Class for realizing timer function)
2)Selected row is moved to centre.
Lrc file formats generally have three kinds, referring to Fig. 1,2,3.It should be noted that:Lrc files also have a kind of lattice in fact Formula, is the effect as KTV, each word one time point of correspondence, but is not in daily use.
Existing lyrics display mode has the following disadvantages:
1st, need to take larger display space, and portable, hand-held device screen itself is just little, therefore such a display mode influences GUI design, and influence usage experience impression.
2nd, the full line lyrics, which are shown, causes to lack attention rate, is easily caused and misunderstands row, is easily caused can not find and is currently sung Which word word is.
3rd, display mode is single, lacks change, easily causes Visual Aesthetics fatigue, lacking individuality selection.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of lyrics word for word display methods, by Word shows the lyrics and forms animation effect, it is only necessary to take seldom display space, and lyrics attention rate is high, is easily discernible, will not see Wrong row or which word can not find current institute's singing word be, possesses error correction fault-tolerant ability, the lyrics show that the degree of accuracy is high, enrich user The lyrics display selection, meet the individual demand of different user.
To achieve the above objectives, the present invention is adopted the technical scheme that:
A kind of lyrics word for word display methods, it is characterised in that comprise the following steps:
Step 1, judge whether user opens the mode that animation word for word shows the lyrics;
Do not open, then using conventional lyrics display mode:Full line shows the lyrics;
Have turned on, go to step 2 carry out animations and word for word show the lyrics;
Step 2, lyrics original text to be shown is obtained;
Step 3, the lyrics are obtained and shows the time started;
Step 4, prelude blank time is calculated, the display time started of first character is obtained;
Step 5, from the display time started of first character, word time accounting is word for word calculated;
Word time accounting=(The word end time-word time started)/ row total time;
Step 6, word for word increase the display time started of the word, form animation and word for word show lyrics log file;
Step 7, judge which kind of animation effect user selects show;
Step 8, animation function and corresponding motion picture are called according to the judged result of step 7, by " display that the word is shown starts Time " display " word is " on time in itself.
On the basis of above-mentioned technical proposal, in step 6, animation is word for word shown in lyrics log file at least including following Content:
The display time started that the word is shown, the word in itself, for splitting " the display time started that the word is shown " and " word Separator ", at least one word in itself belongs to the mark of which row full line lyrics.
On the basis of above-mentioned technical proposal, in step 6, when running into non-Chinese character or non-Chinese character string, at this Increase space after non-Chinese character or non-Chinese character string.
On the basis of above-mentioned technical proposal, when user closes automatic increase space function, then:Run into non-Chinese character Or during non-Chinese character string, if thereafter without space, the space of increase by 0.01 second shows the time.
On the basis of above-mentioned technical proposal, in step 6, when running into non-Chinese character or non-Chinese character string, attempt Mess code detection is carried out, determines whether non-Chinese character or non-Chinese character string need to be converted to Chinese.
It is in step 6, posterior if the two neighboring word time started is identical on the basis of above-mentioned technical proposal Word delays display in 0.1 second.
On the basis of above-mentioned technical proposal, between step 7 and step 8, following process step is also carried out:
Obtain the size for showing lyrics region;
Obtain the length of the current full line lyrics to be shown;
Judge whether the length of the current full line lyrics to be shown exceedes the size in display lyrics region:
Not less than execution step 8;
Have more than, the current full line lyrics to be shown are split as two rows, word for word shown respectively.
The lyrics of the present invention word for word display methods, word for word shows the lyrics and forms animation effect, it is only necessary to take seldom Display space, lyrics attention rate is high, is easily discernible, which word will not misunderstand row or can not find current institute's singing word is, is possessed Error correction fault-tolerant ability, the lyrics show that the degree of accuracy is high, enrich the lyrics display selection of user, meet the personalized need of different user Ask.
Brief description of the drawings
The present invention has drawings described below:
Fig. 1 lrc file formats example 1.
Fig. 2 lrc file formats example 2.
Fig. 3 lrc file formats example 3.
The existing lyrics display effect examples of Fig. 4.
Fig. 5 lyrics display effect examples of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
As shown in figure 5, the lyrics of the present invention word for word display methods, comprises the following steps:
Step 1, judge whether user opens the mode that animation word for word shows the lyrics;
Do not open, then using conventional lyrics display mode:Full line shows the lyrics;
Have turned on, go to step 2 carry out animations and word for word show the lyrics;
Step 2, lyrics original text to be shown is obtained;
Step 3, the lyrics are obtained and shows the time started;
Step 4, prelude blank time is calculated, the display time started of first character is obtained;
Step 5, from the display time started of first character, word time accounting is word for word calculated;
Word time accounting=(The word end time-word time started)/ row total time;
Step 6, word for word increase the display time started of the word, form animation and word for word show lyrics log file;I.e.:To in the lyrics Each word, calculate obtain display time started of the word one by one, collect to form animation and word for word show lyrics log file;
Animation, which is word for word shown, at least includes herein below in lyrics log file:
The display time started that the word is shown, the word in itself, for splitting " the display time started that the word is shown " and " word Separator ", at least one word in itself belongs to the mark of which row full line lyrics;
Step 7, judge which kind of animation effect user selects show;
Step 8, animation function and corresponding motion picture are called according to the judged result of step 7, by " display that the word is shown starts Time " display " word is " on time in itself.
On the basis of above-mentioned technical proposal, in step 6, when running into non-Chinese character or non-Chinese character string, at this Increase space after non-Chinese character or non-Chinese character string.
For example:Increase space after English words.
On the basis of above-mentioned technical proposal, when user closes automatic increase space function, then:Run into non-Chinese character Or during non-Chinese character string, if thereafter without space, the space of increase by 0.01 second shows the time.
On the basis of above-mentioned technical proposal, in step 6, when running into non-Chinese character or non-Chinese character string, attempt Mess code detection is carried out, determines whether non-Chinese character or non-Chinese character string need to be converted to Chinese.
It is in step 6, posterior if the two neighboring word time started is identical on the basis of above-mentioned technical proposal Word delays display in 0.1 second.
On the basis of above-mentioned technical proposal, between step 7 and step 8, following process step is also carried out:
Obtain the size for showing lyrics region;
Obtain the length of the current full line lyrics to be shown;
Judge whether the length of the current full line lyrics to be shown exceedes the size in display lyrics region:
Not less than execution step 8;
Have more than, the current full line lyrics to be shown are split as two rows, word for word shown respectively.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.

Claims (7)

1. a kind of lyrics word for word display methods, it is characterised in that comprise the following steps:
Step 1, judge whether user opens the mode that animation word for word shows the lyrics;
Do not open, then using conventional lyrics display mode:Full line shows the lyrics;
Have turned on, go to step 2 carry out animations and word for word show the lyrics;
Step 2, lyrics original text to be shown is obtained;
Step 3, the lyrics are obtained and shows the time started;
Step 4, prelude blank time is calculated, the display time started of first character is obtained;
Step 5, from the display time started of first character, word time accounting is word for word calculated;
Word time accounting=(The word end time-word time started)/ row total time;
Step 6, word for word increase the display time started of the word, form animation and word for word show lyrics log file;
Step 7, judge which kind of animation effect user selects show;
Step 8, animation function and corresponding motion picture are called according to the judged result of step 7, by " display that the word is shown starts Time " display " word is " on time in itself.
2. the lyrics as claimed in claim 1 word for word display methods, it is characterised in that:In step 6, animation word for word shows that the lyrics are remembered Recording at least includes herein below in file:
The display time started that the word is shown, the word in itself, for splitting " the display time started that the word is shown " and " word Separator ", at least one word in itself belongs to the mark of which row full line lyrics.
3. the lyrics as claimed in claim 1 word for word display methods, it is characterised in that:In step 6, run into non-Chinese character or During non-Chinese character string, space is increased after the non-Chinese character or non-Chinese character string.
4. the lyrics as claimed in claim 3 word for word display methods, it is characterised in that:When user closes automatic increase space function When, then:When running into non-Chinese character or non-Chinese character string, if thereafter without space, the space of increase by 0.01 second is shown Time.
5. the lyrics as claimed in claim 1 word for word display methods, it is characterised in that:In step 6, run into non-Chinese character or During non-Chinese character string, attempt to carry out mess code detection, determine whether non-Chinese character or non-Chinese character string are needed in being converted to Text.
6. the lyrics as claimed in claim 1 word for word display methods, it is characterised in that:In step 6, if two neighboring word is opened Time beginning is identical, then posterior word delays display in 0.1 second.
7. the lyrics as claimed in claim 1 word for word display methods, it is characterised in that:Between step 7 and step 8, also carry out Following process step:
Obtain the size for showing lyrics region;
Obtain the length of the current full line lyrics to be shown;
Judge whether the length of the current full line lyrics to be shown exceedes the size in display lyrics region:
Not less than execution step 8;
Have more than, the current full line lyrics to be shown are split as two rows, word for word shown respectively.
CN201710382991.8A 2017-05-26 2017-05-26 A kind of lyrics word for word display methods Pending CN107220339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710382991.8A CN107220339A (en) 2017-05-26 2017-05-26 A kind of lyrics word for word display methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710382991.8A CN107220339A (en) 2017-05-26 2017-05-26 A kind of lyrics word for word display methods

Publications (1)

Publication Number Publication Date
CN107220339A true CN107220339A (en) 2017-09-29

Family

ID=59944450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710382991.8A Pending CN107220339A (en) 2017-05-26 2017-05-26 A kind of lyrics word for word display methods

Country Status (1)

Country Link
CN (1) CN107220339A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419113A (en) * 2018-05-24 2018-08-17 广州酷狗计算机科技有限公司 Caption presentation method and device
CN109788335A (en) * 2019-03-06 2019-05-21 珠海天燕科技有限公司 Video caption generation method and device
CN110867180A (en) * 2019-10-15 2020-03-06 北京雷石天地电子技术有限公司 System and method for generating word-by-word lyric file based on K-means clustering algorithm
CN111597360A (en) * 2020-05-15 2020-08-28 广州酷狗计算机科技有限公司 Information display method and device, computer equipment and storage medium
CN111835988A (en) * 2019-04-23 2020-10-27 阿里巴巴集团控股有限公司 Subtitle generation method, server, terminal equipment and system
CN111859014A (en) * 2020-06-29 2020-10-30 维沃移动通信有限公司 Data labeling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840727A (en) * 2010-04-28 2010-09-22 深圳市五巨科技有限公司 Mobile terminal music playing method and device for synchronously displaying lyrics
CN102148048A (en) * 2011-05-12 2011-08-10 北京瑞信在线系统技术有限公司 Lyric display method and device
CN102436838A (en) * 2011-08-30 2012-05-02 北京瑞信在线系统技术有限公司 Lyric displaying method and device executed by computer
CN102737683A (en) * 2011-04-01 2012-10-17 腾讯科技(深圳)有限公司 Method for music player to display lyrics and apparatus thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840727A (en) * 2010-04-28 2010-09-22 深圳市五巨科技有限公司 Mobile terminal music playing method and device for synchronously displaying lyrics
CN102737683A (en) * 2011-04-01 2012-10-17 腾讯科技(深圳)有限公司 Method for music player to display lyrics and apparatus thereof
CN102148048A (en) * 2011-05-12 2011-08-10 北京瑞信在线系统技术有限公司 Lyric display method and device
CN102436838A (en) * 2011-08-30 2012-05-02 北京瑞信在线系统技术有限公司 Lyric displaying method and device executed by computer

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419113A (en) * 2018-05-24 2018-08-17 广州酷狗计算机科技有限公司 Caption presentation method and device
CN108419113B (en) * 2018-05-24 2021-01-08 广州酷狗计算机科技有限公司 Subtitle display method and device
CN109788335A (en) * 2019-03-06 2019-05-21 珠海天燕科技有限公司 Video caption generation method and device
CN111835988A (en) * 2019-04-23 2020-10-27 阿里巴巴集团控股有限公司 Subtitle generation method, server, terminal equipment and system
CN110867180A (en) * 2019-10-15 2020-03-06 北京雷石天地电子技术有限公司 System and method for generating word-by-word lyric file based on K-means clustering algorithm
CN110867180B (en) * 2019-10-15 2022-03-29 北京雷石天地电子技术有限公司 System and method for generating word-by-word lyric file based on K-means clustering algorithm
CN111597360A (en) * 2020-05-15 2020-08-28 广州酷狗计算机科技有限公司 Information display method and device, computer equipment and storage medium
CN111597360B (en) * 2020-05-15 2023-11-07 广州酷狗计算机科技有限公司 Information display method, information display device, computer equipment and storage medium
CN111859014A (en) * 2020-06-29 2020-10-30 维沃移动通信有限公司 Data labeling method and device

Similar Documents

Publication Publication Date Title
CN107220339A (en) A kind of lyrics word for word display methods
US8604327B2 (en) Apparatus and method for automatic lyric alignment to music playback
US8924216B2 (en) System and method for synchronizing sound and manually transcribed text
CN106534548B (en) Voice error correction method and device
CN102467939B (en) Song audio frequency cutting apparatus and method thereof
US20180143956A1 (en) Real-time caption correction by audience
CN104850335B (en) Expression curve generation method based on phonetic entry
US9460718B2 (en) Text generator, text generating method, and computer program product
CN106297764B (en) The multilingual mixed Chinese language treatment method of one kind and system
US20140035920A1 (en) Colorization of audio segments
CN110740275B (en) Nonlinear editing system
CN104021152B (en) The image display method and device played based on audio file
CN104347080A (en) Voice analysis method and device, voice synthesis method and device, and medium storing voice analysis program
CN101127210A (en) Method and device for implementing lyric synchronization when broadcasting song
EP1205898A3 (en) Technique for mentoring pre-readers and early readers
CN106407235B (en) A kind of semantic dictionary construction method based on comment data
US7970616B2 (en) Efficient review of data
CN106557298A (en) Background towards intelligent robot matches somebody with somebody sound outputting method and device
CN108549628A (en) The punctuate device and method of streaming natural language information
JP2013073275A (en) Document markup support device, method and program
CN105185377A (en) Voice-based file generation method and device
US7549120B1 (en) Method and system for analyzing a presentation
JP5943436B2 (en) Synchronous processing device and synchronous processing program for text data and read-out voice data
CN102902759A (en) Song processing method and system
CN106297766A (en) Phoneme synthesizing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170929

RJ01 Rejection of invention patent application after publication