A control method for playing music, a storage medium and a music sofa
By identifying user identity and preference information in the music sofa, the problem of existing technologies being unable to play music according to different user preferences is solved, thus achieving music resource adaptability and privacy protection, and improving the user experience.
Patent Information
- Application Number
- CN202111670647.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2041-12-31
AI Technical Summary
The existing music sofa cannot flexibly play music according to different users' preferences, resulting in some users not being satisfied.
By obtaining playback instructions, it can determine whether a personal account exists. If not, the manufacturer's account is used for playback. If a personal account exists, music is selected based on the consistency between the personnel information and the personal account information, or music is played based on the collection of multiple user preference information to determine the common preference type.
It ensures music compatibility and privacy protection based on user authentication and preference information, guarantees the normal acquisition and playback of music resources, and improves user experience.
Smart Images

Figure CN116415024B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of smart home, in particular to a control method for playing music, a storage medium and a music sofa. BACKGROUND
[0002] The music sofa is installed with a set of stereo sound playing device inside the sofa, and the user can sit in the sofa to enjoy music.
[0003] The current music sofa downloads music into a storage, and then connects the storage with the music sofa. When the music needs to be played, the music sofa obtains music resources from the storage and plays the music.
[0004] According to the related technology in the above, the inventor believes that the user often stores the music he likes in the storage, and no matter who uses the music sofa, the music sofa only plays the stored music, which is easy to cause the situation that some users do not like it. SUMMARY
[0005] In order to play music flexibly according to the user, the present application provides a control method for playing music, a storage medium and a music sofa.
[0006] In the first aspect, the present application provides a control method for playing music, which adopts the following technical scheme:
[0007] A control method for playing music, comprising the following steps:
[0008] obtaining a playing instruction;
[0009] determining whether a personal account is pre-stored,
[0010] if the personal account is not pre-stored, logging in a preset platform with a preset manufacturer account and obtaining music resources from the preset platform to play;
[0011] if the personal account exists, determining personnel information according to the playing instruction, and determining whether the personnel information is consistent with personal information corresponding to the personal account,
[0012] if the personnel information is consistent with the personal information corresponding to the personal account, logging in a corresponding platform with the personal account, determining a corresponding preference type based on the personal information, and playing music of the corresponding preference type;
[0013] if the personnel information is not consistent with the personal information corresponding to the personal account, logging in the corresponding platform with the personal account and playing music randomly.
[0014] By adopting the above technical solution, music resources can be obtained regardless of whether a personal account exists when playing music by voice according to the playback command, so as to ensure the normal playback of music; in addition, the identity of the user who issues the playback command is verified to improve the compatibility of music and protect the privacy of users corresponding to personal accounts.
[0015] Optionally, the playback command can be acquired via voice acquisition and terminal transmission; the personnel information includes personnel voice information and personnel data information; the personal information includes personal voice information and personal data information.
[0016] Determining whether the personnel information matches the personal information corresponding to the personal account includes the following steps:
[0017] If the playback command is obtained by voice, then determine whether the personnel's voice information is consistent with the individual's voice information;
[0018] If the playback command is obtained via terminal transmission, then it is determined whether the personnel data information is consistent with the personal data information.
[0019] Optionally, personnel information can be determined based on playback instructions, including the following steps:
[0020] Determine whether the playback command is obtained via voice.
[0021] If the playback command is obtained by voice, then the voice information of the person is obtained by recognizing the voice.
[0022] If the playback command is not obtained via voice, then determine whether the playback command is obtained via terminal transmission.
[0023] If the playback command is obtained via terminal transmission, then personnel data information is obtained from the corresponding terminal.
[0024] Optionally, after obtaining the playback command, the following steps are included:
[0025] Determine if the number of currently online users is unique;
[0026] If the number of currently online users is unique, then determine whether a personal account has been pre-stored.
[0027] If the number of people currently online is not unique, the preference information of each person online is collected, and music types with common preferences are determined based on all the preference information to be played.
[0028] Optionally, the preference information includes preference records and user information;
[0029] Determining shared music preferences based on preference information includes the following steps:
[0030] determining whether the preference information corresponding to each online user contains a preference record,
[0031] if the preference information contains the preference record, only the preference record is taken as the preference information of the online user;
[0032] if the preference information does not contain the preference record, a regular preference type is determined according to the corresponding user information, and the regular preference type is taken as the preference information of the online user;
[0033] a music type with the highest repetition rate is screened out from the preference information of all the online users as a commonly preferred music type.
[0034] Optionally, the user information includes gender and age.
[0035] determining the regular preference type according to the corresponding user information includes the following steps:
[0036] determining an age range according to the age in the user information;
[0037] determining a user object of the same gender and the same age range according to the user information;
[0038] determining the regular preference type corresponding to the user object.
[0039] Optionally, screening out the music type with the highest repetition rate from the preference information of all the online users as the commonly preferred music type includes the following steps:
[0040] screening out the music type with the highest repetition rate from the preference information of all the online users;
[0041] determining whether the screened-out music type is unique,
[0042] if the screened-out music type is unique, taking the music type as the commonly preferred music type;
[0043] if the screened-out music type is not unique, further screening out a music type with the highest repetition rate of the preference record from the screened-out music types as the commonly preferred music type.
[0044] Optionally, further screening out the music type with the highest repetition rate of the preference record from the screened-out music types as the commonly preferred music type includes the following steps:
[0045] determining whether the music type with the highest repetition rate of the preference record is multiple,
[0046] if the music type with the highest repetition rate of the preference record is unique, taking the music type as the commonly preferred music type;
[0047] If there are multiple music types with the highest repetition rate of the recorded preference, a music type is randomly selected as the commonly preferred music type.
[0048] In a second aspect, the present application provides a computer readable storage medium storing a computer program capable of being loaded by a processor and executing any of the above-mentioned control methods for playing music.
[0049] In a third aspect, the present application provides a music sofa comprising a processor and a music player, wherein the processor controls the music player to work according to the above-mentioned control method for playing music.
[0050] In summary, the present application has at least one of the following beneficial technical effects: when voice playing is performed according to a playing instruction, music resources can be obtained regardless of whether there is a personal account, so as to ensure normal playing of music; in addition, the identity of a user who currently issues the playing instruction is verified, the adaptability of music is improved, and the privacy of a user corresponding to the personal account is protected. BRIEF DESCRIPTION OF DRAWINGS
[0051] Figure 1 is an application scenario of an embodiment of the present application.
[0052] Figure 2 is a step flowchart of an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be described in detail below with reference to the accompanying drawings. Figures 1 to 2 The present application will be further described in detail.
[0054] An embodiment of the present application discloses a control method for playing music. Referring to Figure 1 , the method is applied to a music sofa, and the music sofa has a wireless connection function, a voice control function and a music playing function. To realize the above-mentioned functions, the music sofa is installed with a wireless module, an audio collector, a music player and a processor. The processor is connected with a terminal outside through the wireless module, and the audio collector and the music player are both connected to the processor.
[0055] A control method for playing music, referring to Figure 2 , comprises the following steps:
[0056] S100, obtaining a playing instruction.
[0057] The playing instruction is an instruction for controlling a music player loaded in the music sofa to play music.
[0058] In one embodiment, the playing instruction is specific voice information, that is, a user controls the music sofa through voice.
[0059] For example, the user utters a voice of "A, play music", the audio collector captures the voice of the user and converts it into electronic information, and the processor judges whether the electronic information contains voice information consistent with preset information.
[0060] If the electronic information contains voice information consistent with the preset information, the processor takes the voice information as a play instruction.
[0061] If the electronic information does not contain voice information consistent with the preset information, the processor does not act.
[0062] In one embodiment, the play instruction is a wireless control signal, and the user transmits the wireless control signal to the music sofa through a terminal.
[0063] The terminal can be a mobile terminal such as a mobile phone, a PAD, a notebook computer, etc., or a computer terminal. The wireless transmission mode between the music sofa and the terminal can be Bluetooth, wifi, etc.
[0064] The user transmits the wireless control signal to the music sofa through the terminal, the wireless receiving device transmits the wireless control signal to the processor after receiving it, and the processor judges whether the received wireless control signal is consistent with the preset signal.
[0065] If the received wireless control signal is consistent with the preset signal, the processor takes the wireless control signal as a play instruction.
[0066] Of course, in actual use, the two modes of voice control and terminal control can also be combined. Whether specific voice information is received or a wireless control signal is received, the music sofa can play music.
[0067] S200, judge whether a personal account is pre-stored.
[0068] The personal account refers to the account registered by the user on a certain music platform, and the music can be played through the corresponding music platform using the personal account.
[0069] The pre-stored mode of the personal account can be that the user transmits the personal account and the corresponding password to the music sofa, the processor records the personal account, and directly logs in the music platform through the personal account when the music needs to be played; or the terminal can open the rights to the music sofa, and when the terminal logs in the music platform through the personal account, the music sofa obtains music resources by means of the music platform on the terminal and plays through the player of the music sofa.
[0070] S300, if the personal account is not pre-stored, log in a preset platform with a preset factory account and obtain music resources from the preset platform to play.
[0071] The factory account refers to an account obtained by a manufacturer of the music sofa in cooperation with a music platform, which is recorded in the processor before the music sofa is manufactured.
[0072] The purpose of setting the factory account is to enable normal music playing without a personal account. However, the use of the factory account has certain defects, such as being able to play music only with the music platform cooperating with the manufacturer, being unable to log in the factory account with the terminal to collect the music of interest, and being able to play music only randomly without specifying specific music. Therefore, if there is a personal account, the processor will actively use the personal account to play music.
[0073] S400, if there is a personal account, determining personnel information according to the playing instruction, and judging whether the personnel information is consistent with the personal information corresponding to the personal account.
[0074] The personnel information refers to the information of the user issuing the playing instruction. The personal information is the information pre-existing in the processor to indicate the identity of the user corresponding to the personal account. The personal information includes personal voice information and personal data information. Correspondingly, the personnel information includes personnel voice information and personnel data information.
[0075] Among them, the personnel data information and the personal data information are both the model of the terminal; the personnel voice information and the personal voice information are the timbre of the sound.
[0076] Determining the personnel information according to the playing instruction includes the following steps:
[0077] Judging whether the acquisition mode of the playing instruction is voice acquisition;
[0078] If the acquisition mode of the playing instruction is voice acquisition, obtaining the personnel voice information by recognizing the voice;
[0079] If the acquisition mode of the playing instruction is not voice acquisition, judging whether the acquisition mode of the playing instruction is terminal transmission.
[0080] If the acquisition mode of the playing instruction is terminal transmission, obtaining the personnel data information from the terminal.
[0081] Judging whether the personnel information is consistent with the personal information corresponding to the personal account includes the following steps:
[0082] If the acquisition mode of the playing instruction is voice acquisition, judging whether the personnel voice information is consistent with the personal voice information.
[0083] If the acquisition mode of the playing instruction is terminal transmission, judging whether the personnel data information is consistent with the personal data information.
[0084] If the personnel voice information is consistent with the personal voice information, or the personnel data information is consistent with the personal data information, step S500 is performed.
[0085] If the personnel voice information is inconsistent with the personal voice information, or the personnel data information is inconsistent with the personal data information, step S600 is performed.
[0086] S500, if the personnel information is consistent with the personal information corresponding to the personal account, log in to the corresponding platform with the personal account, determine the corresponding preference type based on the personal information, and play music of the corresponding preference type.
[0087] Playing music based on the corresponding preference of the personal account means that the music player will determine a music type according to the user's listening record corresponding to the personal account, and play music according to the music type to improve user experience.
[0088] If the personal account does not have a corresponding user listening record, it is determined whether the personal account corresponds to a preset song list. If the personal account corresponds to a preset song list, the music in the preset song list is played.
[0089] If the personal account does not correspond to a preset song list, the music in the corresponding music platform resource library is randomly played.
[0090] Of course, when the personnel information is consistent with the personal information corresponding to the personal account, the music in the preset song list can also be played first. If there is no music in the preset song list, the music type is determined according to the user's listening record corresponding to the personal account to play music of the same music type. The above two music playing modes are set by the user.
[0091] S600, if the personnel information is inconsistent with the personal information corresponding to the personal account, log in to the corresponding platform with the personal account and randomly play music.
[0092] The above music playing modes are all for the case where the object issuing the playing instruction is unique, but when multiple people listen to the music played by the sofa at the same time, the music type that each person likes most is often different, and it is difficult to make every user get the best experience, but it is also necessary to avoid music that users hate as much as possible, so the preferences of all users need to be considered when playing music.
[0093] Specifically, after obtaining the playing instruction, the following steps are further included:
[0094] S110, determine whether the number of currently online personnel is unique.
[0095] The current online person refers to a terminal connected with the music sofa at the current time. The terminal can be connected with the music sofa through Bluetooth pairing or be in the same local area network as the music sofa. The two connection methods can reflect the distance between the terminal and the music sofa, thereby indicating that there is a user who can hear the music played by the music sofa.
[0096] S120, if the number of current online persons is unique, performing step S200.
[0097] S130, if the number of current online persons is not unique, collecting preference information of each online person, and determining a common preferred music type according to all the preference information to play.
[0098] The common preferred music type is a music type that can be received by the user corresponding to each terminal.
[0099] The preference information includes a preference record of music played by the terminal and user information recorded in the terminal. Unlike the preference corresponding to the personal account in step S500, which only needs to determine one music type, the preference record of music played by the terminal is to filter all music types with a listening frequency exceeding a preset number. The preset number is set by the user and defaults to 50. The user information refers to information that identifies the user identity, such as gender and age, corresponding to the personal account currently used in the terminal.
[0100] It should be noted that when collecting preference information, not all terminals necessarily have preference records and user information. If there is neither a preference record nor user information in the terminal, the terminal is excluded, and if the number of online persons is unique after excluding the corresponding terminal, step S200 is performed.
[0101] Determining the common preferred music type according to the preference information includes the following steps:
[0102] S131, determining whether the preference information corresponding to each online person contains a preference record,
[0103] S132, if the preference information contains a preference record, only the preference record is used as the preference information of the online person;
[0104] S133, if the preference information does not contain a preference record, determining a regular preference type according to the corresponding user information, and using the regular preference type as the preference information of the online person.
[0105] The regular preference type is a music type that is generally liked by the same gender and the same age group obtained through big data, and at least 5 regular preference types are determined to ensure the accuracy of the selected common preferred music type.
[0106] In one embodiment, determining the regular preference type according to the corresponding user information comprises the following steps:
[0107] Determining the age group according to the age in the user information.
[0108] Determining the user object of the same gender and the same age group according to the user information.
[0109] Determining the regular preference type corresponding to the user object.
[0110] Determining the regular preference type corresponding to the user object, that is, taking the multiple music types played frequently by the user object as the regular preference type through the way of big data statistics.
[0111] S140, filtering out the music type with the highest repetition rate as the common preferred music type according to the preference information of all online persons.
[0112] In one embodiment, filtering out the music type with the highest repetition rate as the common preferred music type according to the preference information of all online persons comprises the following steps:
[0113] Filtering out the music type with the highest repetition rate according to the preference information of all online persons.
[0114] Judging whether the filtered music type is unique.
[0115] If the filtered music type is unique, taking the music type as the common preferred music type.
[0116] If the filtered music type is not unique, further filtering out the music type with the highest repetition rate of the preference record from the filtered music types as the common preferred music type.
[0117] When multiple results are filtered out in the first time, the regular preference type with low accuracy is discarded, and the repetition rate of the preference record is taken as the filtering index purely for further determining more accurate results.
[0118] When multiple results are still filtered out in the second time, one is randomly selected as the common preferred music type.
[0119] The embodiment of the application further provides a computer readable storage medium, which stores a computer program capable of being loaded by a processor and executing any one of the above-mentioned control methods of playing music.
[0120] The embodiment of the application further provides a music sofa, referring to Figure 1The wireless module, the audio collector, the music player and the processor are installed on the music sofa.
[0121] The wireless module comprises a Bluetooth module and a wifi module.
[0122] The processor controls the music player to play music by using the above-mentioned control method of playing music.
[0123] The above are preferred embodiments of the present application, and are not intended to limit the protection scope of the present application, so: all equivalent changes made according to the structure, shape, principle of the present application should be covered within the protection scope of the present application.
Claims
1. A control method of playing music, characterized by, The method comprises the following steps: obtaining a playing instruction; determining whether a personal account is pre-stored, if no personal account is pre-stored, logging in a preset platform with a preset manufacturer account and obtaining music resources from the preset platform for playing; if a personal account exists, determining personal information according to the playing instruction, and determining whether the personal information is consistent with personal information corresponding to the personal account, if the personal information is consistent with the personal information corresponding to the personal account, logging in the corresponding platform with the personal account, determining a corresponding preference type based on the personal information, and playing music of the corresponding preference type; if the personal information is not consistent with the personal information corresponding to the personal account, logging in the corresponding platform with the personal account and playing music randomly.
2. The method according to claim 1, wherein: the playing instruction is obtained in a voice acquisition mode or a terminal transmission mode; the personal information comprises personal voice information and personal data information; and the determination of whether the personal information is consistent with the personal information corresponding to the personal account comprises the following steps: if the playing instruction is obtained in the voice acquisition mode, determining whether the personal voice information is consistent with the personal data information; and if the playing instruction is obtained in the terminal transmission mode, determining whether the personal data information is consistent with the personal data information. The determination of the personal information according to the playing instruction comprises the following steps:
3. The control method of claim 2, wherein, determining whether the playing instruction is obtained in the voice acquisition mode; if the playing instruction is obtained in the voice acquisition mode, obtaining the personal voice information by recognizing the voice; if the playing instruction is not obtained in the voice acquisition mode, determining whether the playing instruction is obtained in the terminal transmission mode, if the playing instruction is obtained in the terminal transmission mode, obtaining the personal data information from the corresponding terminal. After the playing instruction is obtained, the method comprises the following steps:
4. The control method of claim 1, wherein, determining whether the number of currently online persons is unique; if the number of currently online persons is unique, determining whether a personal account is pre-stored; if the number of currently online persons is not unique, collecting preference information of each online person, and determining a commonly preferred music type according to all the preference information for playing. The preference information comprises preference records and user information.
5. The control method of claim 4, wherein: The determination of the commonly preferred music type according to the preference information comprises the following steps: determining whether the preference information of each online person comprises a preference record, if the preference information comprises a preference record, taking only the preference record as the preference information of the online person; if the preference information does not comprise a preference record, determining a regular preference type according to the corresponding user information, and taking the regular preference type as the preference information of the online person; screening out a music type with the highest repetition rate as the commonly preferred music type according to the preference information of all the online persons.
6. The method according to claim 5, wherein: the user information comprises gender and age; and the determination of the regular preference type according to the corresponding user information comprises the following steps: determining an age range according to the age in the user information; determining a user object of the same gender and the same age range according to the user information; and determining a regular preference type corresponding to the user object. 7. The control method of claim 5, wherein, Screening the music type with the highest repetition rate from the preference information of all online users as the common preferred music type, comprising the following steps: Screening the music type with the highest repetition rate from the preference information of all online users; Judging whether the screened music type is unique, If the screened music type is unique, taking the music type as the common preferred music type; If the screened music type is not unique, further screening the music type with the highest repetition rate from the screened music type as the common preferred music type.
8. The control method of claim 6, wherein, Further screening the music type with the highest repetition rate from the screened music type as the common preferred music type, comprising the following steps: Judging whether the music type with the highest repetition rate is unique, If the music type with the highest repetition rate is unique, taking the music type as the common preferred music type; If the music type with the highest repetition rate is not unique, randomly selecting a music type as the common preferred music type.
9. A computer-readable storage medium, characterized in that, A computer program is stored, which can be loaded and executed by the processor to perform the control method of playing music according to any one of claims 1 to 7.
10. A musical sofa, characterized by: A music player comprises a processor and a music player, and the processor controls the music player to work according to the control method of playing music according to any one of claims 1 to 7.
Citation Information
Patent Citations
Music recommendation method and device
CN104636448A
Account login method and device
CN105141619A