WO2019223268A1 - Method and device for storing lyric phonetic notations - Google Patents

Method and device for storing lyric phonetic notations Download PDF

Info

Publication number
WO2019223268A1
WO2019223268A1 PCT/CN2018/116591 CN2018116591W WO2019223268A1 WO 2019223268 A1 WO2019223268 A1 WO 2019223268A1 CN 2018116591 W CN2018116591 W CN 2018116591W WO 2019223268 A1 WO2019223268 A1 WO 2019223268A1
Authority
WO
WIPO (PCT)
Prior art keywords
pronunciation
lyrics
polyphonic
word
target lyrics
Prior art date
Application number
PCT/CN2018/116591
Other languages
French (fr)
Chinese (zh)
Inventor
冯穗豫
Original Assignee
腾讯音乐娱乐科技(深圳)有限公司
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 腾讯音乐娱乐科技(深圳)有限公司 filed Critical 腾讯音乐娱乐科技(深圳)有限公司
Priority to SG11202011731PA priority Critical patent/SG11202011731PA/en
Publication of WO2019223268A1 publication Critical patent/WO2019223268A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a method and device for storing lyrics phonetic notation.
  • the lyrics of the lyrics are usually searched in real time and then marked.
  • the pronunciation of the dictionary needs to be checked in real time and the marked pronunciation (may be referred to as Zhuyin) may cause the slower display of lyrics. .
  • the embodiments of the present disclosure provide a method and a device for storing lyrics phonetic notation.
  • the technical solution is as follows:
  • a method for storing lyrics Zhuyin includes:
  • the The start of playing the identifier is determined as the display information of the pronunciation of the polyphonic word. If the playing time of each kana in the pronunciation of the polyphonic word is the same, the first pronunciation of the polyphonic word is obtained. The start playing identifier of the kana is determined to be display information of the pronunciation of the polyphonic word;
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
  • storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  • storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics into an additional part of the target lyrics text includes:
  • the pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  • storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  • a method for storing lyrics Zhuyin includes:
  • any polysyllabic word in the polysyllabic word if the playing time of each kana is different in the pronunciation of the polysyllabic word, then the number of Chinese characters in the polysyllabic word and the The start playing identifier of each polyphonic word in the pronunciation of the polyphonic word is determined as the display information of the pronunciation of the polyphonic word; if the playing duration of each polyphonic name in the pronunciation of the polyphonic word is the same, obtain The number of Chinese characters in the polyphonic word is determined as display information of the pronunciation of the polyphonic word;
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
  • storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  • storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics into an additional part of the target lyrics text includes:
  • the pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  • storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  • a device for storing lyrics Zhuyin includes:
  • An obtaining module configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word;
  • a determining module configured to, for any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, obtaining the The start playing identifier of each hiragana is determined to be display information of the pronunciation of the polyphonic word. If the playing time of each of the hiragana in the pronunciation of the polyphonic word is the same, then the The start playing identifier of the first kana in the pronunciation is determined as the display information of the pronunciation of the polyphonic word;
  • the storage module is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
  • the storage module is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  • the storage module is configured to:
  • the pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  • the storage module is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  • a device for storing lyrics Zhuyin includes:
  • a first receiving module configured to receive a Zhuyin storage request for a target lyrics
  • a first obtaining module configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word in the target lyrics;
  • a first determining module configured to: for any polyphone word in the polyphone word, if the play time of each kana in the pronunciation of the polyphone word is different, obtain the The number of Chinese characters, and the start playing identifier of each kana in the pronunciation of the polyphonic word are determined to be display information of the pronunciation of the polyphonic word; If the playing time is the same, then the number of Chinese characters in the polyphonic word is obtained, and it is determined as the display information of the pronunciation of the polyphonic word;
  • the first storage module is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
  • the first storage module is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  • the first storage module is configured to:
  • the pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  • the first storage module is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  • the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics.
  • Display information without real-time query so it improves the efficiency of displaying lyrics and phonetic notation.
  • FIG. 1 is a flowchart of a method for storing lyrics phonetic notation provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an additional part provided by an embodiment of the present disclosure.
  • FIG. 3 is a schematic diagram of storing a lyrics Zhuyin provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of storing a lyrics Zhuyin provided by an embodiment of the present disclosure
  • FIG. 5 is a flowchart of a method for storing lyrics and phonetic notation provided by an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a device for storing lyrics and Zhuyin provided by an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a device for storing lyrics and Zhuyin provided by an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides a method for storing lyrics Zhuyin.
  • the method is executed by a server, and the server may be a background server of an audio application program.
  • the server can be used to store the audio file of the target audio.
  • the audio file includes audio data and lyrics data.
  • the lyrics data includes the lyrics text and additional parts. The additional parts are used to store authors, singers, and other content.
  • the server may be provided with a processor, a memory, and a transceiver.
  • the processor may be used to process the lyrics process.
  • the memory may be used to store the data needed during the lyrics process and the generated data. send data.
  • an audio application displays lyrics when playing a song.
  • the lyrics of the audio application staff uploads the lyrics data to the background server of the audio application.
  • the server the server can store the lyrics data and the song's audio data in correspondence. Due to some songs, certain words in the lyrics of the song are polyphonic words.
  • the dictionary will be searched to find the polyphonic words, and the polyphonic words will be marked. It may cause the lyrics display to be slow, so for this, a way to pre-store the lyrics Zhuyin is provided.
  • the pronunciation of certain words in the lyrics is different from the most commonly used pronunciation (the most commonly used pronunciation of the word “fate” is “ ⁇ ⁇ ⁇ ⁇ ⁇ ", but the pronunciation of the lyrics is " ⁇ ⁇ ⁇ ").
  • the embodiment of the present disclosure provides a method for storing lyrics phonetic notation.
  • the lyrics use Japanese lyrics as an example.
  • the processing steps of the method can be as follows:
  • Step 101 Receive a Zhuyin storage request of a target lyrics.
  • Zhuyin includes pronunciation and display information of pronunciation.
  • a user may install an audio application program in a terminal, and the audio application program may provide an interface for the user to edit lyrics and pronunciation of polyphonic words.
  • lyrics of a song which may be referred to as the target lyrics later
  • the user can mark the pronunciation of the polyphonic words in the target lyrics, and the start timestamp of each pseudonym in each pronunciation, and then click the submit button, and the terminal will Generate a Zhuyin storage request, and carry the identification of the target lyrics, the pronunciation of the polysyllabic word, and the start timestamp of each kana in each pronunciation. Then send a Zhuyin storage request for the target lyrics to the server.
  • the server can parse and obtain the identification of the target lyrics, the pronunciation of the polyphonic word, and the start timestamp of each pseudonym in each pronunciation.
  • the audio application provides the user with the option to add Zhuyin, and the user wants to add Zhuyin to the lyrics of a song (which can be referred to as the target lyrics later), and can click the Zhuyin option, and the terminal will detect the click instruction of Zhuyin option to generate Zhuyin
  • the storage request carries the identification of the target lyrics in the Zhuyin storage request.
  • the server can parse the identification to the target lyrics.
  • Step 102 Acquire the pronunciation of the polyphonic word in the target lyrics, and determine the playing time of each kana in the pronunciation of the polyphonic word.
  • the playing time is used for the coloring time when rendering the lyrics.
  • the start play identifier is used to indicate that the hiragana starts to play, which may be a start play time stamp, and the like.
  • a hiragana is a kana symbol in Japanese that is used to indicate a polyphonic word. For example, “trip” (Chinese meaning "dipping"), the corresponding pronunciation of the pronunciation is " ⁇ ⁇ ⁇ ”.
  • the server may obtain the pronunciation of the polyphonic word in the target lyrics and the start timestamp of each kana in each pronunciation from the Zhuyin storage request.
  • the server parses and obtains the identifier of the target lyrics from the Zhuyin storage request, it can use the identifier of the target lyrics to find the target lyrics, and then input the target lyrics into the Zhuyin determination program to obtain the polyphonic words of the target lyrics.
  • the start timestamp of each hiragana in each pronunciation (explained in detail later).
  • the start timestamps of two consecutive hiraganas in the polysyllabic pronunciation can be subtracted to obtain the pronunciation of the polysyllabic word except for the last hiragana.
  • the timestamps of other hiraganas, and the timestamp of the last hiragana can be the difference between the start timestamp of the next word of the polyphone word and the start timestamp of the last hiragana.
  • the difference is the last hiragana Playback time. In this way, the playing time of each kana in the pronunciation of the polyphonic word can be obtained.
  • Step 103 For any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, obtain the start playing identifier of each kana in the pronunciation of the polyphonic word , Determine the display information of the pronunciation of the polyphonic word. If the playing time of each kana in the pronunciation of the polyphonic word is the same, obtain the start playing identifier of the first hiragana in the pronunciation of the polyphonic word, and determine as Display information for the pronunciation of polysyllabic words.
  • any polyphonic word in the polyphonic word it can be determined whether the duration of each kana kana is the same. If it is not the same, the start of each polyphonic word in the pronunciation of the polyphonic word can be determined.
  • the play identifier is determined to be display information of the pronunciation of the polyphonic word. If they are the same, the start playing identifier of the first hiragana in the pronunciation of the polyphonic word can be determined as the display information of the pronunciation of the polyphonic word. In this way, for each polyphonic word in the target lyrics, Can be determined in this way.
  • the starting playback identifier of each hiragana can be known.
  • the tripakana of the corresponding pronunciation is " ⁇ ⁇ ⁇ ”
  • the duration of each pronunciation of the pronunciation of "trip” is the same, so you can only store the start timestamp of "ki”
  • you can only store the start timestamp of "ki” In the subsequent process of playing songs, when rendering the pseudonym, use the "Ki" start playback logo and the start time stamp of the next word of "trip” to determine the total duration of "Ki", which can be divided by 3.
  • step 104 the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
  • the server determines the Zhuyin of the target lyrics, based on the identification of the target lyrics, the pronunciation information of the polyphonic words and the display information of the pronunciation of the polyphonic words are stored in correspondence with the target lyrics. In this way, based on the target lyrics, the display information of the pronunciation of the target lyrics and the pronunciation of the polysyllabic words can be obtained subsequently.
  • Method one storing the pronunciation of the polyphonic word and the display information of the pronunciation of the polyphonic word in an additional part of the target lyrics text.
  • the additional part of the target lyrics text may be a lyrics meta segment, which refers to the additional part of the lyrics that has nothing to do with the rendered content of the lyrics.
  • lyrics meta segment refers to the additional part of the lyrics that has nothing to do with the rendered content of the lyrics.
  • the lyrics text In front of it, there are the following contents: the album where the song is located, ar: artist-singer, au: lyricist-composer, by: creator of LRC (lyric) file, etc.
  • the server may obtain an additional part of the target lyrics text based on the identification of the target lyrics, and then in the additional part, according to the recording format of the additional part, the pronunciation of the polysyllabic word and the pronunciation of the polysyllabic word
  • the display information is stored in the additional part of the target lyrics text. For example, as shown in Figure 3, you can use "kana (Chinese meaning” kana "): [start playing mark] Zhenkana [start playing mark] Zhenkana " Format.
  • each line of lyrics in the text of the lyrics corresponds to the pronunciation, and the corresponding processing can be as follows:
  • the server may find each line of lyrics in the body of the target lyrics based on the identification of the target lyrics, and then determine the pronunciation of the polysyllabic words in each line of lyrics, as well as the display information of each pronunciation, and then add multiple lyrics in each line of lyrics.
  • the pronunciation of the phonetic words and the display information of each pronunciation are respectively stored in the additional part of the target lyrics text. For example, as shown in Figure 4, it can be stored in the following format:
  • 2 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the second line
  • 6 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the sixth line.
  • the phonetic includes the pronunciation and the display information of the pronunciation.
  • Method two storing the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics into the Zhuyin file corresponding to the target lyrics.
  • the Zhuyin file is a file used to store the pronunciation of polyphonic words and the display information of the pronunciation.
  • Each lyrics corresponds to a Zhuyin file, which is distinguished by the identifier of the lyrics.
  • the Zhuyin file is still stored, but is empty, or when the pronunciation and the display information of the pronunciation are not stored, there is no Zhuyin file, which is newly created upon storage.
  • the server may obtain the phonetic transcription of the target lyrics based on the identification of the target lyrics, and then display the polyphonic pronunciation and the display information of the polyphonic words in the Zhuyin file according to the text recording format. It is stored in the Zhuyin file, for example, it can be stored in the format of "kana: [starting playback logo] hiragana [starting playback logo] hiragana ".
  • the display information is the start playing identifier of each kana
  • the polyphonic word is " ⁇ ⁇ ⁇ ” (meaning “airport in the rain")
  • the lyrics text is stored as “ (39112) Rain (39803) (40356) Empty (40606) Port (41176) “.
  • the pronunciation of " ⁇ ⁇ ⁇ ” is “ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ", and you can store “kana: (39112) 399 (39921) ⁇ (40356) ⁇ ⁇ (40606) ⁇ ⁇ ", "()" in the additional part or Zhuyin file.
  • the content indicates the start identifier of the immediately following content.
  • (39921) indicates the " ⁇ " start identifier.
  • the pronunciation can be obtained based on the start-play mark, (39112) corresponds to “rain” and “ ⁇ ⁇ ", (40356) corresponds to "empty” and " ⁇ ⁇ ", and so on.
  • the pronunciation can be obtained directly based on the start playback identifier.
  • the display information is the start playing identifier of the first hiragana
  • the polyphonic word is "trip” (meaning “drag” in Chinese)
  • “(40576) trip” is stored in the lyrics text.
  • the pronunciation of “ ⁇ ” is “ ⁇ ⁇ ⁇ ”, and “kana: (40576) ⁇ ⁇ ⁇ ” can be stored in the additional part or Zhuyin file.
  • the three hiraganas are played for the same length, it can be based on (40576) and the word “trip” (If the start playback identifier is a timestamp, the absolute value of the difference between the two timestamps is the total playing time of the three kana names), determine the total playing time of the three kana names, and divide by three, Get the playing time of each of the three hiraganas. In this way, during the subsequent song playback, the pronunciation can be obtained based on the start of the first hiragana, for example, using (40576), you can find the pronunciation is " ⁇ ⁇ ⁇ ", and associate "trip" with " ⁇ ⁇ ⁇ ". correspond.
  • the subsequent playback of the song can use the start of the polyphonic word in the lyrics text. Play the logo. In the Zhuyin file or additional information, find the pronunciation corresponding to the start playback logo, and then display it. In this way, the polyphonic words can be corresponding to the pronunciation.
  • the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics.
  • Display information without real-time query so it improves the efficiency of displaying lyrics and phonetic notation.
  • Another embodiment of the present disclosure provides a method for implicitly storing Zhuyin. As shown in FIG. 5, the corresponding steps may be as follows:
  • Step 501 Receive a Zhuyin storage request for a target lyrics.
  • Zhuyin includes pronunciation and display information of pronunciation.
  • the user may install an audio application program in the terminal, and the audio application program may provide an interface for the user to edit lyrics and pronunciation of polyphonic words.
  • lyrics of a song which may be referred to as the target lyrics later
  • the user can mark the pronunciation of the polyphonic words in the target lyrics, and the start timestamp of each pseudonym in each pronunciation, and then click the submit button, and the terminal will Generate a Zhuyin storage request, and carry the identification of the target lyrics, the pronunciation of the polysyllabic word, and the start timestamp of each kana in each pronunciation. Then send a Zhuyin storage request for the target lyrics to the server.
  • the server can parse and obtain the identification of the target lyrics, the pronunciation of the polyphonic word, and the start timestamp of each pseudonym in each pronunciation.
  • the audio application provides the user with the option to add Zhuyin, and the user wants to add Zhuyin to the lyrics of a song (which can be referred to as the target lyrics later), and can click the Zhuyin option, and the terminal will detect the click instruction of Zhuyin option to generate Zhuyin
  • the storage request carries the identification of the target lyrics in the Zhuyin storage request.
  • the server can parse the identification to the target lyrics.
  • Step 502 Acquire the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word.
  • the playing time is used for the coloring time when rendering the lyrics.
  • the start play identifier is used to indicate that the hiragana starts to play, which may be a start play time stamp, and the like.
  • a hiragana is a kana symbol in Japanese that is used to indicate a polyphonic word. For example, “trip” (Chinese meaning "dipping"), the corresponding pronunciation of the pronunciation is " ⁇ ⁇ ⁇ ”.
  • step 502 For the processing in step 502, refer to the processing in step 102, and details are not described herein again.
  • Step 503 For any polyphone word in the polyphone word, if the playing time of each kana in the pronunciation of the polyphone word is different, then obtain the number of Chinese characters in the polyphone word, and the number of polyphone words. The identification of the start of the play of each kana in the pronunciation is determined as the display information of the pronunciation of the polyphone. If the playing time of each kana in the pronunciation of the polyphone is the same, then the number of Chinese characters in the polyphone is obtained. Display information for the pronunciation of a polyphone word.
  • any polyphonic word in the target lyrics it can be determined whether the duration of each kana kana is the same. If not, the number of Chinese characters in the polyphonic word can be determined, and In the pronunciation of the polyphonic word, the start of each kana name is played, and the pronunciation of the polyphonic word is determined as the display information. If they are the same, the number of Chinese characters in the polyphonic word may be determined, and the display information of the pronunciation of the polyphonic word may be determined.
  • the playing time of the hiragana can also be marked.
  • the display information of the missing piece can be "2 ⁇ (1000,500) ⁇ (1500,500) ⁇ (2000,1000)", 500 , 500, and 1000 respectively represent the playing time of " ⁇ ", " ⁇ ", and " ⁇ ".
  • the playing time identifier can be omitted and storage resources can be saved.
  • Step 504 Store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
  • step 504 For the processing in step 504, refer to the processing in step 104, and details are not described herein again.
  • the display information of the pronunciation of the polyphonic word includes the number of Chinese characters in the polyphonic word.
  • the pronunciation of the polyphonic word needs to be stored in the order of the polyphonic word in the text.
  • the polyphonic word has "owed ⁇ trip” (Chinese means “fragment of fragmentation”).
  • the pronunciation is stored, because "owed” precedes “trip”, the storage order is “owed” in “trip”. "Before, it was” 2 ⁇ ⁇ ⁇ 1 ⁇ ⁇ ⁇ ".
  • Method one storing the pronunciation of the polyphonic word and the display information of the pronunciation of the polyphonic word in an additional part of the target lyrics text.
  • the additional part of the target lyrics text may be a lyrics meta segment, which refers to the additional part of the lyrics that has nothing to do with the rendered content of the lyrics.
  • lyrics meta segment refers to the additional part of the lyrics that has nothing to do with the rendered content of the lyrics.
  • the lyrics of the LRC (lyric) format it precedes the lyrics text.
  • the server may obtain an additional part of the target lyrics text based on the identification of the target lyrics, and then in the additional part, according to the recording format of the additional part, the pronunciation of the polysyllabic word and the pronunciation of the polysyllabic word
  • the display information is stored in the additional part of the target lyrics text.
  • it can be in the format of "kana (Chinese meaning” kana "): [start playing mark] katakana [start playing mark] katakana " storage.
  • each line of lyrics in the text of the lyrics corresponds to the pronunciation, and the corresponding processing can be as follows:
  • the server may find each line of lyrics in the body of the target lyrics based on the identification of the target lyrics, and then determine the pronunciation of the polysyllabic words in each line of lyrics, as well as the display information of each pronunciation, and then add multiple lyrics in each line of lyrics.
  • the pronunciation of the phonetic words and the display information of each pronunciation are respectively stored in the additional part of the target lyrics text.
  • it can be stored in the following format:
  • 2 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the second line
  • 6 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the sixth line.
  • the phonetic includes the pronunciation and the display information of the pronunciation.
  • Method two storing the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics into the Zhuyin file corresponding to the target lyrics.
  • the Zhuyin file is a file used to store the pronunciation of polyphonic words and the display information of the pronunciation.
  • Each lyrics corresponds to a Zhuyin file, which is distinguished by the identifier of the lyrics.
  • the Zhuyin file is still stored, but is empty, or when the pronunciation and the display information of the pronunciation are not stored, there is no Zhuyin file, which is newly created upon storage.
  • the server may obtain the phonetic transcription of the target lyrics based on the identification of the target lyrics, and then display the polyphonic pronunciation and the display information of the polyphonic words in the Zhuyin file according to the text recording format. It is stored in the Zhuyin file, for example, it can be stored in the format of "kana: [starting playback logo] hiragana [starting playback logo] hiragana ".
  • the display information is the number of Chinese characters in the polysyllabic word.
  • the polyphonic word is "trip” (Chinese meaning "dipping"), and "(40576) trip” is stored in the body of the lyrics.
  • the pronunciation of "trip” is “ ⁇ ⁇ ⁇ ”, which can be stored in the additional part or Zhuyin file "Kana: 1 ⁇ ⁇ ⁇ ", "1” means the pronunciation of a word, that is, the pronunciation of "trip”.
  • the display information is the number of Chinese characters in the polysyllabic word, and the start playing identifier of each kana in the pronunciation of the polysyllabic word, and the polysyllabic word is "owed” (Chinese meaning "fragment")
  • the "(40569) owing piece” is stored in the lyrics text.
  • the "under film” is pronounced as “ ⁇ ⁇ ⁇ ”. You can store "kana: 2 ⁇ (1000) ⁇ (1500) ⁇ (2000)” in the additional part or Zhuyin file.
  • “2" means the pronunciation of two words, that is, " Due to the difference in the playing time of the three kana names, it is possible to mark a start mark for each of the kana names, and "1000", “1500”, and “2000” indicate the start of the mark.
  • “kana: 2 ⁇ (1000,500) ⁇ (1500,500) ⁇ (2000,1000)” can be stored in the additional part or Zhuyin file, and 500, 500, and 1000 respectively indicate “ ⁇ ” and " ⁇ ” ",” ⁇ "playing time.
  • the display information is the number of Chinese characters in polysyllabic words, and the start of each hiragana in the pronunciation of polysyllabic words, or the number of Chinese characters in polysyllabic words.
  • the server can obtain the encoding of the lyrics text of the target lyrics, and then determine which words in the target lyrics text are polysyllabic words based on the obtained encoding, and need to mark the pronunciation to determine the first of the target lyrics text.
  • Polysyllabic words then determine the number of Chinese characters in the first polysyllabic word to be the first number in "kana:”, and map the first polysyllabic word to the first pronunciation in "kana:”, And determine the second polyphonic word in the target lyrics text, the number of Chinese characters in the second polyphonic word is the second number in "kana:”, and the second polyphonic word in "kana:”
  • the two pronunciations correspond to, and so on.
  • the first polyphonic word identified in the text of the target lyrics is "owed”
  • the number of Chinese characters is 2
  • the first pronunciation in the Zhuyin is 2 ⁇ ⁇ ⁇ . You can determine " ⁇ ⁇ ⁇ " as the pronunciation of "owed” .
  • the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics.
  • Display information without real-time query so it improves the efficiency of displaying lyrics and phonetic notation.
  • a method for the server to determine the pronunciation of a polyphonic word is also provided.
  • the corresponding processing may be as follows:
  • a dictionary is set in the server, and the pronunciations, prototypes, and parts of speech of multiple polyphonic words are recorded in the dictionary.
  • the pronunciation is different. For example, “think out” in Japanese and “think out” in Japanese (“Memorize” in Chinese) is pronounced as “ ⁇ ⁇ ” and “out” is pronounced as “,”, in “ ⁇ ⁇ ⁇ ⁇ ” (meaning “please remember the memory”) The pronunciation is " ⁇ ⁇ ", and the pronunciation of "out” is " ⁇ ”. Therefore, when actually searching a dictionary, you can use the longest matching principle to look at the next word or multiple words of a polyphone word to get the pronunciation of the polyphone word. In addition, other methods can also be used to determine the multi-tone, here is only a feasible way.
  • the pronunciation when the pronunciation is stored, it may not necessarily be “kana: [start playing mark] katakana [start playing mark] katakana "
  • the additional part of the lyrics text is generally set in front of the lyrics text, and the same can be set behind the lyrics text.
  • an embodiment of the present disclosure further provides a device for storing lyrics Zhuyin, as shown in FIG. 6, the device includes:
  • a receiving module 610 configured to receive a Zhuyin storage request for a target lyrics
  • An obtaining module 620 configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word;
  • a determining module 630 configured to obtain, for any polyphonic word in the polyphonic word, the pronunciation of the polyphonic word if the playing time of each kana is different in the pronunciation of the polyphonic word
  • the start playing identifier of each hiragana is determined to be the display information of the pronunciation of the polyphonic word. If the playing time of each of the hiragana in the pronunciation of the polyphonic word is the same, the polyphonic word is obtained.
  • the start play identifier of the first hiragana in the pronunciation is determined as the display information of the pronunciation of the polyphonic word;
  • the storage module 640 is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
  • the storage module 640 is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  • the storage module 640 is configured to:
  • the pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  • the storage module 640 is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  • an embodiment of the present disclosure further provides a device for storing lyrics Zhuyin, as shown in FIG. 7, the device includes:
  • a first receiving module 710 configured to receive a Zhuyin storage request for a target lyrics
  • a first obtaining module 720 configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word in the target lyrics;
  • the first determining module 730 is configured to obtain, for any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, the polyphonic word is obtained.
  • the number of Chinese characters, and the start playing identifier of each kana in the pronunciation of the polyphonic word are determined as the display information of the pronunciation of the polyphonic word;
  • the length of the pseudonym is the same, then the number of Chinese characters in the polyphonic word is obtained, and it is determined as the display information of the pronunciation of the polyphonic word;
  • the first storage module 740 is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
  • the first storage module 740 is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  • the first storage module 740 is configured to:
  • the pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in additional parts of the target lyrics text.
  • the first storage module 740 is configured to:
  • the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  • the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics.
  • Display information without real-time query so it improves the efficiency of displaying lyrics and phonetic notation.
  • the device for storing lyrics phonetic notation only uses the division of the above functional modules as an example to explain the storage of the lyrics phonetic notation.
  • the above functions may be allocated by different functional modules as required. Finished, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for storing lyrics and phonetic notation provided by the foregoing embodiment belongs to the same concept as the embodiment of the method for storing phonetic notation, and the specific implementation process thereof is detailed in the method embodiment, and details are not described herein again.
  • FIG. 8 shows a structural block diagram of a terminal 800 provided by an exemplary embodiment of the present disclosure.
  • the terminal 800 can be: smartphone, tablet, MP3 player (Moving Picture Experts Group Audio Layer III, moving image expert compression standard audio level 3), MP4 (Moving Picture Expert Experts Group Audio Audio Layer IV, moving image expert compression standard audio Level 4) Player, laptop or desktop computer.
  • the terminal 800 may also be called other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
  • the terminal 800 includes a processor 801 and a memory 802.
  • the processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 801 may use at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). achieve.
  • the processor 801 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in the wake state, also called a CPU (Central Processing Unit).
  • the coprocessor is Low-power processor for processing data in standby.
  • the processor 801 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing content required to be displayed on the display screen.
  • the processor 801 may further include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 802 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 802 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash storage devices.
  • non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 801 to implement the stored lyrics provided by the method embodiments in this application. Zhuyin method.
  • the terminal 800 may optionally include a peripheral device interface 803 and at least one peripheral device.
  • the processor 801, the memory 802, and the peripheral device interface 803 may be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 803 through a bus, a signal line, or a circuit board.
  • the peripheral device includes at least one of a radio frequency circuit 804, a touch display screen 805, a camera 806, an audio circuit 807, a positioning component 808, and a power supply 809.
  • the peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802.
  • the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 801, the memory 802, and the peripheral device interface 803 or Both can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
  • the radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 804 communicates with a communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 804 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
  • the radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes, but is not limited to, a metropolitan area network, mobile communication networks of various generations (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network.
  • the radio frequency circuit 804 may further include NFC (Near Field Communication) circuits, which are not limited in this application.
  • the display screen 805 is used to display a UI (User Interface).
  • the UI may include graphics, text, icons, videos, and any combination thereof.
  • the display screen 805 also has the ability to collect touch signals on or above the surface of the display screen 805.
  • the touch signal can be input to the processor 801 as a control signal for processing.
  • the display screen 805 may also be used to provide virtual buttons and / or virtual keyboards, which are also called soft buttons and / or soft keyboards.
  • the display screen 805 may be one, and the front panel of the terminal 800 is provided. In other embodiments, the display screen 805 may be at least two, which are respectively provided on different surfaces of the terminal 800 or have a folded design.
  • the display screen 805 may be a flexible display screen disposed on a curved surface or a folded surface of the terminal 800. Furthermore, the display screen 805 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display screen 805 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
  • the camera component 806 is used for capturing images or videos.
  • the camera component 806 includes a front camera and a rear camera.
  • the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal.
  • the camera assembly 806 may further include a flash.
  • the flash can be a monochrome temperature flash or a dual color temperature flash.
  • a dual color temperature flash is a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
  • the audio circuit 807 may include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 801 for processing, or input them to the radio frequency circuit 804 to implement voice communication.
  • the microphone can also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves.
  • the speaker can be a traditional film speaker or a piezoelectric ceramic speaker.
  • the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for ranging purposes.
  • the audio circuit 807 may further include a headphone jack.
  • the positioning component 808 is used to locate the current geographic position of the terminal 800 to implement navigation or LBS (Location Based Service).
  • the positioning component 808 may be a positioning component based on the United States' GPS (Global Positioning System, Global Positioning System), China's Beidou system, Russia's Granus system, or the European Union's Galileo system.
  • the power supply 809 is used to power various components in the terminal 800.
  • the power source 809 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
  • the rechargeable battery may support wired charging or wireless charging.
  • the rechargeable battery can also be used to support fast charging technology.
  • the terminal 800 further includes one or more sensors 810.
  • the one or more sensors 810 include, but are not limited to, an acceleration sensor 811, a gyroscope sensor 812, a pressure sensor 813, a fingerprint sensor 814, an optical sensor 815, and a proximity sensor 816.
  • the acceleration sensor 811 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established by the terminal 800.
  • the acceleration sensor 811 may be used to detect components of the acceleration of gravity on three coordinate axes.
  • the processor 801 may control the touch display screen 805 to display a user interface in a horizontal view or a vertical view according to a gravity acceleration signal collected by the acceleration sensor 811.
  • the acceleration sensor 811 may also be used for collecting motion data of a game or a user.
  • the gyro sensor 812 can detect the body direction and rotation angle of the terminal 800, and the gyro sensor 812 can cooperate with the acceleration sensor 811 to collect a 3D motion of the user on the terminal 800. Based on the data collected by the gyro sensor 812, the processor 801 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 813 may be disposed on a side frame of the terminal 800 and / or a lower layer of the touch display screen 805.
  • a user's holding signal to the terminal 800 can be detected, and the processor 801 can perform left-right hand recognition or quick operation according to the holding signal collected by the pressure sensor 813.
  • the processor 801 operates according to the user's pressure on the touch display screen 805 to control the operable controls on the UI interface.
  • the operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 814 is used to collect a user's fingerprint, and the processor 801 recognizes the identity of the user based on the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 recognizes the identity of the user based on the collected fingerprint. When identifying the user's identity as a trusted identity, the processor 801 authorizes the user to perform related sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings.
  • the fingerprint sensor 814 may be provided on the front, back, or side of the terminal 800. When a physical button or a manufacturer's logo is set on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the manufacturer's logo.
  • the optical sensor 815 is used to collect ambient light intensity.
  • the processor 801 may control the display brightness of the touch display screen 805 according to the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 805 is decreased.
  • the processor 801 may also dynamically adjust the shooting parameters of the camera component 806 according to the ambient light intensity collected by the optical sensor 815.
  • the proximity sensor 816 also called a distance sensor, is usually disposed on the front panel of the terminal 800.
  • the proximity sensor 816 is used to collect the distance between the user and the front of the terminal 800.
  • the processor 801 controls the touch display screen 805 to switch from the bright screen state to the closed screen state; when the proximity sensor 816 detects When the distance between the user and the front of the terminal 800 gradually increases, the touch display screen 805 is controlled by the processor 801 to switch from the screen state to the bright screen state.
  • FIG. 8 does not constitute a limitation on the terminal 800, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk.

Abstract

A method and device for storing lyric phonetic notations, relating to the technical field of computers. The method comprises: a server can receive a phonetic notation storage request for a target lyric (101), and then obtain pronunciations of polyphonic characters in the target lyric, and determine the playback duration of furigana in the pronunciations of the polyphonic characters (102), obtain display information of the pronunciations of the polyphonic characters, the display information being used for indicating the playback time of the pronunciations of the polyphonic characters, finally correspondingly store the pronunciations of the polyphonic characters and the display information thereof with the target lyric (104). The method can improve the efficiency of displaying lyric phonetic notations.

Description

存储歌词注音的方法和装置Method and device for storing lyrics Zhuyin
本申请要求于2018年05月25日提交申请号为201810545601.9、发明名称为“存储歌词注音的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed on May 25, 2018 with application number 201810545601.9 and the invention name is "Method and Device for Storing Lyrics and Zhuyin", the entire contents of which are incorporated herein by reference.
技术领域Technical field
本公开涉及计算机技术领域,特别涉及一种存储歌词注音的方法和装置。The present disclosure relates to the field of computer technology, and in particular, to a method and device for storing lyrics phonetic notation.
背景技术Background technique
随着计算机技术的发展,音频应用程序逐渐全球化,可以播放中文歌曲、英文歌曲和日文歌曲等,在播放歌曲时,为了使歌曲听起来更有艺术感,通常会出现某些多音字词的读音与最常用的读音不相同的情况,例如,在日文歌曲中,“宿命”一词常见的读音是“しゅくめい”,在歌曲中的读音是“さだめ”,所以为了显示歌词中多音字词的正确读音,一般会为特殊读音的多音字词标注正确读音。With the development of computer technology, audio applications have gradually become globalized and can play Chinese songs, English songs, Japanese songs, etc. When playing songs, in order to make the songs sound more artistic, certain polyphonic words usually appear The pronunciation of is different from the most commonly used pronunciation. For example, in Japanese songs, the common pronunciation of the word "fate" is "し ゅ く め い", and the pronunciation in the song is "さ だ め", so in order to display the polyphony in the lyrics The correct pronunciation of a word usually marks the correct pronunciation of a polyphone word with a special pronunciation.
相关技术中,在播放歌曲时,一般会实时查找歌词的读音,然后进行标注,这样,需要实时在词典中查询读音,并进行标注读音(可以简称为注音),有可能导致显示歌词注音比较慢。In related technology, when playing a song, the lyrics of the lyrics are usually searched in real time and then marked. In this way, the pronunciation of the dictionary needs to be checked in real time and the marked pronunciation (may be referred to as Zhuyin) may cause the slower display of lyrics. .
发明内容Summary of the Invention
为了解决现有技术的问题,本公开实施例提供了一种存储歌词注音的方法和装置。所述技术方案如下:In order to solve the problems in the prior art, the embodiments of the present disclosure provide a method and a device for storing lyrics phonetic notation. The technical solution is as follows:
第一方面,提供了一种存储歌词注音的方法,所述方法包括:According to a first aspect, a method for storing lyrics Zhuyin is provided. The method includes:
接收目标歌词的注音存储请求;Receive the Zhuyin storage request of the target lyrics;
获取所述目标歌词中多音字词的读音,并确定所述多音字词的读音中各振假名的播放时长;Acquiring the pronunciation of the polyphonic word in the target lyrics, and determining the playing duration of each kana in the pronunciation of the polyphonic word;
对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息,如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词的读音中第一个振假名的开始播放 标识,确定为所述多音字词的读音的展示信息;For any polysyllabic word in the polysyllabic word, if the playing time of each kana is different in the pronunciation of the polysyllabic word, the The start of playing the identifier is determined as the display information of the pronunciation of the polyphonic word. If the playing time of each kana in the pronunciation of the polyphonic word is the same, the first pronunciation of the polyphonic word is obtained. The start playing identifier of the kana is determined to be display information of the pronunciation of the polyphonic word;
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
可选的,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:Optionally, storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
可选的,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分,包括:Optionally, storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics into an additional part of the target lyrics text includes:
确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
可选的,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:Optionally, storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
第二方面,提供了一种存储歌词注音的方法,所述方法包括:According to a second aspect, a method for storing lyrics Zhuyin is provided. The method includes:
接收目标歌词的注音存储请求;Receive the Zhuyin storage request of the target lyrics;
获取所述目标歌词中多音字词的读音,并确定所述目标歌词的多音字词的读音中各振假名的播放时长;Acquiring the pronunciation of the polyphonic word in the target lyrics, and determining the playing time of each kana in the pronunciation of the polyphonic word in the target lyrics;
对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词中汉字的数目、以及所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词中汉字的数目,确定为所述多音字词的读音的展示信息;For any polysyllabic word in the polysyllabic word, if the playing time of each kana is different in the pronunciation of the polysyllabic word, then the number of Chinese characters in the polysyllabic word and the The start playing identifier of each polyphonic word in the pronunciation of the polyphonic word is determined as the display information of the pronunciation of the polyphonic word; if the playing duration of each polyphonic name in the pronunciation of the polyphonic word is the same, obtain The number of Chinese characters in the polyphonic word is determined as display information of the pronunciation of the polyphonic word;
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
可选的,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:Optionally, storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音 的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
可选的,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分,包括:Optionally, storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics into an additional part of the target lyrics text includes:
确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
可选的,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:Optionally, storing the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics includes:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
第三方面,提供了一种存储歌词注音的装置,所述装置包括:According to a third aspect, a device for storing lyrics Zhuyin is provided. The device includes:
接收模块,用于接收目标歌词的注音存储请求;A receiving module for receiving a Zhuyin storage request of a target lyrics;
获取模块,用于获取所述目标歌词中多音字词的读音,并确定所述多音字词的读音中各振假名的播放时长;An obtaining module, configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word;
确定模块,用于对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息,如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词的读音中第一个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;A determining module, configured to, for any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, obtaining the The start playing identifier of each hiragana is determined to be display information of the pronunciation of the polyphonic word. If the playing time of each of the hiragana in the pronunciation of the polyphonic word is the same, then the The start playing identifier of the first kana in the pronunciation is determined as the display information of the pronunciation of the polyphonic word;
存储模块,用于将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The storage module is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
可选的,所述存储模块,用于:Optionally, the storage module is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
可选的,所述存储模块,用于:Optionally, the storage module is configured to:
确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
可选的,所述存储模块,用于:Optionally, the storage module is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
第四方面,提供了一种存储歌词注音的装置,所述装置包括:According to a fourth aspect, a device for storing lyrics Zhuyin is provided. The device includes:
第一接收模块,用于接收目标歌词的注音存储请求;A first receiving module, configured to receive a Zhuyin storage request for a target lyrics;
第一获取模块,用于获取所述目标歌词中多音字词的读音,并确定所述目标歌词的多音字词的读音中各振假名的播放时长;A first obtaining module, configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word in the target lyrics;
第一确定模块,用于对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词中汉字的数目、以及所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词中汉字的数目,确定为所述多音字词的读音的展示信息;A first determining module, configured to: for any polyphone word in the polyphone word, if the play time of each kana in the pronunciation of the polyphone word is different, obtain the The number of Chinese characters, and the start playing identifier of each kana in the pronunciation of the polyphonic word are determined to be display information of the pronunciation of the polyphonic word; If the playing time is the same, then the number of Chinese characters in the polyphonic word is obtained, and it is determined as the display information of the pronunciation of the polyphonic word;
第一存储模块,用于将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The first storage module is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
可选的,所述第一存储模块,用于:Optionally, the first storage module is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
可选的,所述第一存储模块,用于:Optionally, the first storage module is configured to:
确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
可选的,所述第一存储模块,用于Optionally, the first storage module is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
本公开实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided in the embodiments of the present disclosure include at least:
本公开实施例中,将歌词中多音字词的读音、以及读音的展示信息与歌词对应存储,这样,后续在播放歌曲时,直接基于歌词,就可以获取到多音字词的读音和读音的展示信息,而无需实时查询,所以提高了显示歌词注音的效率。In the embodiment of the present disclosure, the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics. Display information without real-time query, so it improves the efficiency of displaying lyrics and phonetic notation.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本公开实施例提供的一种存储歌词注音的方法流程图;FIG. 1 is a flowchart of a method for storing lyrics phonetic notation provided by an embodiment of the present disclosure;
图2是本公开实施例提供的一种附加部分的示意图;2 is a schematic diagram of an additional part provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种存储歌词注音的示意图;FIG. 3 is a schematic diagram of storing a lyrics Zhuyin provided by an embodiment of the present disclosure; FIG.
图4是本公开实施例提供的一种存储歌词注音的示意图;FIG. 4 is a schematic diagram of storing a lyrics Zhuyin provided by an embodiment of the present disclosure; FIG.
图5是本公开实施例提供的一种存储歌词注音的方法流程图;FIG. 5 is a flowchart of a method for storing lyrics and phonetic notation provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一种存储歌词注音的装置的结构示意图;FIG. 6 is a schematic structural diagram of a device for storing lyrics and Zhuyin provided by an embodiment of the present disclosure; FIG.
图7是本公开实施例提供的一种存储歌词注音的装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for storing lyrics and Zhuyin provided by an embodiment of the present disclosure; FIG.
图8是本公开实施例提供的一种服务器的结构示意图。FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。To make the objectives, technical solutions, and advantages of the present disclosure clearer, the embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings.
本公开实施例提供了一种存储歌词注音的方法,该方法的执行主体为服务器,服务器可以是音频应用程序的后台服务器。服务器可以用于存储目标音频的音频文件,音频文件中包括音频数据和歌词数据等,歌词数据中包括歌词正文和附加部分,附加部分用于存储作者、演唱者等内容。An embodiment of the present disclosure provides a method for storing lyrics Zhuyin. The method is executed by a server, and the server may be a background server of an audio application program. The server can be used to store the audio file of the target audio. The audio file includes audio data and lyrics data. The lyrics data includes the lyrics text and additional parts. The additional parts are used to store authors, singers, and other content.
服务器中可以设置有处理器、存储器和收发器等,处理器可以用于存储歌词的过程的处理,存储器可以用于存储歌词的过程中需要的数据以及产生的数据,收发器可以用于接收以及发送数据。The server may be provided with a processor, a memory, and a transceiver. The processor may be used to process the lyrics process. The memory may be used to store the data needed during the lyrics process and the generated data. send data.
首先介绍一下本公开实施例的应用场景,一般音频应用程序在播放歌曲时,会显示歌词,歌词一般是音频应用程序的工作人员将歌词数据,上传至音频应用程序的后台服务器(后续可以称为是服务器),服务器可以将歌词数据与歌曲的音频数据对应存储。由于某些歌曲,该歌曲的歌词中某些词语是多音字词,在显示歌词时,会通过查找词典,找到多音字词的多音,对多音字词进行标注,由于需要查字典,有可能导致显示歌词比较慢,所以针对此,提供了预先存储歌词注音的方式。例如,某些日语歌曲,为了达到艺术效果,歌词中某些词语的读音与最常用的读音不相同(“宿命”一词最常用的读音为“しゅくめい”,但是在歌词中读音为“さだめ”)。First introduce the application scenario of the embodiment of the present disclosure. Generally, an audio application displays lyrics when playing a song. Generally, the lyrics of the audio application staff uploads the lyrics data to the background server of the audio application. (The server), the server can store the lyrics data and the song's audio data in correspondence. Due to some songs, certain words in the lyrics of the song are polyphonic words. When the lyrics are displayed, the dictionary will be searched to find the polyphonic words, and the polyphonic words will be marked. It may cause the lyrics display to be slow, so for this, a way to pre-store the lyrics Zhuyin is provided. For example, for some Japanese songs, in order to achieve artistic effects, the pronunciation of certain words in the lyrics is different from the most commonly used pronunciation (the most commonly used pronunciation of the word "fate" is "し ゅ く め い", but the pronunciation of the lyrics is "さ だ め").
另外,介绍一下本公开实施例中,歌词正文的存储方式:In addition, the storage manner of the lyrics text in the embodiment of the present disclosure is introduced:
[第一行开始播放标识][开始播放标识]第一行第一个词<开始播放标识>第一行第二个词<开始播放标识>...第一行最后一个词。[First line start playback logo] [Start playback start logo] First line first word <start playback logo> First line second word <start playback logo> ... last word in the first line.
本公开实施例提供了一种存储歌词注音的方法,歌词以日语歌词为例,如图1所示,该方法的处理步骤可以如下:The embodiment of the present disclosure provides a method for storing lyrics phonetic notation. The lyrics use Japanese lyrics as an example. As shown in FIG. 1, the processing steps of the method can be as follows:
步骤101,接收目标歌词的注音存储请求。Step 101: Receive a Zhuyin storage request of a target lyrics.
其中,注音包括读音和读音的展示信息。Among them, Zhuyin includes pronunciation and display information of pronunciation.
在实施中,用户(一般是音频应用程序的工作人员)可以在终端中安装音频应用程序,音频应用程序可以为用户提供接口,供编辑歌词、以及多音字词的读音。对于某首歌曲的歌词(后续可以称为目标歌词),用户可以为目标歌词中的多音字词标注读音,以及每个读音中各振假名的开始时间戳,然后点击提交按键,终端则会生成注音存储请求,并在其中携带目标歌词的标识、多音字词的读音、以及每个读音中各振假名的开始时间戳。然后向服务器发送目标歌词的注音存储请求。服务器接收到终端发送的注音存储请求后,可以从中解析得到目标歌词的标识、多音字词的读音、以及每个读音中各振假名的开始时间戳。In the implementation, a user (generally a staff member of an audio application program) may install an audio application program in a terminal, and the audio application program may provide an interface for the user to edit lyrics and pronunciation of polyphonic words. For the lyrics of a song (which may be referred to as the target lyrics later), the user can mark the pronunciation of the polyphonic words in the target lyrics, and the start timestamp of each pseudonym in each pronunciation, and then click the submit button, and the terminal will Generate a Zhuyin storage request, and carry the identification of the target lyrics, the pronunciation of the polysyllabic word, and the start timestamp of each kana in each pronunciation. Then send a Zhuyin storage request for the target lyrics to the server. After receiving the Zhuyin storage request sent by the terminal, the server can parse and obtain the identification of the target lyrics, the pronunciation of the polyphonic word, and the start timestamp of each pseudonym in each pronunciation.
或者,音频应用程序为用户提供添加注音选项,用户想为某首歌曲的歌词(后续可以称为目标歌词)添加注音,可以点击该注音选项,终端则会检测到注音选项的点击指令,生成注音存储请求,并且在注音存储请求中携带目标歌词的标识,服务器接收到注音请求后,可以从中解析到目标歌词的标识。Alternatively, the audio application provides the user with the option to add Zhuyin, and the user wants to add Zhuyin to the lyrics of a song (which can be referred to as the target lyrics later), and can click the Zhuyin option, and the terminal will detect the click instruction of Zhuyin option to generate Zhuyin The storage request carries the identification of the target lyrics in the Zhuyin storage request. After receiving the Zhuyin request, the server can parse the identification to the target lyrics.
步骤102,获取目标歌词中多音字词的读音,并确定多音字词的读音中各振假名的播放时长。Step 102: Acquire the pronunciation of the polyphonic word in the target lyrics, and determine the playing time of each kana in the pronunciation of the polyphonic word.
其中,播放时长用于在渲染歌词时的染色时长。开始播放标识用于指示振假名开始播放,可以是开始播放时间戳等。振假名是日语中为表示多音字词,而在其上方或周围附注的假名符号。例如,“絆”(中文意思是“牵绊”),对应的读音的振假名为“きずな”。Among them, the playing time is used for the coloring time when rendering the lyrics. The start play identifier is used to indicate that the hiragana starts to play, which may be a start play time stamp, and the like. A hiragana is a kana symbol in Japanese that is used to indicate a polyphonic word. For example, "trip" (Chinese meaning "dipping"), the corresponding pronunciation of the pronunciation is "き ず な".
在实施中,服务器可以从注音存储请求中,获取到目标歌词中多音字词的读音和每个读音中各振假名的开始时间戳。或者,服务器从注音存储请求中,解析得到目标歌词的标识后,可以使用目标歌词的标识,查找到目标歌词,然后将目标歌词,输入注音确定程序中,得到目标歌词的多音字词中,每个读音中各振假名的开始时间戳(在后面详细说明)。In implementation, the server may obtain the pronunciation of the polyphonic word in the target lyrics and the start timestamp of each kana in each pronunciation from the Zhuyin storage request. Alternatively, after the server parses and obtains the identifier of the target lyrics from the Zhuyin storage request, it can use the identifier of the target lyrics to find the target lyrics, and then input the target lyrics into the Zhuyin determination program to obtain the polyphonic words of the target lyrics. The start timestamp of each hiragana in each pronunciation (explained in detail later).
对于目标歌词中的任一多音字词,可以将多音字词的读音中连续两个振假名的开始时间戳相减,得到该多音字词的读音中除最后一个振假名之外的其它振假名的时间戳,最后一个振假名的时间戳,可以将该多音字词的后一个字的 开始时间戳与最后一个振假名的开始时间戳作差,差值即为最后一个振假名的播放时长。这样,就可以得到多音字词的读音中各振假名的播放时长。例如,“絆”(中文意思是“牵绊”),对应的读音的振假名为“きずな”,“き”的开始时间戳为0ms,“ず”的开始时间戳为10ms,“な”的开始时间戳为30ms,“き”的播放时长为10ms-0ms,为10ms,“ず”的播放时长为30ms-10ms,为20ms,“絆”后一个字词的开始时间戳为55ms,则“な”的播放时长为55ms-30ms,为25ms。For any polysyllabic word in the target lyrics, the start timestamps of two consecutive hiraganas in the polysyllabic pronunciation can be subtracted to obtain the pronunciation of the polysyllabic word except for the last hiragana. The timestamps of other hiraganas, and the timestamp of the last hiragana, can be the difference between the start timestamp of the next word of the polyphone word and the start timestamp of the last hiragana. The difference is the last hiragana Playback time. In this way, the playing time of each kana in the pronunciation of the polyphonic word can be obtained. For example, "trip" (Chinese meaning "drap"), the corresponding pronunciation of the pronunciation is "き ず な", the start timestamp of "ki" is 0ms, the start timestamp of "ず" is 10ms, and "な" The start time stamp is 30ms, the playing time of "Ki" is 10ms-0ms, 10ms, and the playing time of "ず" is 30ms-10ms, 20ms, and the start time stamp of the word after "trip" is 55ms, then " "な" has a playback time of 55ms-30ms, which is 25ms.
步骤103,对于多音字词中任一多音字词,如果多音字词的读音中各振假名的播放时长不相同,则获取多音字词的读音中每个振假名的开始播放标识,确定为多音字词的读音的展示信息,如果多音字词的读音中各振假名的播放时长相同,则获取多音字词的读音中第一个振假名的开始播放标识,确定为多音字词的读音的展示信息。Step 103: For any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, obtain the start playing identifier of each kana in the pronunciation of the polyphonic word , Determine the display information of the pronunciation of the polyphonic word. If the playing time of each kana in the pronunciation of the polyphonic word is the same, obtain the start playing identifier of the first hiragana in the pronunciation of the polyphonic word, and determine as Display information for the pronunciation of polysyllabic words.
在实施中,对于多音字词中的任一多音字词,可以确定各振假名的播放时长是否相同,如果不相同,则可以将该多音字词的读音中每个振假名的开始播放标识,确定为多音字词的读音的展示信息。如果相同,则可以将该多音字词的读音中第一个振假名的开始播放标识,确定为该多音字词的读音的展示信息,这样,对于目标歌词中每个多音字词都可以按照这样的方法确定。In implementation, for any polyphonic word in the polyphonic word, it can be determined whether the duration of each kana kana is the same. If it is not the same, the start of each polyphonic word in the pronunciation of the polyphonic word can be determined. The play identifier is determined to be display information of the pronunciation of the polyphonic word. If they are the same, the start playing identifier of the first hiragana in the pronunciation of the polyphonic word can be determined as the display information of the pronunciation of the polyphonic word. In this way, for each polyphonic word in the target lyrics, Can be determined in this way.
需要说明的是,在上述任一多音字词的读音中,如果各振假名的播放时长一样,只要使用第一个振假名的开始播放标识,就可以知道每个振假名的开始播放标识,例如,日语中“絆”,对应的读音的振假名为“きずな”,“絆”对应的读音中每个振假名的播放时长都是相同的,所以可以只存储“き”的开始播放时间戳,后续在播放歌曲的过程中,渲染振假名时,使用“き”的开始播放标识和“絆”的后一个字的开始播放时间戳,可以确定“きずな”总共时长,可以除以3,就可以得到每个振假名的播放时长。这样,不需要存储每个振假名的开始播放标识,所以可以节约存储资源。而如果各振假名的播放时长不一样,只有标注了每个振假名的开始播放标识,才能确定出何时渲染振假名。It should be noted that, in the pronunciation of any of the above polyphonic words, if the playing time of each hiragana is the same, as long as the start playing identifier of the first hiragana is used, the starting playback identifier of each hiragana can be known. For example, in Japanese, the tripakana of the corresponding pronunciation is "き ず な", and the duration of each pronunciation of the pronunciation of "trip" is the same, so you can only store the start timestamp of "ki" In the subsequent process of playing songs, when rendering the pseudonym, use the "Ki" start playback logo and the start time stamp of the next word of "trip" to determine the total duration of "Ki", which can be divided by 3. You can get the playing time of each kana. In this way, it is not necessary to store the start playing identifier of each pseudonym, so storage resources can be saved. And if the playing time of each hiragana is different, only when the start playing mark of each hiragana is marked, can it be determined when to render the hiragana.
步骤104,将目标歌词中多音字词的读音,以及目标歌词中多音字词的读音的展示信息与目标歌词对应存储。In step 104, the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
在实施中,服务器确定目标歌词的注音后,可以基于目标歌词的标识,将多音字词的读音、以及多音字词的读音的展示信息与目标歌词对应存储。这样,后续可以基于目标歌词,获取到目标歌词的读音、以及多音字词的读音的展示 信息。In implementation, after the server determines the Zhuyin of the target lyrics, based on the identification of the target lyrics, the pronunciation information of the polyphonic words and the display information of the pronunciation of the polyphonic words are stored in correspondence with the target lyrics. In this way, based on the target lyrics, the display information of the pronunciation of the target lyrics and the pronunciation of the polysyllabic words can be obtained subsequently.
可选的,对应存储的方式可以有多种,以下给出两种可行的方式:Optionally, there can be multiple ways of corresponding storage. Here are two possible ways:
方式一:将多音字词的读音,以及多音字词的读音的展示信息,存储至目标歌词正文的附加部分。Method one: storing the pronunciation of the polyphonic word and the display information of the pronunciation of the polyphonic word in an additional part of the target lyrics text.
其中,目标歌词正文的附加部分可以是歌词Meta段,指与歌词渲染内容无关,用于记载歌词的附加部分,例如,如图2所示,在LRC(lyric)格式的歌词中,在歌词正文的前面,有如下内容al:本歌所在的唱片集,ar:演出者-歌手,au:歌词作者-作曲家,by:LRC(lyric)文件的创建者等。Among them, the additional part of the target lyrics text may be a lyrics meta segment, which refers to the additional part of the lyrics that has nothing to do with the rendered content of the lyrics. For example, as shown in Figure 2, in the lyrics of the LRC (lyric) format, the lyrics text In front of it, there are the following contents: the album where the song is located, ar: artist-singer, au: lyricist-composer, by: creator of LRC (lyric) file, etc.
在实施中,服务器可以基于目标歌词的标识,获取到目标歌词正文的附加部分,然后在附加部分中,按照附加部分的记录格式,将多音字词的读音、以及多音字词的读音的展示信息,存储在目标歌词正文的附加部分,例如,如图3所示,可以以“kana(中文意思是“假名”):[开始播放标识]振假名[开始播放标识]振假名……”的格式存储。In implementation, the server may obtain an additional part of the target lyrics text based on the identification of the target lyrics, and then in the additional part, according to the recording format of the additional part, the pronunciation of the polysyllabic word and the pronunciation of the polysyllabic word The display information is stored in the additional part of the target lyrics text. For example, as shown in Figure 3, you can use "kana (Chinese meaning" kana "): [start playing mark] Zhenkana [start playing mark] Zhenkana ..." Format.
这样,在原Meta段中追加读音的相关信息,由于Meta段解析机制比较宽松,所以即使在原Meta段中追加读音的相关信息,也不会影响格式的变化,不会引起音频应用程序的异常。In this way, the addition of pronunciation-related information in the original Meta segment, because the meta-segment analysis mechanism is relatively loose, so even if the addition of pronunciation-related information in the original Meta segment, it will not affect the format change, and will not cause abnormalities in audio applications.
可选的,可以按照歌词正文中的每行歌词与读音相对应,相应处理可以如下:Optionally, each line of lyrics in the text of the lyrics corresponds to the pronunciation, and the corresponding processing can be as follows:
确定目标歌词中每行歌词中多音字词的读音、以及每行歌词中多音字词的读音的展示信息;将每行歌词中多音字词的读音、以及每行歌词中多音字词的读音的展示信息,分别存储至目标歌词正文的附加部分。Determine the pronunciation of the polyphonic words in each line of the target lyrics, and display information of the polyphonic words in each line of lyrics; display the polyphonic words in each line of lyrics, and the polyphonic words in each line of lyrics The display information of the pronunciation of the words is stored in the additional parts of the target lyrics text respectively.
在实施中,服务器可以基于目标歌词的标识,查找到目标歌词正文中每行歌词,然后确定每行歌词中多音字词的读音、以及每个读音的展示信息,然后将每行歌词中多音字词的读音、以及每个读音的展示信息分别存储至目标歌词正文的附加部分。例如,如图4所示,可以按照以下格式存储:In implementation, the server may find each line of lyrics in the body of the target lyrics based on the identification of the target lyrics, and then determine the pronunciation of the polysyllabic words in each line of lyrics, as well as the display information of each pronunciation, and then add multiple lyrics in each line of lyrics. The pronunciation of the phonetic words and the display information of each pronunciation are respectively stored in the additional part of the target lyrics text. For example, as shown in Figure 4, it can be stored in the following format:
“[kana2:读音、以及读音的展示信息]"[Kana2: pronunciation, and display information of pronunciation]
[kana6:读音、以及读音的展示信息][kana6: pronunciation and display information of pronunciation]
[……]”其中。[……]"among them.
其中,2表示第二行歌词对应的多音字词的注音,6表示第六行歌词对应的多音字词的注音,注音中包括读音、以及读音的展示信息。Among them, 2 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the second line, and 6 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the sixth line. The phonetic includes the pronunciation and the display information of the pronunciation.
方式二:将目标歌词中多音字词的读音,以及目标歌词中多音字词的读音 的展示信息,存储至目标歌词对应的注音文件。Method two: storing the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics into the Zhuyin file corresponding to the target lyrics.
其中,注音文件是用于存储多音字词的读音、以及读音的展示信息的文件,每个歌词对应有一个注音文件,使用歌词的标识进行区分。在没有存储读音以及读音的展示信息时,注音文件依然存储,只不过是空的,或者,在没有存储读音以及读音的展示信息时,没有注音文件,在存储时新建。The Zhuyin file is a file used to store the pronunciation of polyphonic words and the display information of the pronunciation. Each lyrics corresponds to a Zhuyin file, which is distinguished by the identifier of the lyrics. When the pronunciation and the display information of the pronunciation are not stored, the Zhuyin file is still stored, but is empty, or when the pronunciation and the display information of the pronunciation are not stored, there is no Zhuyin file, which is newly created upon storage.
在实施中,服务器可以基于目标歌词的标识,获取目标歌词的注音文件,然后在注音文件中,按照文本的记录格式,将多音字词的读音、以及多音字词的读音的展示信息,存储在注音文件中,例如,可以以“kana:[开始播放标识]振假名[开始播放标识]振假名……”的格式存储。In implementation, the server may obtain the phonetic transcription of the target lyrics based on the identification of the target lyrics, and then display the polyphonic pronunciation and the display information of the polyphonic words in the Zhuyin file according to the text recording format. It is stored in the Zhuyin file, for example, it can be stored in the format of "kana: [starting playback logo] hiragana [starting playback logo] hiragana ...".
需要说明的是,对于步骤103中,展示信息为每个振假名的开始播放标识,多音字词为“雨の空港”(中文意思是“雨中的机场”),歌词正文中存储的是“(39112)雨(39803)の(40356)空(40606)港(41176)”。“雨の空港”的读音为“あめのくうこう”,可以在附加部分或注音文件中存储“kana:(39112)あ(39921)め(40356)くう(40606)こう”,“()”中的内容表示紧跟的内容的开始播放标识,如(39921)表示“あ”开始播放标识。这样,基于开始播放标识可以获取到读音,(39112)与“雨”、“あめ”相对应,(40356)与“空”、“くう”相对应等。这样,后续在播放歌曲过程中,可以直接基于开始播放标识获取到读音。It should be noted that, in step 103, the display information is the start playing identifier of each kana, the polyphonic word is "雨 の 空港" (meaning "airport in the rain"), and the lyrics text is stored as " (39112) Rain (39803) (40356) Empty (40606) Port (41176) ". The pronunciation of "雨 の 空港" is "あ め の く う こ う", and you can store "kana: (39112) 399 (39921) め (40356) く う (40606) こ う", "()" in the additional part or Zhuyin file. The content indicates the start identifier of the immediately following content. For example, (39921) indicates the "あ" start identifier. In this way, the pronunciation can be obtained based on the start-play mark, (39112) corresponds to "rain" and "あ め", (40356) corresponds to "empty" and "く う", and so on. In this way, during subsequent song playback, the pronunciation can be obtained directly based on the start playback identifier.
对于步骤103中,展示信息为第一个振假名的开始播放标识,多音字词为“絆”(中文意思是“牵绊”),歌词正文中存储的是“(40576)絆”。“絆”的读音为“きずな”,可以在附加部分或注音文件中存储“kana:(40576)きずな”,由于三个振假名的播放时长相同,可以基于(40576)和“絆”后一个字的开始播放标识(如果开始播放标识是时间戳,两个时间戳之差的绝对值即为三个振假名的总播放时长),确定出三个振假名的总播放时长,然后除以三,得到三个振假名中每个振假名的播放时长。这样,后续在播放歌曲过程中,可以基于第一个振假名的开始播放标识,获取到读音,例如,使用(40576)就可以查找到读音是“きずな”,将“絆”与“きずな”相对应。For step 103, the display information is the start playing identifier of the first hiragana, the polyphonic word is "trip" (meaning "drag" in Chinese), and "(40576) trip" is stored in the lyrics text. The pronunciation of “绊” is “き ず な”, and “kana: (40576) き ず な” can be stored in the additional part or Zhuyin file. Since the three hiraganas are played for the same length, it can be based on (40576) and the word “trip” (If the start playback identifier is a timestamp, the absolute value of the difference between the two timestamps is the total playing time of the three kana names), determine the total playing time of the three kana names, and divide by three, Get the playing time of each of the three hiraganas. In this way, during the subsequent song playback, the pronunciation can be obtained based on the start of the first hiragana, for example, using (40576), you can find the pronunciation is "き ず な", and associate "trip" with "き ず な". correspond.
还需要说明的是,展示信息为每个振假名的开始播放标识或第一个振假名的开始播放标识时,后续在播放歌曲过程中,获取歌词时可以使用歌词正文中多音字词的开始播放标识,在注音文件或附加信息中,查找到该开始播放标识对应的读音,然后进行显示,这样,可以实现多音字词与读音相对应。It should also be noted that when the display information is the start play identifier of each kana or the start play identifier of the first kana, the subsequent playback of the song can use the start of the polyphonic word in the lyrics text. Play the logo. In the Zhuyin file or additional information, find the pronunciation corresponding to the start playback logo, and then display it. In this way, the polyphonic words can be corresponding to the pronunciation.
本公开实施例中,将歌词中多音字词的读音、以及读音的展示信息与歌词 对应存储,这样,后续在播放歌曲时,直接基于歌词,就可以获取到多音字词的读音和读音的展示信息,而无需实时查询,所以提高了显示歌词注音的效率。In the embodiment of the present disclosure, the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics. Display information without real-time query, so it improves the efficiency of displaying lyrics and phonetic notation.
本公开另一实施例提供了隐式存储注音的方法,如图5所示,相应的步骤可以如下:Another embodiment of the present disclosure provides a method for implicitly storing Zhuyin. As shown in FIG. 5, the corresponding steps may be as follows:
步骤501,接收目标歌词的注音存储请求。Step 501: Receive a Zhuyin storage request for a target lyrics.
其中,注音包括读音和读音的展示信息。Among them, Zhuyin includes pronunciation and display information of pronunciation.
在实施中,用户可以在终端中安装音频应用程序,音频应用程序可以为用户提供接口,供编辑歌词、以及多音字词的读音。对于某首歌曲的歌词(后续可以称为目标歌词),用户可以为目标歌词中的多音字词标注读音,以及每个读音中各振假名的开始时间戳,然后点击提交按键,终端则会生成注音存储请求,并在其中携带目标歌词的标识、多音字词的读音、以及每个读音中各振假名的开始时间戳。然后向服务器发送目标歌词的注音存储请求。服务器接收到终端发送的注音存储请求后,可以从中解析得到目标歌词的标识、多音字词的读音、以及每个读音中各振假名的开始时间戳。In the implementation, the user may install an audio application program in the terminal, and the audio application program may provide an interface for the user to edit lyrics and pronunciation of polyphonic words. For the lyrics of a song (which may be referred to as the target lyrics later), the user can mark the pronunciation of the polyphonic words in the target lyrics, and the start timestamp of each pseudonym in each pronunciation, and then click the submit button, and the terminal will Generate a Zhuyin storage request, and carry the identification of the target lyrics, the pronunciation of the polysyllabic word, and the start timestamp of each kana in each pronunciation. Then send a Zhuyin storage request for the target lyrics to the server. After receiving the Zhuyin storage request sent by the terminal, the server can parse and obtain the identification of the target lyrics, the pronunciation of the polyphonic word, and the start timestamp of each pseudonym in each pronunciation.
或者,音频应用程序为用户提供添加注音选项,用户想为某首歌曲的歌词(后续可以称为目标歌词)添加注音,可以点击该注音选项,终端则会检测到注音选项的点击指令,生成注音存储请求,并且在注音存储请求中携带目标歌词的标识,服务器接收到注音请求后,可以从中解析到目标歌词的标识。Alternatively, the audio application provides the user with the option to add Zhuyin, and the user wants to add Zhuyin to the lyrics of a song (which can be referred to as the target lyrics later), and can click the Zhuyin option, and the terminal will detect the click instruction of Zhuyin option to generate Zhuyin The storage request carries the identification of the target lyrics in the Zhuyin storage request. After receiving the Zhuyin request, the server can parse the identification to the target lyrics.
步骤502,获取目标歌词中多音字词的读音,并确定多音字词的读音中各振假名的播放时长。Step 502: Acquire the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word.
其中,播放时长用于在渲染歌词时的染色时长。开始播放标识用于指示振假名开始播放,可以是开始播放时间戳等。振假名是日语中为表示多音字词,而在其上方或周围附注的假名符号。例如,“絆”(中文意思是“牵绊”),对应的读音的振假名为“きずな”。Among them, the playing time is used for the coloring time when rendering the lyrics. The start play identifier is used to indicate that the hiragana starts to play, which may be a start play time stamp, and the like. A hiragana is a kana symbol in Japanese that is used to indicate a polyphonic word. For example, "trip" (Chinese meaning "dipping"), the corresponding pronunciation of the pronunciation is "き ず な".
步骤502的处理可以参见步骤102的处理,此处不再赘述。For the processing in step 502, refer to the processing in step 102, and details are not described herein again.
步骤503,对于多音字词中任一多音字词,如果多音字词的读音中各振假名的播放时长不相同,则获取多音字词中汉字的数目、以及多音字词的读音中每个振假名的开始播放标识,确定为多音字词的读音的展示信息;如果多音字词的读音中各振假名的播放时长相同,则获取多音字词中汉字的数目,确定为多音字词的读音的展示信息。Step 503: For any polyphone word in the polyphone word, if the playing time of each kana in the pronunciation of the polyphone word is different, then obtain the number of Chinese characters in the polyphone word, and the number of polyphone words. The identification of the start of the play of each kana in the pronunciation is determined as the display information of the pronunciation of the polyphone. If the playing time of each kana in the pronunciation of the polyphone is the same, then the number of Chinese characters in the polyphone is obtained. Display information for the pronunciation of a polyphone word.
在实施中,对于目标歌词中多音字词中的任一多音字词,可以确定各振假名的播放时长是否相同,如果不相同,则可以确定该多音字词中汉字的数目,以及该多音字词的读音中每个振假名的开始播放标识,将其确定多音字词的读音为展示信息。如果相同,则可以确定该多音字词中包含汉字的数目,确定为多音字词的读音的展示信息。In the implementation, for any polyphonic word in the target lyrics, it can be determined whether the duration of each kana kana is the same. If not, the number of Chinese characters in the polyphonic word can be determined, and In the pronunciation of the polyphonic word, the start of each kana name is played, and the pronunciation of the polyphonic word is determined as the display information. If they are the same, the number of Chinese characters in the polyphonic word may be determined, and the display information of the pronunciation of the polyphonic word may be determined.
需要说明的是,这是隐式标注读音,例如,日语中“欠片の絆”(中文意思是“碎片的牵绊”),读音可以是“2かけら1きずな”,“2”表示后面是两个字的读音,即“欠片”,“1”表示后面是一个字的读音,即“絆”的读音,由于多音字词“欠片”的读音中三个振假名的播放时长不相同,“欠片”的注音可以是“2か(1000)け(1500)ら(2000)1きずな”,“1000”、“1500”“2000”表示开始播放标识,对于多音字词“絆”的读音中三个振假名的播放时长相同,可以仅标注汉字的数目。另外,对于振假名的播放时长不相同时,还可以标注播放时长,例如,欠片”的展示信息可以是“2か(1000,500)け(1500,500)ら(2000,1000)”,500、500、1000分别表示“か”、“け”、“ら”的播放时长。这样,对于播放时长相同的振假名,可以省去播放时间标识,可以节约存储资源。It should be noted that this is an implicitly pronounced pronunciation. For example, in Japanese, "欠 片 の 绊" (Chinese means "fragment of fragmentation"), the pronunciation can be "2 か け ら 1 き ず な", and "2" means that two characters follow The pronunciation of a single character, that is, "one piece", "1" means that the following character is pronounced, that is, the pronunciation of "stumbling". Because the pronunciation of the polyphonic word "one piece" of the three hiragana is played differently, " The suffix of "Lack" can be "2 か (1000) け (1500) ら (2000) 1 き ず な", "1000", "1500", and "2000" indicate the start of the logo. For the pronunciation of the polyphone word "trip" The three kana names are played for the same length, and only the number of Chinese characters can be marked. In addition, when the playing time of the hiragana is not the same, the playing time can also be marked. For example, the display information of the missing piece can be "2 か (1000,500) け (1500,500) ら (2000,1000)", 500 , 500, and 1000 respectively represent the playing time of "か", "け", and "ら". In this way, for the hiragana with the same playing time, the playing time identifier can be omitted and storage resources can be saved.
步骤504,将目标歌词中多音字词的读音,以及目标歌词中多音字词的读音的展示信息与目标歌词对应存储。Step 504: Store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
步骤504的处理可以参见步骤104的处理,此处不再赘述。For the processing in step 504, refer to the processing in step 104, and details are not described herein again.
可选的,对于多音字词的读音的展示信息包括多音字词中汉字的数目的情况,在存储时,需要按照多音字词在正文中的顺序,存储多音字词的读音。例如,多音字词有“欠片の絆”(中文意思是“碎片的牵绊”),在存储读音时,由于“欠片”在“絆”之前,存储顺序是“欠片”的读音在“絆”之前,也即是“2かけら1きずな”。Optionally, the display information of the pronunciation of the polyphonic word includes the number of Chinese characters in the polyphonic word. When storing, the pronunciation of the polyphonic word needs to be stored in the order of the polyphonic word in the text. For example, the polyphonic word has "owed の trip" (Chinese means "fragment of fragmentation"). When the pronunciation is stored, because "owed" precedes "trip", the storage order is "owed" in "trip". "Before, it was" 2 か け ら 1 き ず な ".
可选的,对应存储的方式可以有多种,以下给出两种可行的方式:Optionally, there can be multiple ways of corresponding storage. Here are two possible ways:
方式一:将多音字词的读音,以及多音字词的读音的展示信息,存储至目标歌词正文的附加部分。Method one: storing the pronunciation of the polyphonic word and the display information of the pronunciation of the polyphonic word in an additional part of the target lyrics text.
其中,目标歌词正文的附加部分可以是歌词Meta段,指与歌词渲染内容无关,用于记载歌词的附加部分,例如,图2中,在LRC(lyric)格式的歌词中,在歌词正文的前面,有如下内容al:本歌所在的唱片集,ar:演出者-歌手,au:歌词作者-作曲家,by:LRC(lyric)文件的创建者等。Among them, the additional part of the target lyrics text may be a lyrics meta segment, which refers to the additional part of the lyrics that has nothing to do with the rendered content of the lyrics. For example, in Figure 2, in the lyrics of the LRC (lyric) format, it precedes the lyrics text. , Has the following content al: the album where the song is located, ar: performer-singer, au: lyrics author-composer, by: creator of the LRC (lyric) file, etc.
在实施中,服务器可以基于目标歌词的标识,获取到目标歌词正文的附加 部分,然后在附加部分中,按照附加部分的记录格式,将多音字词的读音、以及多音字词的读音的展示信息,存储在目标歌词正文的附加部分,例如,图3中,可以以“kana(中文意思是“假名”):[开始播放标识]振假名[开始播放标识]振假名……”的格式存储。In implementation, the server may obtain an additional part of the target lyrics text based on the identification of the target lyrics, and then in the additional part, according to the recording format of the additional part, the pronunciation of the polysyllabic word and the pronunciation of the polysyllabic word The display information is stored in the additional part of the target lyrics text. For example, in FIG. 3, it can be in the format of "kana (Chinese meaning" kana "): [start playing mark] katakana [start playing mark] katakana ..." storage.
这样,在原Meta段中追加读音的相关信息,由于Meta段解析机制比较宽松,所以即使在原Meta段中追加读音的相关信息,也不会影响格式的变化,不会引起音频应用程序的异常。In this way, the addition of pronunciation-related information in the original Meta segment, because the meta-segment analysis mechanism is relatively loose, so even if the addition of pronunciation-related information in the original Meta segment, it will not affect the format change, and will not cause abnormalities in audio applications.
可选的,可以按照歌词正文中的每行歌词与读音相对应,相应处理可以如下:Optionally, each line of lyrics in the text of the lyrics corresponds to the pronunciation, and the corresponding processing can be as follows:
确定目标歌词中每行歌词中多音字词的读音、以及每行歌词中多音字词的读音的展示信息;将每行歌词中多音字词的读音、以及每行歌词中多音字词的读音的展示信息,分别存储至目标歌词正文的附加部分。Determine the pronunciation of the polyphonic words in each line of the target lyrics, and display information of the polyphonic words in each line of lyrics; display the polyphonic words in each line of lyrics, and the polyphonic words in each line of lyrics The display information of the pronunciation of the words is stored in the additional parts of the target lyrics text respectively.
在实施中,服务器可以基于目标歌词的标识,查找到目标歌词正文中每行歌词,然后确定每行歌词中多音字词的读音、以及每个读音的展示信息,然后将每行歌词中多音字词的读音、以及每个读音的展示信息分别存储至目标歌词正文的附加部分。例如,图4中,可以按照以下格式存储:In implementation, the server may find each line of lyrics in the body of the target lyrics based on the identification of the target lyrics, and then determine the pronunciation of the polysyllabic words in each line of lyrics, as well as the display information of each pronunciation, and then add multiple lyrics in each line of lyrics. The pronunciation of the phonetic words and the display information of each pronunciation are respectively stored in the additional part of the target lyrics text. For example, in Figure 4, it can be stored in the following format:
“[kana2:读音、以及读音的展示信息]"[Kana2: pronunciation, and display information of pronunciation]
[kana6:读音、以及读音的展示信息][kana6: pronunciation and display information of pronunciation]
[……]”其中。[……]"among them.
其中,2表示第二行歌词对应的多音字词的注音,6表示第六行歌词对应的多音字词的注音,注音中包括读音、以及读音的展示信息。Among them, 2 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the second line, and 6 represents the phonetic notation of the polyphonic word corresponding to the lyrics in the sixth line. The phonetic includes the pronunciation and the display information of the pronunciation.
方式二:将目标歌词中多音字词的读音,以及目标歌词中多音字词的读音的展示信息,存储至目标歌词对应的注音文件。Method two: storing the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics into the Zhuyin file corresponding to the target lyrics.
其中,注音文件是用于存储多音字词的读音、以及读音的展示信息的文件,每个歌词对应有一个注音文件,使用歌词的标识进行区分。在没有存储读音以及读音的展示信息时,注音文件依然存储,只不过是空的,或者,在没有存储读音以及读音的展示信息时,没有注音文件,在存储时新建。The Zhuyin file is a file used to store the pronunciation of polyphonic words and the display information of the pronunciation. Each lyrics corresponds to a Zhuyin file, which is distinguished by the identifier of the lyrics. When the pronunciation and the display information of the pronunciation are not stored, the Zhuyin file is still stored, but is empty, or when the pronunciation and the display information of the pronunciation are not stored, there is no Zhuyin file, which is newly created upon storage.
在实施中,服务器可以基于目标歌词的标识,获取目标歌词的注音文件,然后在注音文件中,按照文本的记录格式,将多音字词的读音、以及多音字词的读音的展示信息,存储在注音文件中,例如,可以以“kana:[开始播放标识]振假名[开始播放标识]振假名……”的格式存储。In implementation, the server may obtain the phonetic transcription of the target lyrics based on the identification of the target lyrics, and then display the polyphonic pronunciation and the display information of the polyphonic words in the Zhuyin file according to the text recording format. It is stored in the Zhuyin file, for example, it can be stored in the format of "kana: [starting playback logo] hiragana [starting playback logo] hiragana ...".
需要说明的是,对于步骤503中,展示信息为多音字词中汉字的数目。多音字词为“絆”(中文意思是“牵绊”),歌词正文中存储的是“(40576)絆”,“絆”的读音为“きずな”,可以在附加部分或注音文件中存储“kana:1きずな”,“1”表示是一个字的读音,也就是“絆”的读音,由于三个振假名的播放时长相同,可以基于歌词正文中“絆”的开始播放标识与“絆”后一个字的开始播放标识(如果开始播放标识是时间戳,两个时间戳之差的绝对值即为三个振假名的总播放时长),确定出三个振假名的总播放时长,然后除以三,得到三个振假名中每个振假名的播放时长。It should be noted that, in step 503, the display information is the number of Chinese characters in the polysyllabic word. The polyphonic word is "trip" (Chinese meaning "dipping"), and "(40576) trip" is stored in the body of the lyrics. The pronunciation of "trip" is "き ず な", which can be stored in the additional part or Zhuyin file "Kana: 1 き ず な", "1" means the pronunciation of a word, that is, the pronunciation of "trip". Since the playing time of the three kana names is the same, you can use the "trip" start sign and "trip" in the lyrics text "The next character ’s start playback identifier (if the start playback identifier is a timestamp, the absolute value of the difference between the two timestamps is the total playing time of the three kana names), determine the total playing time of the three kana names, and Divide by three to get the playing time of each of the three hiraganas.
对于步骤503中,展示信息为多音字词中汉字的数目、以及多音字词的读音中每个振假名的开始播放标识,多音字词为“欠片”(中文意思是“碎片”),歌词正文中存储的是“(40569)欠片”。“欠片”读音为“かけら”,可以在附加部分或注音文件中存储“kana:2か(1000)け(1500)ら(2000)”,“2”表示是两个字的读音,也就是“欠片”的读音,由于三个振假名的播放时长不相同,可以为每个振假名标记开始播放标识,“1000”、“1500”“2000”表示开始播放标识。另外,附加部分或注音文件中存储的还可以是“kana:2か(1000,500)け(1500,500)ら(2000,1000)”,500、500、1000分别表示“か”、“け”、“ら”的播放时长。For step 503, the display information is the number of Chinese characters in the polysyllabic word, and the start playing identifier of each kana in the pronunciation of the polysyllabic word, and the polysyllabic word is "owed" (Chinese meaning "fragment") The "(40569) owing piece" is stored in the lyrics text. The "under film" is pronounced as "か け ら". You can store "kana: 2 か (1000) け (1500) ら (2000)" in the additional part or Zhuyin file. "2" means the pronunciation of two words, that is, " Due to the difference in the playing time of the three kana names, it is possible to mark a start mark for each of the kana names, and "1000", "1500", and "2000" indicate the start of the mark. In addition, "kana: 2 か (1000,500) け (1500,500) ら (2000,1000)" can be stored in the additional part or Zhuyin file, and 500, 500, and 1000 respectively indicate "か" and "け" "," ら "playing time.
需要说明的是,对于展示信息为多音字词中汉字的数目、以及多音字词的读音中每个振假名的开始播放标识,或多音字词的汉字的数目,后续在使用过程中,在获取目标歌词时,服务器可以获取目标歌词的歌词正文的编码,然后根据获取到的编码,确定目标歌词正文中哪些词是多音字词,需要标注读音,确定目标歌词正文中第一个多音字词,然后确定第一个多音字词中汉字的数目为“kana:”中第一个数目,将第一个多音字词与“kana:”中的第一个读音对应,并确定目标歌词正文中第二个多音字词,第二个多音字词中汉字的数目为“kana:”中第二个数目,将第二个多音字词与“kana:”中的二个读音对应,依次类推。例如,在目标歌词正文中确定出的第一个多音字词为“欠片”,汉字数目为2,在注音中第一个读音为2かけら,可以将“かけら”确定为“欠片”的读音。It should be noted that the display information is the number of Chinese characters in polysyllabic words, and the start of each hiragana in the pronunciation of polysyllabic words, or the number of Chinese characters in polysyllabic words. When obtaining the target lyrics, the server can obtain the encoding of the lyrics text of the target lyrics, and then determine which words in the target lyrics text are polysyllabic words based on the obtained encoding, and need to mark the pronunciation to determine the first of the target lyrics text. Polysyllabic words, then determine the number of Chinese characters in the first polysyllabic word to be the first number in "kana:", and map the first polysyllabic word to the first pronunciation in "kana:", And determine the second polyphonic word in the target lyrics text, the number of Chinese characters in the second polyphonic word is the second number in "kana:", and the second polyphonic word in "kana:" The two pronunciations correspond to, and so on. For example, the first polyphonic word identified in the text of the target lyrics is "owed", the number of Chinese characters is 2, and the first pronunciation in the Zhuyin is 2 か け ら. You can determine "か け ら" as the pronunciation of "owed" .
本公开实施例中,将歌词中多音字词的读音、以及读音的展示信息与歌词对应存储,这样,后续在播放歌曲时,直接基于歌词,就可以获取到多音字词的读音和读音的展示信息,而无需实时查询,所以提高了显示歌词注音的效率。In the embodiment of the present disclosure, the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics. Display information without real-time query, so it improves the efficiency of displaying lyrics and phonetic notation.
另外,在本公开上述两个实施例中,还提供了服务器自己确定多音字词的读音的方法,相应的处理可以如下:In addition, in the above two embodiments of the present disclosure, a method for the server to determine the pronunciation of a polyphonic word is also provided. The corresponding processing may be as follows:
服务器中设置有词典,词典中记录有多个多音字词的读音、原型以及词性,以及与不同的词相邻时,不同的读音,例如,日语中“思出”,在“思い出を”(中文意思是“把回忆”)中“思”的读音为“おも”,“出”的读音为“で”,在“思い出し”(中文意思是“请想起回忆”)中“思”的读音为“おも”,“出”的读音为“だ”。所以在实际查找词典时,可以使用最长匹配原则,查看多音字词的后一个字或多个字,得到该多用词的读音。另外,还可以使用其它方式进行确定对多音,此处仅为一种可行的方式。A dictionary is set in the server, and the pronunciations, prototypes, and parts of speech of multiple polyphonic words are recorded in the dictionary. When adjacent to different words, the pronunciation is different. For example, "think out" in Japanese and "think out" in Japanese ("Memorize" in Chinese) is pronounced as "お も" and "out" is pronounced as ",", in "思 い 出 し" (meaning "please remember the memory") The pronunciation is "お も", and the pronunciation of "out" is "だ". Therefore, when actually searching a dictionary, you can use the longest matching principle to look at the next word or multiple words of a polyphone word to get the pronunciation of the polyphone word. In addition, other methods can also be used to determine the multi-tone, here is only a feasible way.
另外,对于本公开上述两个实施例中,在附加部分中,存储读音时,不一定是“kana:[开始播放标识]振假名[开始播放标识]振假名……”,还可以使用“[syllables(中文意思是“音节”):[开始播放标识]振假名[开始播放标识]振假名……”或“[syll(中文意思是“音节”):[开始播放标识]振假名[开始播放标识]振假名……”,或者其它方式。歌词正文的附加部分一般是设置在歌词正文的前面,同理还可以设置歌词正文的后面。In addition, for the above two embodiments of the present disclosure, in the additional part, when the pronunciation is stored, it may not necessarily be "kana: [start playing mark] katakana [start playing mark] katakana ...", you can also use "[ syllables (Chinese meaning "syllable"): [start playing logo] hyakana [start playing logo] hyakana ... "or" [syll (Chinese meaning "syllable"): [start playing logo] hyakana [start playing ID] Hiragana ... ", or other means. The additional part of the lyrics text is generally set in front of the lyrics text, and the same can be set behind the lyrics text.
还需要说明的是,本公开上述两个实施例中的存储方式可以应用于使用卡拉OK格式的歌词。本公开实施例中,用日语中的歌曲进行方案的描述,同样可以用于其他语言歌词中多音字词的渲染,如法语、英语等。It should also be noted that the storage manners in the above two embodiments of the present disclosure can be applied to lyrics using karaoke format. In the embodiment of the present disclosure, the description of the scheme using songs in Japanese can also be used for rendering polyphonic words in lyrics in other languages, such as French, English, and the like.
基于相同的技术构思,本公开实施例还提供了一种存储歌词注音的装置,如图6所示,该装置包括:Based on the same technical concept, an embodiment of the present disclosure further provides a device for storing lyrics Zhuyin, as shown in FIG. 6, the device includes:
接收模块610,用于接收目标歌词的注音存储请求;A receiving module 610, configured to receive a Zhuyin storage request for a target lyrics;
获取模块620,用于获取所述目标歌词中多音字词的读音,并确定所述多音字词的读音中各振假名的播放时长;An obtaining module 620, configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word;
确定模块630,用于对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息,如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词的读音中第一个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;A determining module 630, configured to obtain, for any polyphonic word in the polyphonic word, the pronunciation of the polyphonic word if the playing time of each kana is different in the pronunciation of the polyphonic word The start playing identifier of each hiragana is determined to be the display information of the pronunciation of the polyphonic word. If the playing time of each of the hiragana in the pronunciation of the polyphonic word is the same, the polyphonic word is obtained. The start play identifier of the first hiragana in the pronunciation is determined as the display information of the pronunciation of the polyphonic word;
存储模块640,用于将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The storage module 640 is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
可选的,所述存储模块640,用于:Optionally, the storage module 640 is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
可选的,所述存储模块640,用于:Optionally, the storage module 640 is configured to:
确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
可选的,所述存储模块640,用于:Optionally, the storage module 640 is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
基于相同的技术构思,本公开实施例还提供了一种存储歌词注音的装置,如图7所示,该装置包括:Based on the same technical concept, an embodiment of the present disclosure further provides a device for storing lyrics Zhuyin, as shown in FIG. 7, the device includes:
第一接收模块710,用于接收目标歌词的注音存储请求;A first receiving module 710, configured to receive a Zhuyin storage request for a target lyrics;
第一获取模块720,用于获取所述目标歌词中多音字词的读音,并确定所述目标歌词的多音字词的读音中各振假名的播放时长;A first obtaining module 720, configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word in the target lyrics;
第一确定模块730,用于对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词中汉字的数目、以及所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词中汉字的数目,确定为所述多音字词的读音的展示信息;The first determining module 730 is configured to obtain, for any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, the polyphonic word is obtained. The number of Chinese characters, and the start playing identifier of each kana in the pronunciation of the polyphonic word are determined as the display information of the pronunciation of the polyphonic word; The length of the pseudonym is the same, then the number of Chinese characters in the polyphonic word is obtained, and it is determined as the display information of the pronunciation of the polyphonic word;
第一存储模块740,用于将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The first storage module 740 is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
可选的,所述第一存储模块740,用于:Optionally, the first storage module 740 is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
可选的,所述第一存储模块740,用于:Optionally, the first storage module 740 is configured to:
确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音 的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in additional parts of the target lyrics text.
可选的,所述第一存储模块740,用于Optionally, the first storage module 740 is configured to:
将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
本公开实施例中,将歌词中多音字词的读音、以及读音的展示信息与歌词对应存储,这样,后续在播放歌曲时,直接基于歌词,就可以获取到多音字词的读音和读音的展示信息,而无需实时查询,所以提高了显示歌词注音的效率。In the embodiment of the present disclosure, the pronunciation of the polyphonic word in the lyrics and the display information of the pronunciation are correspondingly stored with the lyrics, so that when the song is played back later, the pronunciation and pronunciation of the polyphonic word can be obtained directly based on the lyrics. Display information without real-time query, so it improves the efficiency of displaying lyrics and phonetic notation.
需要说明的是:上述实施例提供的存储歌词注音的装置在存储歌词注音时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的存储歌词注音的装置与存储注音的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the device for storing lyrics phonetic notation provided in the foregoing embodiment only uses the division of the above functional modules as an example to explain the storage of the lyrics phonetic notation. In practical applications, the above functions may be allocated by different functional modules as required. Finished, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for storing lyrics and phonetic notation provided by the foregoing embodiment belongs to the same concept as the embodiment of the method for storing phonetic notation, and the specific implementation process thereof is detailed in the method embodiment, and details are not described herein again.
图8示出了本公开一个示例性实施例提供的终端800的结构框图。该终端800可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端800还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 8 shows a structural block diagram of a terminal 800 provided by an exemplary embodiment of the present disclosure. The terminal 800 can be: smartphone, tablet, MP3 player (Moving Picture Experts Group Audio Layer III, moving image expert compression standard audio level 3), MP4 (Moving Picture Expert Experts Group Audio Audio Layer IV, moving image expert compression standard audio Level 4) Player, laptop or desktop computer. The terminal 800 may also be called other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
通常,终端800包括有:处理器801和存储器802。Generally, the terminal 800 includes a processor 801 and a memory 802.
处理器801可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器801可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器801也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器801可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器801还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用 于处理有关机器学习的计算操作。The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 801 may use at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). achieve. The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also called a CPU (Central Processing Unit). The coprocessor is Low-power processor for processing data in standby. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
存储器802可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器802还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器802中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器801所执行以实现本申请中方法实施例提供的存储歌词注音的方法。The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 801 to implement the stored lyrics provided by the method embodiments in this application. Zhuyin method.
在一些实施例中,终端800还可选包括有:外围设备接口803和至少一个外围设备。处理器801、存储器802和外围设备接口803之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口803相连。具体地,外围设备包括:射频电路804、触摸显示屏805、摄像头806、音频电路807、定位组件808和电源809中的至少一种。In some embodiments, the terminal 800 may optionally include a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802, and the peripheral device interface 803 may be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 803 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 804, a touch display screen 805, a camera 806, an audio circuit 807, a positioning component 808, and a power supply 809.
外围设备接口803可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器801和存储器802。在一些实施例中,处理器801、存储器802和外围设备接口803被集成在同一芯片或电路板上;在一些其他实施例中,处理器801、存储器802和外围设备接口803中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 801, the memory 802, and the peripheral device interface 803 or Both can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
射频电路804用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路804通过电磁信号与通信网络以及其他通信设备进行通信。射频电路804将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路804包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路804可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路804还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 804 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to, a metropolitan area network, mobile communication networks of various generations (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) circuits, which are not limited in this application.
显示屏805用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏805是触摸显示屏时,显示屏805还具有采集在显示屏805的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器801进行处理。此时,显示屏805还可以 用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏805可以为一个,设置终端800的前面板;在另一些实施例中,显示屏805可以为至少两个,分别设置在终端800的不同表面或呈折叠设计;在再一些实施例中,显示屏805可以是柔性显示屏,设置在终端800的弯曲表面上或折叠面上。甚至,显示屏805还可以设置成非矩形的不规则图形,也即异形屏。显示屏805可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on or above the surface of the display screen 805. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 may also be used to provide virtual buttons and / or virtual keyboards, which are also called soft buttons and / or soft keyboards. In some embodiments, the display screen 805 may be one, and the front panel of the terminal 800 is provided. In other embodiments, the display screen 805 may be at least two, which are respectively provided on different surfaces of the terminal 800 or have a folded design. In still other embodiments, the display screen 805 may be a flexible display screen disposed on a curved surface or a folded surface of the terminal 800. Furthermore, the display screen 805 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
摄像头组件806用于采集图像或视频。可选地,摄像头组件806包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件806还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera component 806 is used for capturing images or videos. Optionally, the camera component 806 includes a front camera and a rear camera. Generally, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, each of which is a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the integration of the main camera and the depth-of-field camera. Integrate with a wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other fusion shooting functions. In some embodiments, the camera assembly 806 may further include a flash. The flash can be a monochrome temperature flash or a dual color temperature flash. A dual color temperature flash is a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
音频电路807可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器801进行处理,或者输入至射频电路804以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端800的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器801或射频电路804的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路807还可以包括耳机插孔。The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 801 for processing, or input them to the radio frequency circuit 804 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively disposed at different parts of the terminal 800. The microphone can also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker can be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for ranging purposes. In some embodiments, the audio circuit 807 may further include a headphone jack.
定位组件808用于定位终端800的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件808可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯系统或欧盟的伽利略系统的定位组件。The positioning component 808 is used to locate the current geographic position of the terminal 800 to implement navigation or LBS (Location Based Service). The positioning component 808 may be a positioning component based on the United States' GPS (Global Positioning System, Global Positioning System), China's Beidou system, Russia's Granus system, or the European Union's Galileo system.
电源809用于为终端800中的各个组件进行供电。电源809可以是交流电、直流电、一次性电池或可充电电池。当电源809包括可充电电池时,该可充电 电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。The power supply 809 is used to power various components in the terminal 800. The power source 809 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power source 809 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,终端800还包括有一个或多个传感器810。该一个或多个传感器810包括但不限于:加速度传感器811、陀螺仪传感器812、压力传感器813、指纹传感器814、光学传感器815以及接近传感器816。In some embodiments, the terminal 800 further includes one or more sensors 810. The one or more sensors 810 include, but are not limited to, an acceleration sensor 811, a gyroscope sensor 812, a pressure sensor 813, a fingerprint sensor 814, an optical sensor 815, and a proximity sensor 816.
加速度传感器811可以检测以终端800建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器811可以用于检测重力加速度在三个坐标轴上的分量。处理器801可以根据加速度传感器811采集的重力加速度信号,控制触摸显示屏805以横向视图或纵向视图进行用户界面的显示。加速度传感器811还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 811 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established by the terminal 800. For example, the acceleration sensor 811 may be used to detect components of the acceleration of gravity on three coordinate axes. The processor 801 may control the touch display screen 805 to display a user interface in a horizontal view or a vertical view according to a gravity acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for collecting motion data of a game or a user.
陀螺仪传感器812可以检测终端800的机体方向及转动角度,陀螺仪传感器812可以与加速度传感器811协同采集用户对终端800的3D动作。处理器801根据陀螺仪传感器812采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyro sensor 812 can detect the body direction and rotation angle of the terminal 800, and the gyro sensor 812 can cooperate with the acceleration sensor 811 to collect a 3D motion of the user on the terminal 800. Based on the data collected by the gyro sensor 812, the processor 801 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
压力传感器813可以设置在终端800的侧边框和/或触摸显示屏805的下层。当压力传感器813设置在终端800的侧边框时,可以检测用户对终端800的握持信号,由处理器801根据压力传感器813采集的握持信号进行左右手识别或快捷操作。当压力传感器813设置在触摸显示屏805的下层时,由处理器801根据用户对触摸显示屏805的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 813 may be disposed on a side frame of the terminal 800 and / or a lower layer of the touch display screen 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, a user's holding signal to the terminal 800 can be detected, and the processor 801 can perform left-right hand recognition or quick operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed in the lower layer of the touch display screen 805, the processor 801 operates according to the user's pressure on the touch display screen 805 to control the operable controls on the UI interface. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
指纹传感器814用于采集用户的指纹,由处理器801根据指纹传感器814采集到的指纹识别用户的身份,或者,由指纹传感器814根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器801授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器814可以被设置终端800的正面、背面或侧面。当终端800上设置有物理按键或厂商Logo时,指纹传感器814可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 814 is used to collect a user's fingerprint, and the processor 801 recognizes the identity of the user based on the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 recognizes the identity of the user based on the collected fingerprint. When identifying the user's identity as a trusted identity, the processor 801 authorizes the user to perform related sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 814 may be provided on the front, back, or side of the terminal 800. When a physical button or a manufacturer's logo is set on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the manufacturer's logo.
光学传感器815用于采集环境光强度。在一个实施例中,处理器801可以根据光学传感器815采集的环境光强度,控制触摸显示屏805的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏805的显示亮度;当环境光强度较低时,调低触摸显示屏805的显示亮度。在另一个实施例中,处理器801还 可以根据光学传感器815采集的环境光强度,动态调整摄像头组件806的拍摄参数。The optical sensor 815 is used to collect ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the touch display screen 805 according to the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 805 is decreased. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera component 806 according to the ambient light intensity collected by the optical sensor 815.
接近传感器816,也称距离传感器,通常设置在终端800的前面板。接近传感器816用于采集用户与终端800的正面之间的距离。在一个实施例中,当接近传感器816检测到用户与终端800的正面之间的距离逐渐变小时,由处理器801控制触摸显示屏805从亮屏状态切换为息屏状态;当接近传感器816检测到用户与终端800的正面之间的距离逐渐变大时,由处理器801控制触摸显示屏805从息屏状态切换为亮屏状态。The proximity sensor 816, also called a distance sensor, is usually disposed on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the terminal 800 gradually becomes smaller, the processor 801 controls the touch display screen 805 to switch from the bright screen state to the closed screen state; when the proximity sensor 816 detects When the distance between the user and the front of the terminal 800 gradually increases, the touch display screen 805 is controlled by the processor 801 to switch from the screen state to the bright screen state.
本领域技术人员可以理解,图8中示出的结构并不构成对终端800的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 8 does not constitute a limitation on the terminal 800, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps for implementing the foregoing embodiments may be implemented by hardware, or may be instructed by a program to complete related hardware. The program may be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk.
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement, or improvement made within the spirit and principles of the present disclosure shall be included in the protection of the present disclosure. Within range.

Claims (16)

  1. 一种存储歌词注音的方法,其特征在于,所述方法包括:A method for storing lyrics Zhuyin, wherein the method includes:
    接收目标歌词的注音存储请求;Receive the Zhuyin storage request of the target lyrics;
    获取所述目标歌词中多音字词的读音,并确定所述多音字词的读音中各振假名的播放时长;Acquiring the pronunciation of the polyphonic word in the target lyrics, and determining the playing duration of each kana in the pronunciation of the polyphonic word;
    对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息,如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词的读音中第一个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;For any polysyllabic word in the polysyllabic word, if the playing time of each kana is different in the pronunciation of the polysyllabic word, the The start of playing the identifier is determined as the display information of the pronunciation of the polyphonic word. If the playing time of each kana in the pronunciation of the polyphonic word is the same, the first pronunciation of the polyphonic word is obtained. The start playing identifier of the kana is determined to be display information of the pronunciation of the polyphonic word;
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:The method according to claim 1, wherein the storage of the polyphonic words in the target lyrics and the display information of the polyphonic words in the target lyrics are stored in correspondence with the target lyrics ,include:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分,包括:The method according to claim 2, wherein the storing of the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics are stored in the target lyrics Additional parts of the body including:
    确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
    将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  4. 根据权利要求1所述的方法,其特征在于,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:The method according to claim 1, wherein the storage of the polyphonic words in the target lyrics and the display information of the polyphonic words in the target lyrics are stored in correspondence with the target lyrics ,include:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  5. 一种存储歌词注音的方法,其特征在于,所述方法包括:A method for storing lyrics Zhuyin, wherein the method includes:
    接收目标歌词的注音存储请求;Receive the Zhuyin storage request of the target lyrics;
    获取所述目标歌词中多音字词的读音,并确定所述目标歌词的多音字词的读音中各振假名的播放时长;Acquiring the pronunciation of the polyphonic word in the target lyrics, and determining the playing time of each kana in the pronunciation of the polyphonic word in the target lyrics;
    对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词中汉字的数目、以及所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词中汉字的数目,确定为所述多音字词的读音的展示信息;For any polysyllabic word in the polysyllabic word, if the playing time of each kana is different in the pronunciation of the polysyllabic word, then the number of Chinese characters in the polysyllabic word and the The start playing identifier of each polyphonic word in the pronunciation of the polyphonic word is determined as the display information of the pronunciation of the polyphonic word; if the playing duration of each polyphonic name in the pronunciation of the polyphonic word is the same, obtain The number of Chinese characters in the polyphonic word is determined as display information of the pronunciation of the polyphonic word;
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in correspondence with the target lyrics.
  6. 根据权利要求5所述的方法,其特征在于,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:The method according to claim 5, wherein the storage of the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics are stored in correspondence with the target lyrics ,include:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  7. 根据权利要求6所述的方法,其特征在于,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分,包括:The method according to claim 6, wherein the storing of the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics are stored in the target lyrics Additional parts of the body including:
    确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
    将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  8. 根据权利要求5所述的方法,其特征在于,所述将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储,包括:The method according to claim 5, wherein the storage of the pronunciation of the polyphonic words in the target lyrics and the display information of the pronunciation of the polyphonic words in the target lyrics are stored in correspondence with the target lyrics ,include:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  9. 一种存储歌词注音的装置,其特征在于,所述装置包括:A device for storing lyrics Zhuyin, characterized in that the device includes:
    接收模块,用于接收目标歌词的注音存储请求;A receiving module for receiving a Zhuyin storage request of a target lyrics;
    获取模块,用于获取所述目标歌词中多音字词的读音,并确定所述多音字词的读音中各振假名的播放时长;An obtaining module, configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word;
    确定模块,用于对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息,如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词的读音中第一个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;A determining module, configured to, for any polyphonic word in the polyphonic word, if the playing time of each kana in the pronunciation of the polyphonic word is different, obtaining the The start playing identifier of each hiragana is determined to be display information of the pronunciation of the polyphonic word. If the playing time of each of the hiragana in the pronunciation of the polyphonic word is the same, then the The start playing identifier of the first kana in the pronunciation is determined as the display information of the pronunciation of the polyphonic word;
    存储模块,用于将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息与所述目标歌词对应存储。The storage module is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics in correspondence with the target lyrics.
  10. 根据权利要求9所述的装置,其特征在于,所述存储模块,用于:The device according to claim 9, wherein the storage module is configured to:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  11. 根据权利要求10所述的方法,其特征在于,所述存储模块,用于:The method according to claim 10, wherein the storage module is configured to:
    确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
    将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  12. 根据权利要求9所述的方法,其特征在于,所述存储模块,用于:The method according to claim 9, wherein the storage module is configured to:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
  13. 一种存储歌词注音的装置,其特征在于,所述装置包括:A device for storing lyrics Zhuyin, characterized in that the device includes:
    第一接收模块,用于接收目标歌词的注音存储请求;A first receiving module, configured to receive a Zhuyin storage request for a target lyrics;
    第一获取模块,用于获取所述目标歌词中多音字词的读音,并确定所述目标歌词的多音字词的读音中各振假名的播放时长;A first obtaining module, configured to obtain the pronunciation of the polyphonic word in the target lyrics, and determine the playing duration of each kana in the pronunciation of the polyphonic word in the target lyrics;
    第一确定模块,用于对于所述多音字词中任一多音字词,如果所述多音字词的读音中各振假名的播放时长不相同,则获取所述多音字词中汉字的数目、以及所述多音字词的读音中每个振假名的开始播放标识,确定为所述多音字词的读音的展示信息;如果所述多音字词的读音中各振假名的播放时长相同,则获取所述多音字词中汉字的数目,确定为所述多音字词的读音的展示信息;A first determining module, configured to: for any polyphone word in the polyphone word, if the play time of each kana in the pronunciation of the polyphone word is different, obtain the The number of Chinese characters, and the start playing identifier of each kana in the pronunciation of the polyphonic word are determined to be display information of the pronunciation of the polyphonic word; If the playing time is the same, then the number of Chinese characters in the polyphonic word is obtained, and it is determined as the display information of the pronunciation of the polyphonic word;
    第一存储模块,用于将所述目标歌词中多音字词的读音,以及所述目标歌 词中多音字词的读音的展示信息与所述目标歌词对应存储。A first storage module is configured to store the pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target song in correspondence with the target lyrics.
  14. 根据权利要求13所述的装置,其特征在于,所述第一存储模块,用于:The apparatus according to claim 13, wherein the first storage module is configured to:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in an additional part of the text of the target lyrics.
  15. 根据权利要求14所述的装置,其特征在于,所述第一存储模块,用于:The apparatus according to claim 14, wherein the first storage module is configured to:
    确定所述目标歌词中每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息;Determining the pronunciation of the polyphonic word in each line of the target lyrics and the display information of the pronunciation of the polyphonic word in each line of the lyrics;
    将所述每行歌词中多音字词的读音、以及所述每行歌词中多音字词的读音的展示信息,分别存储至所述目标歌词正文的附加部分。The pronunciation of the polyphonic word in each line of lyrics and the display information of the pronunciation of the polyphonic word in each line of lyrics are respectively stored in the additional parts of the target lyrics text.
  16. 根据权利要求13所述的装置,其特征在于,所述第一存储模块,用于The apparatus according to claim 13, wherein the first storage module is configured to:
    将所述目标歌词中多音字词的读音,以及所述目标歌词中多音字词的读音的展示信息,存储至所述目标歌词对应的注音文件。The pronunciation of the polyphonic word in the target lyrics and the display information of the pronunciation of the polyphonic word in the target lyrics are stored in the Zhuyin file corresponding to the target lyrics.
PCT/CN2018/116591 2018-05-25 2018-11-21 Method and device for storing lyric phonetic notations WO2019223268A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SG11202011731PA SG11202011731PA (en) 2018-05-25 2018-11-21 Method and device for storing lyric phonetic notations

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810545601.9 2018-05-25
CN201810545601.9A CN108763521B (en) 2018-05-25 2018-05-25 Method and device for storing lyric phonetic notation

Publications (1)

Publication Number Publication Date
WO2019223268A1 true WO2019223268A1 (en) 2019-11-28

Family

ID=64000990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116591 WO2019223268A1 (en) 2018-05-25 2018-11-21 Method and device for storing lyric phonetic notations

Country Status (3)

Country Link
CN (1) CN108763521B (en)
SG (1) SG11202011731PA (en)
WO (1) WO2019223268A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763521B (en) * 2018-05-25 2022-02-25 腾讯音乐娱乐科技(深圳)有限公司 Method and device for storing lyric phonetic notation
CN111797252A (en) * 2020-06-05 2020-10-20 福建星网视易信息系统有限公司 Song auxiliary information display method and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793364A (en) * 2014-01-23 2014-05-14 北京百度网讯科技有限公司 Method and device for conducting automatic phonetic notation processing and display on text
CN104021152A (en) * 2014-05-19 2014-09-03 广州酷狗计算机科技有限公司 Picture display method and device based on audio file playing
CN104681049A (en) * 2015-02-09 2015-06-03 广州酷狗计算机科技有限公司 Prompting information display method and device
CN108763521A (en) * 2018-05-25 2018-11-06 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus for storing lyrics phonetic notation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937972B (en) * 2012-10-15 2016-06-22 上海外教社信息技术有限公司 A kind of audiovisual subtitle making system and method
GB2514753A (en) * 2013-03-14 2014-12-10 Buzzmywords Ltd Subtitle processing
CN103942190B (en) * 2014-04-16 2017-08-25 科大讯飞股份有限公司 Phonetic synthesis Chinese version segmenting method and system
CN104142909B (en) * 2014-05-07 2016-04-27 腾讯科技(深圳)有限公司 A kind of phonetic annotation of Chinese characters method and device
CN104795082B (en) * 2015-03-26 2019-06-21 广州酷狗计算机科技有限公司 Audio caption presentation method, device and player
JP6642367B2 (en) * 2016-09-30 2020-02-05 ブラザー工業株式会社 Karaoke device and karaoke program
CN106570001B (en) * 2016-10-24 2018-10-23 广州酷狗计算机科技有限公司 A kind of method and device of transliteration word

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793364A (en) * 2014-01-23 2014-05-14 北京百度网讯科技有限公司 Method and device for conducting automatic phonetic notation processing and display on text
CN104021152A (en) * 2014-05-19 2014-09-03 广州酷狗计算机科技有限公司 Picture display method and device based on audio file playing
CN104681049A (en) * 2015-02-09 2015-06-03 广州酷狗计算机科技有限公司 Prompting information display method and device
CN108763521A (en) * 2018-05-25 2018-11-06 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus for storing lyrics phonetic notation

Also Published As

Publication number Publication date
CN108763521B (en) 2022-02-25
CN108763521A (en) 2018-11-06
SG11202011731PA (en) 2020-12-30

Similar Documents

Publication Publication Date Title
CN110491358B (en) Method, device, equipment, system and storage medium for audio recording
CN110933330A (en) Video dubbing method and device, computer equipment and computer-readable storage medium
WO2019114514A1 (en) Method and apparatus for displaying pitch information in live broadcast room, and storage medium
WO2019223394A1 (en) Method and apparatus for generating lyrics, method and apparatus for displaying lyrics, electronic device, and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN110572716B (en) Multimedia data playing method, device and storage medium
WO2022057435A1 (en) Search-based question answering method, and storage medium
CN112735429B (en) Method for determining lyric timestamp information and training method of acoustic model
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
WO2022134634A1 (en) Video processing method and electronic device
CN110996167A (en) Method and device for adding subtitles in video
CN111081277B (en) Audio evaluation method, device, equipment and storage medium
CN111092991B (en) Lyric display method and device and computer storage medium
WO2020253129A1 (en) Song display method, apparatus and device, and storage medium
WO2019223393A1 (en) Method and apparatus for generating lyrics, method and apparatus for displaying lyrics, electronic device, and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
WO2019223268A1 (en) Method and device for storing lyric phonetic notations
CN110798327A (en) Message processing method, device and storage medium
CN111428079B (en) Text content processing method, device, computer equipment and storage medium
CN111312207B (en) Text-to-audio method, text-to-audio device, computer equipment and storage medium
US11604919B2 (en) Method and apparatus for rendering lyrics
CN112786025B (en) Method for determining lyric timestamp information and training method of acoustic model
KR102488359B1 (en) Method and apparatus for processing lexical database
CN108831423B (en) Method, device, terminal and storage medium for extracting main melody tracks from audio data
CN110232135B (en) Song playing method and device, terminal and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18919677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.05.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18919677

Country of ref document: EP

Kind code of ref document: A1