CN105702270B - Music playing method and device - Google Patents

Music playing method and device Download PDF

Info

Publication number
CN105702270B
CN105702270B CN201410707458.0A CN201410707458A CN105702270B CN 105702270 B CN105702270 B CN 105702270B CN 201410707458 A CN201410707458 A CN 201410707458A CN 105702270 B CN105702270 B CN 105702270B
Authority
CN
China
Prior art keywords
music
navigation
instruction
playing
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410707458.0A
Other languages
Chinese (zh)
Other versions
CN105702270A (en
Inventor
廖志
钟书成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410707458.0A priority Critical patent/CN105702270B/en
Publication of CN105702270A publication Critical patent/CN105702270A/en
Application granted granted Critical
Publication of CN105702270B publication Critical patent/CN105702270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a music playing method and a device, wherein the method comprises the following steps: receiving a navigation control instruction for triggering navigation operation through a navigation application program; automatically triggering a music playing instruction according to the navigation control instruction through the navigation application program; and playing music according to the music playing instruction. The music playing method and the device provided by the invention receive the navigation control instruction to trigger the navigation operation, and at this time, the automobile is in a state of being used by a user and is about to or is in the process of running. Therefore, the navigation control instruction is used for automatically triggering the music playing instruction, so that music can be played according to the music playing instruction, the music can be automatically played when the automobile is running, complicated manual operation is not needed, and the driving safety can be ensured.

Description

Music playing method and device
Technical Field
The present invention relates to the technical field of multimedia data processing, and in particular, to a music playing method and apparatus.
Background
The automobile provides great convenience for people's trip, and along with the development of technology, the function of car also tends to diversify more and more at present, generally all will be furnished with the music player to alleviate the tired sense that the car owner produced in driving for a long time.
However, the existing music player needs to be manually started by a user, so that the user needs to worry about a series of operations of opening the music player, selecting music and playing music to hear the music when the automobile runs, and when the automobile is provided with multifunctional equipment, the user needs to manually switch to a music playing application program, so that the operation is complex, and potential safety hazards are also brought.
Disclosure of Invention
Therefore, it is necessary to provide a music playing method and device for solving the problems of complicated operation and potential safety hazard of manual music playing by a user in the driving process of an automobile.
A music playing method, the method comprising:
receiving a navigation control instruction for triggering navigation operation through a navigation application program;
automatically triggering a music playing instruction according to the navigation control instruction through the navigation application program;
and playing music according to the music playing instruction.
A music playback device, the device comprising:
the navigation control instruction processing module is used for receiving a navigation control instruction for triggering navigation operation through a navigation application program;
the music playing instruction triggering module is used for automatically triggering a music playing instruction according to the navigation control instruction through the navigation application program;
and the music playing module is used for playing music according to the music playing instruction.
According to the music playing method and device, the navigation application program receives the navigation control instruction to trigger the navigation operation, and at the moment, the automobile is in a state of being used by a user and is about to or is driving. Therefore, the navigation control instruction is used for automatically triggering the music playing instruction, so that music can be played according to the music playing instruction, the music can be automatically played when the automobile is running, complicated manual operation is not needed, and the driving safety can be ensured.
Drawings
FIG. 1 is a diagram illustrating an internal structure of an electronic device for implementing a music playing method according to an embodiment;
FIG. 2 is a flowchart illustrating a music playing method according to an embodiment;
FIG. 3 is a flowchart illustrating steps for automatically triggering a music play command according to a navigation control command by a navigation application in one embodiment;
fig. 4 is a schematic flowchart illustrating steps of suspending playing music or reducing the volume of playing music during voice broadcasting according to an embodiment;
FIG. 5 is a flowchart illustrating steps of speech controlling music playing in one embodiment;
FIG. 6 is a block diagram showing the structure of a music player according to an embodiment;
FIG. 7 is a block diagram of a music play command trigger block of FIG. 6 according to an embodiment;
FIG. 8 is a block diagram showing the construction of a music player according to another embodiment;
fig. 9 is a block diagram showing the structure of a music player in still another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, in one embodiment, an electronic device is provided that includes a processor, a memory, a storage medium, an input device, a display screen, a position sensor, and a speaker connected by a system bus. The storage medium of the electronic device stores an operating system, a music database and a music playing device, and the music playing device is used for realizing a music playing method. The processor of the electronic device is used for providing calculation and control capability and supporting the operation of the whole electronic device. The memory of the electronic equipment provides an operating environment for the music playing device in the storage medium. The electronic equipment comprises an input device, a position sensor, a display screen and a loudspeaker, wherein the input device is used for triggering a navigation control instruction, the position sensor is used for providing position information and realizing navigation operation, the display screen is used for displaying a navigation route, and the loudspeaker is used for playing music and navigation broadcasting sound.
As shown in fig. 2, in one embodiment, a music playing method is provided, and this embodiment is exemplified by applying the method to the electronic device in fig. 1. The method specifically comprises the following steps:
step 202, receiving a navigation control instruction for triggering a navigation operation by a navigation application program.
The electronic device is provided with a navigation application program, the navigation application program not only provides a navigation function, but also provides a music playing function, and all steps of the music playing method in the embodiment can be realized through the navigation application program. Navigation is a function of providing travel route guidance in the form of sound or image. The navigation control command is a control command for triggering a navigation operation. The user can set a navigation starting point and a navigation destination on an electronic map provided by a navigation application program through an input device of the electronic device or a touch pad covered on a display screen, and triggers a navigation control instruction after triggering to start navigation.
After receiving the navigation control instruction, the electronic device calculates a navigation route according to the navigation starting point and the navigation destination and displays the navigation route through a display screen of the electronic device based on a built-in or networked position point database through a navigation application program. The electronic device acquires position information by its position sensor and displays a position mark representing the position information on the electronic map. When the position mark deviates from the navigation route, the navigation route can be recalculated and displayed according to the current position information and the navigation destination. The calculation of the navigation route, the processing of the position mark, the step of recalculating the navigation route after deviating from the navigation route and other navigation-related operations belong to the navigation operation.
And step 204, automatically triggering a music playing instruction according to the navigation control instruction through the navigation application program.
Specifically, the electronic device may trigger the music playing instruction immediately after receiving the navigation control instruction, or the electronic device may start timing when receiving the navigation control instruction, and trigger the music playing instruction after a preset time length is reached. The preset time period may be, for example, 3 hours. In this embodiment, music data to be played is automatically selected by the navigation application and a music playing instruction for playing the music data is triggered.
And step 206, playing the music according to the music playing instruction.
Specifically, the music playing instruction may specify the music data to be played, such as randomly specifying or reading the last played music data and the playing progress thereof, and the electronic device plays the specified music data after receiving the music playing instruction. The music playing instruction may also adopt random playing without specifying the music data to be played.
The music playing method receives the navigation control instruction to trigger the navigation operation, and at the moment, the automobile is in a state of being used by a user and is about to or in the process of driving. Therefore, the navigation control instruction is used for automatically triggering the music playing instruction, so that music can be played according to the music playing instruction, the music can be automatically played when the automobile is running, complicated manual operation is not needed, and the driving safety can be ensured.
As shown in fig. 3, in an embodiment, step 204 specifically includes the following steps:
step 302, acquiring at least one of navigation route information, position information, driving speed information, driving duration information and user information according to a navigation control instruction through a navigation application program; the user information corresponds to a user identification that triggers the navigation control instruction.
Specifically, the navigation route information may include information related to the navigation route, such as a route location point, a route length, and a road condition, and the navigation route information may be acquired according to the navigation operation after receiving the navigation control instruction. The position information here may include current position information that may be obtained by a position sensor and navigation destination position information that may be obtained according to a navigation operation. The running speed information may be obtained by calculation from a change in the position sensed by the position sensor per unit time, or may be obtained by an acceleration sensor. The driving duration information can be obtained by counting to the current time when the navigation is started.
The user identifier is data capable of uniquely identifying a user, and a navigation control instruction triggered by the user after logging in by the user identifier is the navigation control instruction triggered by the user identifier. The electronic device may obtain user information corresponding to the user identification from a local or server. The user information may be user attribute information such as user interests, user age, locations where the user frequently appears, and the like.
And step 304, acquiring music data or an identifier of the music data matched with at least one of the navigation route information, the position information, the driving speed information, the driving duration information and the user information.
Specifically, the music data may be classified in advance such that each music data has a music tag attribute, thereby acquiring the music data or an identification of the music data having a music tag attribute matching at least one of the navigation route information, the position information, the travel speed information, the driving time length information, and the user information. The identification of the music data is used for acquiring the music data according to the identification.
The music data matched with the navigation route information, such as navigation routes belonging to sections with different route lengths, can be respectively matched with different types of music data, and particularly longer route lengths can be matched with refreshable music data, while shorter route lengths can be matched with soothing music data. The music data matched with the position information may be the song name, album name or lyrics of the music data and the position information, for example, the position information may be matched with music with the song name "welcome you in Beijing" if the position information is Beijing.
The music data matched with the driving speed information, for example, a higher driving speed may be matched with soothing music data, and a lower driving speed may be matched with dynamic music data. And matching the music data matched with the driving duration information, for example, the driving duration exceeding a preset threshold value with the refreshing music data. Music data that matches the user information, such as music data having a music tag attribute that matches the user's interests, hobbies, and the like indicated by the user information.
It is to be understood that music data matching a plurality of the above-described navigation route information, position information, travel speed information, driving time information, and user information, such as music data having a plurality of music tag attributes each matching one of these pieces of information, may be acquired.
Step 306, generating a music playing instruction for triggering playing of the matched music data.
Specifically, a music playing instruction is generated, where the music playing instruction may include an identifier of the matched music data, or a playing address thereof, or a storage location thereof, so that the music playing instruction may be used to trigger playing of the matched music data.
In the embodiment, the music playing instruction can be generated according to the information generated when the user drives the vehicle or the user information, so that different types of music can be intelligently played according to actual conditions, the user does not need to manually select the music, and the operation convenience is improved.
In one embodiment, step 304 specifically includes: and uploading at least one of the acquired navigation route information, the position information, the driving speed information, the driving duration information and the user information to a server, and receiving music data or the identifier of the music data which is fed back by the server and matched with the uploaded information. In this embodiment, the acquired information is uploaded to the server, and the server calculates and obtains music data matched with the uploaded information or an identifier of the matched music data and returns the identifier of the matched music data, so that the electronic device obtains the matched music data through the server, and the calculation burden of the electronic device itself can be reduced.
In one embodiment, step 304 specifically includes: searching music data or music data identification matched with at least one of the acquired navigation route information, position information, driving speed information, driving duration information and user information from a local music database; and the local music database is updated according to the music recommendation information which is pulled at regular time or pushed at regular time. In this embodiment, the electronic device maintains a local music database, and periodically pulls music recommendation information from the server or receives music recommendation information periodically pushed by the server, so as to update the local music database according to the received music recommendation information, and can acquire the latest music data and play the latest music data in combination with the driving situation of the user or the user information.
As shown in fig. 4, in an embodiment, the music playing method further includes a step of pausing playing music or reducing music playing volume during voice broadcasting, and specifically includes the following steps:
and step 402, triggering a navigation broadcasting instruction according to the navigation operation and executing the instruction.
Specifically, in the navigation operation process, when the current position mark reaches the specified position of the navigation route, such as approaching an intersection, approaching a navigation destination, and the like, a navigation play instruction is triggered, and the operation of navigation broadcast is triggered when the navigation broadcast instruction is executed. The navigation report is used for reminding a user during a navigation operation, such as 'turn left 100 meters ahead', 'reach destination 150 meters ahead'.
And step 404, triggering a music playing pause instruction or a music playing volume reduction instruction according to the navigation broadcasting instruction.
Specifically, after receiving the navigation broadcasting instruction, the electronic device triggers a music playing pause instruction according to the navigation broadcasting instruction, wherein the music playing pause instruction is used for controlling music playing to be paused. Or after the electronic equipment receives the navigation playing instruction, the electronic equipment triggers a music playing volume reduction instruction according to the navigation playing instruction, and the music playing volume reduction instruction is used for controlling music to reduce output volume.
And step 406, pausing the music playing according to the music playing pause instruction or reducing the music playing volume according to the music playing volume reduction instruction until the music playing is resumed after the navigation broadcasting is detected to be finished.
Specifically, the electronic device receives and executes a music playing pause instruction, pauses the playing of music, and resumes the music playing until the navigation broadcasting is detected to be finished. Or the electronic equipment receives and executes the music playing volume reduction instruction, reduces the output volume of the played music, and resumes the music playing until the navigation broadcasting is detected to be finished. The voice of the navigation broadcast is recorded in advance, the playing time length of the voice is determined, and the time for ending the navigation broadcast can be obtained according to the voice, so that the music playing is recovered after the navigation broadcast is ended. Resuming music playing refers to resuming the state of music playing to the state before music playing is paused or the volume of music playing is reduced.
In this embodiment, music playing is automatically paused or music playing volume is automatically reduced in the navigation broadcasting process, so that a user can clearly hear the voice of the navigation broadcasting, and effective transmission of the information of the navigation broadcasting is ensured.
As shown in fig. 5, in an embodiment, the music playing method further includes a step of controlling music playing by voice, and specifically includes the following steps:
step 502, detecting an ambient sound.
In particular, the electronic device comprises a microphone by which ambient sounds are detected in real time or at regular times. The environment refers to the environment in which the electronic equipment is located, and is generally in a vehicle cabin.
Step 504, separating voice data from the detected environmental sound according to the preset user voice feature data.
Specifically, the preset user voice feature data is data that can describe the voice feature of the user, and the voice data can be separated from the environmental sound according to the preset user voice feature data. The detected environmental sound data can be divided into a plurality of sound segments according to a preset time length, and preset user voice feature data is respectively applied to each sound segment to perform voice recognition, so that the continuous sound segments recognized as voice are combined, and the separated voice data is obtained. Preferably, the preset user voice feature data is the preset user voice feature data corresponding to the user identifier triggering the navigation control instruction, so that the voice recognition accuracy can be improved.
Step 506, when it is detected that the voice data contains the preset voice segment, generating a voice control instruction matched with the preset voice segment.
Specifically, the preset voice segment is a voice segment corresponding to the voice control instruction, for example, if the semantic of the preset voice segment is "next" or "switch to next", the corresponding voice control instruction is a control instruction for switching to play of the next music; if the semantic meaning of the preset voice segment is 'turn up volume', the corresponding voice control instruction is a music playing volume increasing instruction for increasing the music playing volume. When the voice data is detected to contain a preset voice segment, namely a part of the voice data is matched with the voice segment, a voice control instruction matched with the preset voice segment is generated.
And step 508, controlling music playing according to the voice control instruction.
Specifically, after receiving the voice control instruction, the music playing is controlled. The control of music playing includes but is not limited to pausing the playing, adjusting the music playing volume, switching music, music playing sequence, changing sound effect, and turning on and off the lyric display.
In an embodiment, when it is detected that the voice data includes the preset voice segment, the music play pause instruction or the music play volume reduction instruction may be additionally triggered, so as to pause playing music according to the music play pause instruction or reduce the music play volume according to the music play volume reduction instruction, until the music play pause or music play volume reduction state is resumed after step 508 is executed. Of course, if the voice control command is a music play pause command or a volume-related command, the music play is not required to be resumed and only step 508 is executed.
In this embodiment, speech data is recognized from the environmental sound through the speech recognition technology, so that the speech control instruction is triggered to control music playing, a user can realize control over music playing without manual operation, operation is convenient, and driving safety can be guaranteed.
As shown in fig. 6, in one embodiment, there is provided a music playing apparatus 600 having various functions to implement the music playing methods of the above-described embodiments. The music playback apparatus 600 includes: a navigation control instruction processing module 601, a music playing instruction triggering module 602 and a music playing module 603.
The navigation control instruction processing module 601 is configured to receive a navigation control instruction for triggering a navigation operation through a navigation application.
Specifically, the navigation control instruction processing module 601 is configured to calculate a navigation route according to a navigation start point and a navigation destination and display the navigation route on a display screen of the electronic device after receiving the navigation control instruction based on a built-in or networked location point database through a navigation application program. The navigation control instruction processing module 601 is configured to acquire position information through a position sensor and display a position mark representing the position information on an electronic map. When the position mark deviates from the navigation route, the navigation control instruction processing module 601 may be configured to recalculate and display the navigation route according to the current position information and the navigation destination. The calculation of the navigation route, the processing of the position mark, the recalculation of the navigation route after the deviation from the navigation route and other navigation-related operations belong to the navigation operation.
A music playing instruction triggering module 602, configured to automatically trigger a music playing instruction according to the navigation control instruction through the navigation application.
Specifically, the music playing instruction triggering module 602 may be configured to trigger the music playing instruction immediately after receiving the navigation control instruction, or the electronic device may start timing when receiving the navigation control instruction, and trigger the music playing instruction after a preset time length is reached. The preset time period may be, for example, 3 hours.
The music playing module 603 is configured to play music according to the music playing instruction.
Specifically, the music playing instruction may specify the music data to be played, such as randomly specifying or reading the last played music data and the playing progress thereof, and the music playing module 603 is configured to play the specified music data after receiving the music playing instruction. The music playing instruction may also adopt random playing without specifying the music data to be played.
The music player 600 receives the navigation control command to trigger the navigation operation, which indicates that the vehicle is in a state of being used by the user and is about to or is driving. Therefore, the navigation control instruction is used for automatically triggering the music playing instruction, so that music can be played according to the music playing instruction, the music can be automatically played when the automobile is running, complicated manual operation is not needed, and the driving safety can be ensured.
As shown in fig. 7, in one embodiment, the music playing instruction triggering module 602 includes: an information acquisition module 602a, a music data acquisition module 602b, and a music play instruction generation module 602 c.
An information obtaining module 602a, configured to obtain at least one of navigation route information, position information, traveling speed information, driving duration information, and user information according to a navigation control instruction through a navigation application; the user information corresponds to a user identification that triggers the navigation control instruction.
Specifically, the navigation route information may include information related to the navigation route, such as a route location point, a route length, a road condition, and the like, and the information obtaining module 602a may be configured to obtain the navigation route information according to the navigation operation after receiving the navigation control instruction. The position information here may include current position information and navigation destination position information, the information obtaining module 602a may be configured to obtain the current position information through a position sensor, and the information obtaining module 602a may be configured to obtain the navigation destination position information according to a navigation operation. The information acquisition module 602a may be configured to calculate and obtain the traveling speed information through a change in a position sensed by the position sensor per unit time, or may be obtained through an acceleration sensor. The information acquisition module 602a may be configured to obtain driving duration information by counting to a current time when navigation is started.
The user identifier is data capable of uniquely identifying a user, and a navigation control instruction triggered by the user after logging in by the user identifier is the navigation control instruction triggered by the user identifier. The information obtaining module 602a may be configured to obtain the user information corresponding to the user identifier from a local or server. The user information may be user attribute information such as user interests, user age, locations where the user frequently appears, and the like.
A music data obtaining module 602b, configured to obtain music data or an identifier of the music data that matches at least one of the navigation route information, the location information, the driving speed information, the driving duration information, and the user information.
Specifically, the music data may be classified in advance such that each music data has a music tag attribute, thereby acquiring the music data or an identification of the music data having a music tag attribute matching at least one of the navigation route information, the position information, the travel speed information, the driving time length information, and the user information. The identification of the music data is used for acquiring the music data according to the identification.
The music data matched with the navigation route information, such as navigation routes belonging to sections with different route lengths, can be respectively matched with different types of music data, and particularly longer route lengths can be matched with refreshable music data, while shorter route lengths can be matched with soothing music data. The music data matched with the position information may be the song name, album name or lyrics of the music data and the position information, for example, the position information may be matched with music with the song name "welcome you in Beijing" if the position information is Beijing.
The music data matched with the driving speed information, for example, a higher driving speed may be matched with soothing music data, and a lower driving speed may be matched with dynamic music data. And matching the music data matched with the driving duration information, for example, the driving duration exceeding a preset threshold value with the refreshing music data. Music data that matches the user information, such as music data having a music tag attribute that matches the user's interests, hobbies, and the like indicated by the user information.
It is to be understood that music data matching a plurality of the above-described navigation route information, position information, travel speed information, driving time information, and user information, such as music data having a plurality of music tag attributes each matching one of these pieces of information, may be acquired.
A music playing instruction generating module 602c, configured to generate a music playing instruction for triggering playing of the matched music data.
Specifically, the music playing instruction generating module 602c is configured to generate a music playing instruction, where the music playing instruction may include an identifier of the matched music data, or a playing address thereof, or a storage location thereof, so that the music playing instruction may be used to trigger playing of the matched music data.
In the embodiment, the music playing instruction can be generated according to the information generated when the user drives the vehicle or the user information, so that different types of music can be intelligently played according to actual conditions, the user does not need to manually select the music, and the operation convenience is improved.
In one embodiment, the music data obtaining module 602b is further configured to upload at least one of the obtained navigation route information, the position information, the driving speed information, the driving duration information, and the user information to the server, and receive music data or an identifier of the music data, which is fed back by the server and matches the uploaded information. In this embodiment, the acquired information is uploaded to the server, and the server calculates and acquires the music data matched with the uploaded information or the identifier of the matched music data and returns the identifier of the matched music data, so that the server acquires the matched music data and the local calculation burden can be reduced.
In one embodiment, the music data obtaining module 602b is further configured to search a local music database for music data or an identifier of music data matching at least one of the obtained navigation route information, location information, driving speed information, driving duration information, and user information; and the local music database is updated according to the music recommendation information which is pulled at regular time or pushed at regular time. In the embodiment, a local music database is maintained, and the music recommendation information is pulled from the server at regular time or the music recommendation information pushed by the server at regular time is received, so that the local music database is updated according to the received music recommendation information, and the latest music data can be acquired and played in combination with the driving condition of the user or the user information.
As shown in fig. 8, in one embodiment, the music playing apparatus 600 further includes: the navigation broadcasting instruction processing module 605, the triggering module 606 and the first playing control module 607.
And the navigation broadcast instruction processing module 605 is configured to trigger and execute a navigation broadcast instruction according to the navigation operation.
Specifically, the navigation broadcasting instruction processing module 605 is configured to trigger a navigation broadcasting instruction when the current position mark reaches the specified position of the navigation route, such as approaching an intersection, approaching a navigation destination, and the like, in the navigation operation process, and trigger the operation of navigation broadcasting when executing the navigation broadcasting instruction. The navigation report is used for reminding a user during a navigation operation, such as 'turn left 100 meters ahead', 'reach destination 150 meters ahead'.
And the triggering module 606 is configured to trigger a music playing pause instruction or a music playing volume reduction instruction according to the navigation broadcasting instruction.
Specifically, the triggering module 606 is configured to trigger a music playing pause instruction after receiving the navigation broadcasting instruction, where the music playing pause instruction is used to control music playing pause. Or the triggering module 606 is configured to trigger the music playing volume reduction instruction after receiving the navigation playing instruction, where the music playing volume reduction instruction is used to control the music to reduce the output volume.
The first play control module 607 is configured to pause playing music according to the music play pause instruction or reduce the music play volume according to the music play volume reduction instruction, until the music play is resumed after the navigation broadcast is detected to be ended.
Specifically, the first play control module 607 is configured to receive and execute a music play pause instruction, pause the playing of music, and resume the music playing until the navigation broadcasting is detected to be ended. Or the first play control module 607 is configured to receive the music play volume reduction instruction and execute the music play volume reduction instruction, and reduce the output volume of the played music until the music play is resumed after the navigation broadcast is detected to be ended. The voice of the navigation broadcast is recorded in advance, the playing time length is determined, and the first playing control module 607 can be used for obtaining the time when the navigation broadcast ends, so that the music playing is resumed after the navigation broadcast ends. Resuming music playing refers to resuming the state of music playing to the state before music playing is paused or the volume of music playing is reduced.
In this embodiment, music playing is automatically paused or music playing volume is automatically reduced in the navigation broadcasting process, so that a user can clearly hear the voice of the navigation broadcasting, and effective transmission of the information of the navigation broadcasting is ensured.
As shown in fig. 9, in one embodiment, the music playing apparatus 600 further includes: an ambient sound detection module 608, a voice data separation module 609, a voice control instruction generation module 610 and a second play control module 611.
An ambient sound detection module 608 for detecting ambient sound. In particular, the ambient sound detection module 608 may be used to detect ambient sound in real time or on a timed basis through a microphone.
And the voice data separation module 609 is configured to separate the voice data from the detected environmental sound according to the preset user voice feature data. Specifically, the preset user voice feature data is data that can describe the voice feature of the user, and the voice data can be separated from the environmental sound according to the preset user voice feature data. The voice data separation module 609 may be configured to divide the detected environmental sound data into a plurality of sound segments according to a preset time length, and perform voice recognition by applying preset user voice feature data to each sound segment, so as to merge consecutive sound segments recognized as voices, thereby obtaining separated voice data. Preferably, the preset user voice feature data is the preset user voice feature data corresponding to the user identifier triggering the navigation control instruction, so that the voice recognition accuracy can be improved.
The voice control instruction generating module 610 is configured to generate a voice control instruction matched with a preset voice segment when it is detected that the voice data includes the preset voice segment.
Specifically, the preset voice segment is a voice segment corresponding to the voice control instruction, for example, if the semantic of the preset voice segment is "next" or "switch to next", the corresponding voice control instruction is a control instruction for switching to play of the next music; if the semantic meaning of the preset voice segment is 'turn up volume', the corresponding voice control instruction is a music playing volume increasing instruction for increasing the music playing volume. The voice control instruction generating module 610 is configured to generate a voice control instruction matching a preset voice segment when it is detected that the voice data includes the preset voice segment, that is, a part of the voice data matches the voice segment.
The second playing control module 611 is configured to control music playing according to the voice control instruction.
Specifically, the second playing control module 611 is configured to control playing of music after receiving the voice control instruction. The control of music playing includes but is not limited to pausing the playing, adjusting the music playing volume, switching music, music playing sequence, changing sound effect, and turning on and off the lyric display.
In one embodiment, the second playing control module 611 is further configured to trigger a music playing pause instruction or a music playing volume reduction instruction when it is detected that the voice data includes a preset voice segment, so as to pause playing music according to the music playing pause instruction or reduce the music playing volume according to the music playing volume reduction instruction until the music playing is controlled according to the voice control instruction and then resume from the music playing pause state or the music playing volume reduction state. Of course, if the voice control command is a music play pause command or a command related to the volume, the music play is controlled only according to the voice control command without resuming the music play.
In this embodiment, speech data is recognized from the environmental sound through the speech recognition technology, so that the speech control instruction is triggered to control music playing, a user can realize control over music playing without manual operation, operation is convenient, and driving safety can be guaranteed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A music playing method applied to a navigation application program comprises the following steps:
setting a navigation starting point and a navigation destination on an electronic map provided by a navigation application program, and triggering a navigation control instruction after triggering to start navigation;
acquiring navigation route information and driving duration information according to the navigation control instruction through the navigation application program;
acquiring music data or an identifier of the music data matched with the navigation route information and the driving duration information, wherein the method comprises the following steps: according to the route length section to which the navigation route information belongs, determining music data or identification of the music data matched with the navigation route information, wherein the navigation route information belonging to the longer route length section is matched with the music data of a refreshing type, and the navigation route information belonging to the shorter route length section is matched with the music data of a relaxing type; determining matched music data or the identification of the music data according to the driving duration information; the driving duration information exceeding the preset threshold value is matched with the refreshing music data;
automatically generating a music playing instruction for triggering the playing of the matched music data according to the navigation control instruction through the navigation application program;
and playing music according to the music playing instruction through the navigation application program.
2. The method according to claim 1, wherein the acquiring music data or an identification of music data that matches the navigation route information and the driving time length information includes:
uploading the acquired navigation route information and the acquired driving duration information to a server, and receiving music data or identifiers of the music data which are fed back by the server and matched with the uploaded information; alternatively, the first and second electrodes may be,
searching music data or the identification of the music data matched with the acquired navigation route information and the acquired driving duration information from a local music database; and the local music database is updated according to the music recommendation information which is pulled at regular time or pushed at regular time.
3. The method of claim 1, further comprising:
triggering a navigation broadcasting instruction according to the navigation operation and executing;
triggering a music playing pause instruction or a music playing volume reduction instruction according to the navigation broadcasting instruction;
and pausing the music playing according to the music playing pause instruction or reducing the music playing volume according to the music playing volume reduction instruction until the music playing is resumed after the navigation broadcasting is detected to be finished.
4. The method of claim 1, further comprising:
detecting an ambient sound;
separating voice data from the detected environmental sound according to preset user voice characteristic data;
when the voice data is detected to contain a preset voice segment, generating a voice control instruction matched with the preset voice segment;
and controlling music playing according to the voice control instruction.
5. A music playing apparatus, characterized in that the apparatus comprises:
the navigation control instruction processing module is used for setting a navigation starting point and a navigation destination on an electronic map provided by a navigation application program and triggering a navigation control instruction after triggering to start navigation;
the information acquisition module is used for acquiring navigation route information and driving duration information according to the navigation control instruction through the navigation application program;
the music data acquisition module is used for acquiring music data or identifiers of the music data matched with the navigation route information and the driving duration information, and comprises: according to the route length section to which the navigation route information belongs, determining music data or identification of the music data matched with the navigation route information, wherein the navigation route information belonging to the longer route length section is matched with the music data of a refreshing type, and the navigation route information belonging to the shorter route length section is matched with the music data of a relaxing type; determining matched music data or the identification of the music data according to the driving duration information; the driving duration information exceeding the preset threshold value is matched with the refreshing music data;
the music playing instruction generating module is used for automatically generating a music playing instruction for triggering the playing of the matched music data according to the navigation control instruction through the navigation application program;
and the music playing module is used for playing music according to the music playing instruction through the navigation application program.
6. The device according to claim 5, wherein the music data acquisition module is further configured to upload the acquired navigation route information and driving duration information to a server, and receive music data or an identifier of the music data, which is fed back by the server and matches the uploaded information; alternatively, the first and second electrodes may be,
the music data acquisition module is also used for searching music data or identifiers of the music data matched with the acquired navigation route information and the acquired driving duration information from a local music database; and the local music database is updated according to the music recommendation information which is pulled at regular time or pushed at regular time.
7. The apparatus of claim 5, further comprising:
the navigation broadcasting instruction processing module is used for triggering and executing a navigation broadcasting instruction according to the navigation operation;
the triggering module is used for triggering a music playing pause instruction or a music playing volume reduction instruction according to the navigation broadcasting instruction;
and the first play control module is used for pausing the music play according to the music play pause instruction or reducing the music play volume according to the music play volume reduction instruction until the music play is resumed after the navigation broadcast is detected to be finished.
8. The apparatus of claim 5, further comprising:
the environment sound detection module is used for detecting environment sounds;
the voice data separation module is used for separating voice data from the detected environmental sound according to preset user voice characteristic data;
the voice control instruction generating module is used for generating a voice control instruction matched with a preset voice segment when the voice data is detected to contain the preset voice segment;
and the second playing control module is used for controlling music playing according to the voice control instruction.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 4.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 4.
CN201410707458.0A 2014-11-27 2014-11-27 Music playing method and device Active CN105702270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410707458.0A CN105702270B (en) 2014-11-27 2014-11-27 Music playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410707458.0A CN105702270B (en) 2014-11-27 2014-11-27 Music playing method and device

Publications (2)

Publication Number Publication Date
CN105702270A CN105702270A (en) 2016-06-22
CN105702270B true CN105702270B (en) 2020-06-23

Family

ID=56230477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410707458.0A Active CN105702270B (en) 2014-11-27 2014-11-27 Music playing method and device

Country Status (1)

Country Link
CN (1) CN105702270B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106653064B (en) * 2016-12-13 2019-05-07 北京云知声信息技术有限公司 Audio frequency playing method and device
CN109120653B (en) * 2017-06-22 2021-10-22 斑马智行网络(香港)有限公司 Multimedia data recommendation method and device
CN107426425A (en) * 2017-07-25 2017-12-01 珠海市魅族科技有限公司 Application control method, device, computer installation and readable storage medium storing program for executing
CN108153810A (en) * 2017-11-24 2018-06-12 广东小天才科技有限公司 A kind of music recommends method, apparatus, equipment and storage medium
CN107894238B (en) * 2017-12-18 2020-01-10 奇瑞汽车股份有限公司 Vehicle-mounted navigation method and device
CN110209868A (en) * 2018-02-11 2019-09-06 赵越超 A kind of music playing system based on drive speed Auto-matching
CN109344287A (en) * 2018-09-05 2019-02-15 腾讯科技(深圳)有限公司 A kind of information recommendation method and relevant device
CN109271551A (en) * 2018-09-26 2019-01-25 Oppo广东移动通信有限公司 Method for playing music, electronic device and computer readable storage medium
CN110008370A (en) * 2019-04-01 2019-07-12 北京小马智行科技有限公司 Control method, control device, storage medium and the processor of vehicle driving
CN112349303B (en) * 2019-07-22 2021-09-24 北京声智科技有限公司 Audio playing method, device and storage medium
CN112530192B (en) * 2019-09-18 2023-05-26 三六零科技集团有限公司 Road condition display method and device in screen locking state
CN111345629A (en) * 2020-04-07 2020-06-30 贵州省山地资源研究所 Plug-in type travelling bed and control method
CN111613201A (en) * 2020-06-01 2020-09-01 大陆泰密克汽车系统(上海)有限公司 In-vehicle sound management device and method
CN112417204B (en) * 2020-12-16 2024-02-13 吉林大学 Music recommendation system based on real-time road conditions
CN114816608A (en) * 2021-01-29 2022-07-29 腾讯科技(深圳)有限公司 Media file playing method and device, electronic equipment and storage medium
CN113721881A (en) * 2021-08-19 2021-11-30 浙江鸿泉电子科技有限公司 Sound output control method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009527774A (en) * 2006-02-21 2009-07-30 トムトム インターナショナル ベスローテン フエンノートシャップ Navigation device and method for receiving and playing sound samples
WO2014119935A1 (en) * 2013-01-31 2014-08-07 Joung Han Uk Electronic device for playing back music in navigation service and method for same

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008527367A (en) * 2005-01-14 2008-07-24 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ How to select audio content to be played on a vehicle
CN102543127B (en) * 2010-12-30 2015-07-15 上海博泰悦臻电子设备制造有限公司 Method and device for playing vehicle-mounted music
CN103187076B (en) * 2011-12-28 2017-07-18 上海博泰悦臻电子设备制造有限公司 voice music control device
CN103187077B (en) * 2011-12-28 2017-02-08 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted equipment, and audio control method and device applied to vehicle-mounted equipment
KR101427926B1 (en) * 2012-12-13 2014-08-08 현대자동차 주식회사 Music recommendation system for vehicle and method thereof
CN103043004B (en) * 2012-12-24 2016-04-20 余姚市江腾塑业有限公司 Vehicle multimedia playing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009527774A (en) * 2006-02-21 2009-07-30 トムトム インターナショナル ベスローテン フエンノートシャップ Navigation device and method for receiving and playing sound samples
WO2014119935A1 (en) * 2013-01-31 2014-08-07 Joung Han Uk Electronic device for playing back music in navigation service and method for same

Also Published As

Publication number Publication date
CN105702270A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105702270B (en) Music playing method and device
JP6155921B2 (en) Automatic driving support device
JP6346281B2 (en) In-vehicle interactive system and in-vehicle information equipment
CN110740901B (en) Multimedia information pushing method and device, storage medium and electronic equipment
JP6376005B2 (en) Digest video generator
EP3506255A1 (en) Voice feedback for user interface of media playback device
EP3002756B1 (en) Method and system for providing personalized position-based infotainment
US10704915B2 (en) Method and system for providing driving situation based infotainment
WO2019114426A1 (en) Vehicle-mounted music matching method and apparatus, and vehicle-mounted intelligent controller
JP2013140425A (en) In-vehicle device, position information transmission method and position information transmission program
JP4668747B2 (en) Car navigation system
JP2018119842A (en) Information output system for vehicle
JP2009092428A (en) Information providing device
JP6499438B2 (en) Navigation device, navigation method, and program
JP2016122228A5 (en)
JP2015034777A (en) Navigation device
JP2012047472A (en) Passage determination device, passage determination method, and program
US11107502B2 (en) Method and apparatus for processing a video
JP2008157885A (en) Information guide device, navigation device, information guide method, navigation method, information guide program, navigation program, and recording medium
JP2009157065A (en) Voice output device, voice output method, voice output program and recording medium
JP7250378B2 (en) System and program
US11035689B2 (en) Information processing device, automatic playing method of content
JP2010169760A (en) Play list-generating device, play list-generating method, play list-generating program, and recording medium
JP2008001308A (en) Av system
JP6904817B2 (en) List creation program, list creation method, list creation device, and list creation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant