Voice playback method, device, terminal and storage medium
By playing non-navigation voice on idle sections in the navigation route, the problem of a single existing navigation voice playback method is solved, and a richer and more flexible voice playback experience is achieved.
Patent Information
- Application Number
- CN202110785699.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-07-12
AI Technical Summary
The existing navigation voice playback methods are relatively single and not flexible enough to meet the diverse voice playback needs of different road sections.
By obtaining the idle sections in the navigation route, the idle section is a section where the navigation voice is not set or the set navigation voice does not meet the target conditions. Non-navigation voice is played when the terminal is currently in these sections.
Without affecting the navigation function, the form of voice playback during the navigation process is enriched, and the amount of information and flexibility of voice playback are improved.
Smart Images

Figure CN113514075B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a voice playback method, device, terminal, and storage medium. Background Art
[0002] With the rapid development of Internet technology and the increasing complexity of traffic conditions in daily life, navigation functions are increasingly used in people's daily travel. In order to facilitate users' travel, voice playback services can be provided to users during the navigation process.
[0003] In the related art, a navigation route is planned for a user based on a starting position and an ending position, and voice is played to the user according to the navigation route and the user's current position to guide the user to move along the navigation route. However, the above voice playing method is relatively simple and not flexible enough. Summary of the invention
[0004] The embodiments of the present application provide a method, device, terminal and storage medium for voice playback, which can improve the flexibility of voice playback. The technical solution is as follows:
[0005] In one aspect, a voice playback method is provided, the method comprising:
[0006] Acquire a navigation route, wherein the navigation route includes an idle section, wherein the idle section is a section where no navigation voice is set or a section where the set navigation voice does not meet a target condition;
[0007] When the current location of the terminal is in the idle section, playing non-navigation voice;
[0008] The navigation voice is a voice that instructs the terminal to move, and the non-navigation voice is a voice other than the navigation voice.
[0009] In another aspect, a voice playback device is provided, the device comprising:
[0010] A route acquisition module, used to acquire a navigation route, wherein the navigation route includes an idle section, wherein the idle section is a section where no navigation voice is set or a section where the set navigation voice does not meet the target condition;
[0011] A first playing module, used for playing non-navigation voice when the current position of the terminal is in the idle section;
[0012] The navigation voice is a voice that instructs the terminal to move, and the non-navigation voice is a voice other than the navigation voice.
[0013] Optionally, the device further comprises:
[0014] The idle section determination module is used to determine any section in the navigation route as the idle section in the navigation route when the priority of the navigation voice set for any section in the navigation route is not higher than the target priority.
[0015] Optionally, the device further comprises:
[0016] An idle section determination module is used to determine any section in the navigation route as the idle section in the navigation route when the navigation voice is not set for any section in the navigation route or the set navigation voice does not meet the target condition and the length of any section is not less than a first length.
[0017] Optionally, the device further comprises:
[0018] An idle section determination module is used to determine any section as the idle section in the navigation route when the navigation voice is not set between any sections in the navigation route or the set navigation voice does not meet the target condition and the time required to pass through any section is not less than a first time.
[0019] Optionally, the device further comprises:
[0020] a configuration information acquisition module, configured to acquire voice configuration information, wherein the voice configuration information includes at least one of user identity information, characteristic information of the navigation route, current date information, or a type of current device, wherein the user identity information is identity information corresponding to a user identifier of the terminal login;
[0021] The non-navigation voice generation module is used to generate the non-navigation voice whose content is related to the voice configuration information.
[0022] Optionally, the device further comprises:
[0023] A voice acquisition module, used to acquire a plurality of non-navigation voices allocated to the navigation route and corresponding priorities;
[0024] A voice distribution module, used for distributing different non-navigation voices corresponding to the highest priority to at least one idle section in the navigation route;
[0025] The voice distribution module is further used to distribute the remaining non-navigation voices to the remaining idle sections.
[0026] Optionally, the first playing module is used to perform at least one of the following:
[0027] The road sections in the navigation route have corresponding levels, and when the current position of the terminal is in the idle road section and the level of the idle road section belongs to the target level, the non-navigation voice is broadcasted;
[0028] When the current position of the terminal is in the idle section and the current time belongs to the target time period, broadcasting the non-navigation voice;
[0029] When the starting position of the navigation route is in the first target area and the current position of the terminal is in the idle section, broadcasting the non-navigation voice;
[0030] When the end position of the navigation route is in the second target area and the current position of the terminal is in the idle section, broadcasting the non-navigation voice;
[0031] When the current position of the terminal is in the idle section and the number of times the terminal plays the non-navigation voice is not greater than the target number of times, the non-navigation voice is broadcast.
[0032] Optionally, the navigation route includes a target section, the target section includes a second target location, and the device further includes:
[0033] A third playing module is used to play the non-navigation voice related to the second target location when the current location of the terminal is in the target section; or
[0034] The third playing module is further configured to play the non-navigation voice whose content is related to the second target location when the current location of the terminal is within the geographical area corresponding to the target road section.
[0035] Optionally, the device further comprises:
[0036] A position determination module, configured to determine the second target position among a plurality of positions in the navigation route;
[0037] The target road section determination module is used to determine the route in the navigation route that is located in the geographical area to which the second target position belongs as the target road section.
[0038] Optionally, the non-navigation voice that has not been played is stored in a voice list and arranged in a play order; the device further includes:
[0039] A second playing module, configured to play the first target voice in response to a play request for the first target voice;
[0040] A voice deletion module is used to delete the first non-navigation voice from the voice list when the priority of the first non-navigation voice in the voice list is lower than that of the first target voice.
[0041] Optionally, the device further comprises:
[0042] The operation execution module is used to detect human voice in response to the non-navigation voice being an interactive type of voice, and execute a control operation based on the human voice.
[0043] Optionally, the operation execution module includes:
[0044] The voice playing unit is used to play the next non-navigation voice in response to the human voice instruction, but receives a play request for a second target voice, plays the next non-navigation voice after playing the second target voice.
[0045] Optionally, the operation execution module includes:
[0046] A route determination unit is used for the human voice instruction to move to a first target location outside the navigation route, to add a section from the current location of the terminal to the first target location in the navigation route, or to change the navigation route to a route from the current location of the terminal to the first target location.
[0047] Optionally, the device further comprises:
[0048] The idle section determining module is used to determine the idle section in the navigation route when the length of the navigation route is greater than a second length.
[0049] Optionally, the device further comprises:
[0050] A congested road section determination module, used to determine a congested road section in the navigation route;
[0051] a fourth playing module, configured to play the non-navigation voice when the current position of the terminal is in the congested section and the length of the congested section is greater than a third length; or
[0052] The fourth playing module is used to broadcast the non-navigation voice when the current position of the terminal is in the congested section and the time required for the terminal to pass through the congested section is greater than the second time.
[0053] On the other hand, a terminal is provided, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the voice playback method described in the above aspects.
[0054] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the voice playback method described in the above aspects.
[0055] On the other hand, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes a computer program code, wherein the computer program code is stored in a computer-readable storage medium, and a processor of a terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal implements the operations performed in the voice playback method described in the above aspects.
[0056] The method, device, terminal and storage medium provided in the embodiments of the present application take into account that sections where no navigation voice is set or sections where the set navigation voice does not meet the target conditions are relatively idle. Therefore, when the current position of the terminal is in these idle sections, non-navigation voice that does not require instructing the terminal to move is played, thereby enriching the form of voice playback during navigation without affecting navigation, and improving the amount of information in voice playback and the flexibility of voice playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0058] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application.
[0059] Figure 2 It is a flow chart of a voice playback method provided in an embodiment of the present application.
[0060] Figure 3 It is a flow chart of a voice playback method provided in an embodiment of the present application.
[0061] Figure 4 It is a schematic diagram of an interactive window provided in an embodiment of the present application.
[0062] Figure 5 It is a flow chart of a voice playback method provided in an embodiment of the present application.
[0063] Figure 6 It is a schematic diagram of a playback interval provided in an embodiment of the present application.
[0064] Figure 7 It is a schematic diagram of another interactive window provided in an embodiment of the present application.
[0065] Figure 8 It is a schematic diagram of another interactive window provided in an embodiment of the present application.
[0066] Fig. 9 It is a flow chart of a voice playback method provided in an embodiment of the present application.
[0067] Fig.10 It is a system architecture diagram of a voice playback method provided in an embodiment of the present application.
[0068] Fig.11 It is a structural diagram of a voice playback device provided in an embodiment of the present application.
[0069] Fig.12 It is a structural schematic diagram of another voice playback device provided in an embodiment of the present application.
[0070] Fig.13 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0072] It is to be understood that the terms "first", "second", etc. used in the present application may be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the present application, the first target speech may be referred to as the second target speech, and similarly, the second target speech may be referred to as the first target speech.
[0073] Among them, at least one refers to one or more than one, for example, at least one idle section can be one idle section, two idle sections, three idle sections, or any other integer number of idle sections greater than or equal to one. Multiple refers to two or more than two, for example, multiple positions can be two positions, three positions, or any other integer number of positions greater than or equal to two. Each refers to each of at least one, for example, each position refers to each position of the multiple positions, and if the multiple positions are 3 positions, each position refers to each position of the 3 positions.
[0074] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application, see Figure 1 , the implementation environment includes: terminal 101 and server 102. Among them, terminal 101 can be a mobile phone, a car terminal, an intelligent voice interaction device, a smart home appliance, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player and other types of devices, and server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.
[0075] The terminal 101 and the server 102 are directly or indirectly connected via wired or wireless communication. Through the interaction between the terminal 101 and the server 102, various functions such as real-time positioning, location query, route matching, route navigation, and voice navigation can be realized.
[0076] In a possible implementation, a target client provided by server 102 is installed on terminal 101, and terminal 101 can implement functions such as route navigation and voice navigation through the target client. Optionally, the target client is a target client in the operating system of terminal 101, or a target client provided by a third party. For example, the target client is an electronic map client, and the electronic map client has a navigation function. Of course, the navigation client can also have other functions, such as data recommendation function, comment function, voice playback function, voice interaction function or game function. Optionally, server 102 is a background server of the target client or a cloud server that provides services such as cloud computing and cloud storage.
[0077] The terminal 101 is used to log in to the target client based on the user identification, and report POI information (Point of Information) to the server 102 through the target client. The server 102 is used to receive the POI information reported by the terminal 101, and provide location services for the terminal 101 according to the POI information reported by the terminal 101. The server 102 is also used to identify the POI information reported by the terminal 101, and identify abnormal POI information.
[0078] The voice playback method provided in the embodiment of the present application can be applied to any navigation scenario.
[0079] For example, a user uses an in-vehicle terminal for navigation while driving, and the in-vehicle terminal has a built-in electronic map client. When the user is going to travel, the in-vehicle terminal plans a navigation route for the user, and plays navigation voice and non-navigation voice during the navigation process. The navigation voice can instruct the user to move, such as instructing to turn left or slow down, etc. Non-navigation voice is voice other than navigation voice, such as recommending data to the user or introducing waypoints to the user. Among them, the in-vehicle terminal plays non-navigation voice when the user is in an idle section where the navigation voice is not set or the set navigation voice does not meet the target conditions, thereby enriching the form of voice playback during navigation and increasing the amount of information in voice playback without affecting the navigation function.
[0080] Figure 2 is a flow chart of a voice playback method provided by an embodiment of the present application. The method of the embodiment of the present application is as follows: Figure 1 The terminal execution in the embodiment of Figure 1 , the method comprising:
[0081] 201. The terminal obtains a navigation route.
[0082] When a user needs to travel, the terminal plans a navigation route for the user according to the starting location and the ending location set by the user. The navigation route is a route from the starting location to the ending location. The navigation route includes multiple sections, and the multiple sections have a sequence to indicate the direction of the route. For example, the end point of the previous section is the starting point of the next section, so that the multiple sections are connected to form a route.
[0083] During the navigation process, the terminal also provides voice playback services for the user, such as playing navigation voice during the navigation process. The navigation voice is a voice that instructs the terminal to move. The user carrying the terminal moves along the navigation route under the instruction of the navigation voice. Different navigation voices are set in different sections of the navigation route. For example, the navigation voice indicates the moving direction of the terminal, or indicates the moving speed of the terminal.
[0084] The navigation route includes an idle section, which is a section where no navigation voice is set, that is, in the idle section, there is no need to play the navigation voice. Alternatively, the idle section is a section where the set navigation voice does not meet the target condition. That is, in the idle section, there is no need to play the navigation voice that meets the target condition.
[0085] 202. When the current location of the terminal is in an idle section, the terminal plays a non-navigation voice.
[0086] In the embodiment of the present application, in addition to playing the navigation voice, non-navigation voice can also be played during the navigation process. The navigation voice is a voice that instructs the terminal to move, and the non-navigation voice is a voice other than the navigation voice. The function of instructing the terminal to move is the navigation function, the navigation voice is a voice with the navigation function, and the non-navigation voice is a voice without the navigation function, for example, the non-navigation voice is news or weather forecast recommended to the user.
[0087] The user carries the terminal and moves along the navigation route. During the movement, the current position of the terminal will change constantly. The terminal determines the current position through positioning, and when the current position is in an idle section, plays the non-navigation voice assigned to the idle section.
[0088] The method provided in the embodiment of the present application takes into account that the sections where navigation voice is not set or the sections where the set navigation voice does not meet the target conditions are relatively idle. Therefore, when the current position of the terminal is in these idle sections, non-navigation voice that does not need to instruct the terminal to move is played, thereby enriching the form of voice playback during navigation without affecting navigation, and improving the amount of information in voice playback and the flexibility of voice playback.
[0089] Figure 3 is a flow chart of a voice playing method provided in an embodiment of the present application, which illustrates the process of playing non-navigation voice in an idle section of a navigation route. The method in the embodiment of the present application is as follows: Figure 1 The terminal execution in the embodiment of Figure 3 , the method comprising:
[0090] 301. The terminal obtains a navigation route.
[0091] The terminal stores an electronic map, which is a map stored digitally using computer technology. The electronic map includes the location information of each location point in one or more geographical areas, such as a POI (Point of Interest), and the location information of the location point includes the longitude and latitude coordinates of the location point, the address information of the location point, or the name of the location point. For example, the location information of a museum includes the longitude and latitude coordinates of the museum, the address information "No. XX, XX Street, XX City", and the name of the museum "Astronomy Museum".
[0092] The terminal plans a navigation route for the user according to the starting location and the ending location set by the user. The navigation route is a route from the starting location to the ending location. The navigation route includes multiple sections.
[0093] In a possible implementation, the terminal displays an application interface of an electronic map, and the application interface includes an input box for a starting position, an input box for an ending position, and a navigation option. The user enters the starting position in the input box for the starting position, or the starting position is set to the current position of the terminal by default in the input box for the starting position, and the user enters the ending position in the input box for the ending position, and then triggers the navigation option. When the terminal detects a triggering operation on the navigation option, the input starting position and ending position are obtained, and the terminal sends a navigation request carrying the starting position and the ending position to the server.
[0094] The server receives the navigation request, plans a navigation route according to the starting position, the ending position and the position points in the electronic map, and sends the navigation route to the terminal, and the terminal displays the navigation route in the application interface.
[0095] Alternatively, the terminal downloads an electronic map from a server, and when the terminal obtains the input starting position and ending position, it plans a navigation route according to the starting position, the ending position and the position points in the electronic map, and displays the navigation route on the application interface.
[0096] In a possible implementation, the electronic map is an electronic map provided by the terminal, or the electronic map is a third-party electronic map installed in the terminal.
[0097] 302. The terminal obtains navigation voice and non-navigation voice.
[0098] During the navigation process, the terminal can also provide voice playback services for users, so the terminal also obtains the navigation voice and non-navigation voice corresponding to the navigation route. Among them, the navigation voice is the voice that instructs the terminal to move, and the non-navigation voice is the voice other than the navigation voice. The navigation voice and non-navigation voice corresponding to the navigation route refer to the navigation voice and non-navigation voice that need to be played in the navigation route.
[0099] The function of instructing the terminal to move is the navigation function, the navigation voice is the voice with the navigation function, and the non-navigation voice is the voice without the navigation function. For example, the navigation voice is the voice indicating the moving direction of the terminal, such as "turn left ten meters ahead" or "turn right twenty meters ahead on the left", etc. For example, the navigation voice is the voice indicating the moving speed of the terminal, such as "the speed limit ahead is 40km / h (kilometers per hour)" or "there is a camera shooting the intersection 500 meters ahead, please slow down", etc. In addition, the navigation voice also includes navigation-related voices such as internal road prompts, service area prompts, warning sign prompts or road condition prompts. For example, the non-navigation voice is a news broadcast, weather forecast, boundary broadcast, story broadcast or music playback recommended to the user, and the non-navigation voice can also be a voice recommended to the user related to the location in the navigation route.
[0100] The navigation voice acquired by the terminal is the navigation voice set for the navigation route, and the corresponding navigation voice is set according to the road conditions, road driving rules and other information of the road section in the navigation route. For example, in a road section with a crosswalk, a navigation voice of "Crosswalk ahead, please slow down" is set, and in a road section with a speed limit, a navigation voice of "Speed limit ahead 40km / h" is set.
[0101] In one possible implementation, navigation voice and non-navigation voice are stored in the server. After the server plans the navigation route, it obtains the navigation voice and non-navigation voice corresponding to the navigation route, and sends the navigation route, navigation voice and non-navigation voice to the terminal. In another possible implementation, navigation voice and non-navigation voice are stored in the terminal. After the terminal obtains the navigation route, it determines the navigation voice and non-navigation voice corresponding to the navigation route from the stored navigation voice and non-navigation voice.
[0102] In a possible implementation, the terminal obtains voice configuration information and generates non-navigation voice with content related to the voice configuration information. The voice configuration information is used to configure the non-navigation voice, and the voice configuration information includes at least one of user identity information, characteristic information of the navigation route, current date information, or the type of the current device, and the user identity information is the identity information corresponding to the user identifier logged in by the terminal. That is, according to the voice configuration information, the terminal generates non-navigation voice with content related to at least one of the user identity information, characteristic information of the navigation route, current date information, or the type of the current device.
[0103] For example, if the user's birthday is determined to be June 22 based on the user's identity information, and today is determined to be June 22 based on the current date information, the generated non-navigation voice content may be "Today is your birthday, happy birthday to you". For example, if the current navigation route is determined to include a mountain road based on the characteristic information of the navigation route, the generated non-navigation voice content may be "After passing the 1.8 km mountain road, please check the vehicle condition".
[0104] 303. The terminal determines an idle section in the navigation route.
[0105] The navigation route includes an idle section, which is a section where no navigation voice is set or where the set navigation voice does not meet the target conditions. No navigation voice is set for a section, which means that there is no need to play the navigation voice in the section. The navigation voice set for a section does not meet the target conditions, which means that there is no need to play the navigation voice that meets the target conditions in the section. The number of idle sections in the navigation route is 1 or more. When the navigation route includes multiple idle sections, there is no intersection between the idle sections.
[0106] In the embodiment of the present application, there are two ways for the terminal to determine the idle section. The first is to determine the section where the navigation voice is not set as an idle section, and the second is to determine the section where the navigation voice does not meet the target condition as an idle section. Among them, the terminal determines the idle section in the navigation route according to at least one of these two methods. For example, the terminal only selects the first method to determine the idle section, and the terminal only determines the section where the navigation voice is not set as an idle section. For example, the terminal only selects the second method to determine the idle section, and the terminal only determines the section where the navigation voice does not meet the target condition as an idle section. For example, the terminal selects a combination of the first method and the second method to determine the idle section, and the terminal will determine the section where the navigation voice is not set as an idle section, and will also determine the section where the navigation voice does not meet the target condition as an idle section.
[0107] In one possible implementation, if no navigation voice is set for any section in the navigation route or the set navigation voice does not meet the target condition, and the length of any section is not less than a first length, the terminal determines any section as an idle section in the navigation route.
[0108] The terminal determines a section in the navigation route where no navigation voice is set, determines the length of the section, and if the length of the section is not less than a first length, determines the section as an idle section in the navigation route. Alternatively, the terminal determines a section in the navigation route where the set navigation voice does not meet the target condition, determines the length of the section, and if the length of the section is not less than the first length, determines the section as an idle section in the navigation route.
[0109] In the embodiment of the present application, non-navigation voice will be played in the determined idle section later. In order to ensure that the non-navigation voice can be successfully played in the idle section, the length of the idle section is required to be long enough to avoid the situation where the non-navigation voice has not been played when the terminal moves out of the idle section. Therefore, the terminal selects a section with a length greater than the first length as an idle section in a section where the navigation voice is not set or the set navigation voice does not meet the target condition. Optionally, the first length is configured by the terminal, or is configured by the server and then sent to the terminal, for example, the first length is 300 meters.
[0110] In another possible implementation, if the terminal does not set a navigation voice between any sections in the navigation route or the set navigation voice does not meet the target conditions, and the time required to pass through any section is not less than a first time, the terminal determines any section as an idle section in the navigation route.
[0111] The terminal determines a section in the navigation route where no navigation voice is set, determines a time required to pass through the section, and if the time is not less than a first time, determines the section as an idle section in the navigation route. Alternatively, the terminal determines a section in the navigation route where the set navigation voice does not meet the target condition, determines a time required to pass through the section, and if the time is not less than the first time, determines the section as an idle section in the navigation route.
[0112] For example, the terminal determines the time required for the terminal to pass the section based on the current moving speed and the length of the section. Or the terminal requests the server for the time required to pass the section, and the server queries the average time required for other terminals to pass the section based on historical records, and returns the average time to the terminal.
[0113] In an embodiment of the present application, a non-navigation voice will be played in a determined idle section later. In order to ensure that the non-navigation voice can be successfully played in the idle section, the time required to pass through the idle section is required to be long enough to avoid the situation where the non-navigation voice has not been played when the terminal moves out of the idle section. Therefore, in a section where no navigation voice is set or the set navigation voice does not meet the target condition, the terminal selects a section with a corresponding duration greater than the first duration as an idle section. Optionally, the first length is configured by the terminal, or is configured by the server and then sent to the terminal, for example, the first duration is 9 seconds. Optionally, the first duration is determined according to the duration required to play the non-navigation voice. For example, if the shortest duration required to play a non-navigation voice is 9 seconds, the first duration is set to 9 seconds.
[0114] In another possible implementation, the navigation route is formed by connecting a plurality of location points arranged in sequence in series, and the navigation voice is set at the location point in the navigation route. The terminal determines a location point in the navigation route where the navigation voice is not set, and determines the location point as the first location point. The terminal determines the first location point after the first location point where the navigation voice is set, determines the location point as the second location point, and determines the section between the first location point and the second location point as an idle section. Alternatively, the terminal determines a location point in the navigation route where the set navigation voice does not meet the target condition, and determines the location point as the first location point. The terminal determines the first location point after the first location point where the set navigation voice meets the target condition, determines the location point as the second location point, and determines the section between the first location point and the second location point as an idle section.
[0115] For example, if the length of the section between the first location point and the second location is not less than the first length, the terminal determines the section as an idle section in the navigation route. Alternatively, if the time required for the terminal to pass through the section between the first location point and the second location is not less than the first time, the terminal determines the section as an idle section in the navigation route.
[0116] In another possible implementation, the navigation voice corresponds to a priority, and the target condition is that the priority of the navigation voice is higher than the target priority. When the priority of the navigation voice set by the terminal at any section in the navigation route is not higher than the target priority, the terminal determines the any section as an idle section in the navigation route. That is, the idle section determined by the terminal is only set with a navigation voice whose priority is not higher than the target priority, and is a navigation voice whose priority is set higher than the target priority.
[0117] Among them, the priority of the navigation voice can indicate the importance of the navigation voice. The higher the priority of the navigation voice, the more important the navigation voice. Considering that the navigation voice with a priority higher than the target priority is relatively important, and the navigation voice with a priority not higher than the target priority is relatively unimportant, the terminal determines the section where the priority of the navigation voice set is not higher than the target priority in the navigation route, and determines the section as an idle section, so that non-navigation voice can be played in the idle section later, thereby increasing the selection space of the idle section and increasing the number of times the non-navigation voice is played without affecting the playing of important navigation voices, and further increasing the amount of information played in the voice during the navigation process.
[0118] For example, the navigation voice includes high-priority voice and medium-priority voice. If the priority of the navigation voice set at any section in the navigation route is not higher than the high priority, the terminal determines the any section as an idle section in the navigation route.
[0119] It should be noted that the embodiment of the present application is described by taking the example of determining an idle section in the navigation route after obtaining the navigation route. In another embodiment, the terminal determines an idle section in the navigation route when the length of the navigation route is greater than the second length.
[0120] After acquiring the navigation route, the terminal determines the length of the navigation route. In order to avoid the situation where the navigation voice or non-navigation voice has not been played when the terminal reaches the end position due to the navigation route being too short, it is necessary to ensure that the navigation route is long enough. Therefore, when the length of the navigation route is not less than the second length, the terminal determines an idle section in the navigation route. Optionally, the second length is configured by the terminal, or is configured by the server and then sent to the terminal, for example, the second length is 1 kilometer.
[0121] Correspondingly, in another embodiment, when the length of the navigation route is not greater than the second length, the terminal does not need to determine the idle section, and therefore does not need to perform the following steps 304-305.
[0122] 304. When the current location of the terminal is in an idle section, play non-navigation voice.
[0123] The user carries the terminal and moves along the navigation route. During the movement, the current position of the terminal will change constantly. The terminal determines the current position through positioning, and when the current position is in an idle section, plays the non-navigation voice assigned to the idle section.
[0124] In a possible implementation, when the current location of the terminal is in an idle section, the non-navigation voice is broadcasted, including at least one of the following:
[0125] (1) The road sections in the navigation route have corresponding levels. When the current location of the terminal is in an idle road section and the level of the idle road section belongs to the target level, a non-navigation voice is broadcast.
[0126] The navigation route includes multiple sections, each section has its own level, and the levels corresponding to different sections can be the same or different. Optionally, each road in the electronic map is assigned its own level, and the terminal determines the level corresponding to the road where the section in the navigation route is located as the level of the section. For example, the roads in the electronic map are divided according to administrative regions or traffic tasks. For example, the roads in the electronic map can be divided into 9 levels, and the target level can be set to 5 of them.
[0127] The terminal determines whether the level of the idle section is the target level. If the level of the idle section is the target level and the current position of the terminal is in the idle section, the non-navigation voice is played. If the level of the idle section is not the target level, the terminal does not play the non-navigation voice even if the current position of the terminal is in the idle section. That is, the level of the idle section is the target level, which is a prerequisite for playing the non-navigation voice in the idle section. By setting the target level, the terminal can control which sections can play the non-navigation voice and which sections cannot play the non-navigation voice, thereby improving the flexibility of the location where the non-navigation voice is played.
[0128] (2) When the current location of the terminal is in an idle section and the current time is in the target time period, a non-navigation voice is broadcast.
[0129] The terminal determines whether the current time belongs to the target time period. If the current time belongs to the target time period and the current position of the terminal is in an idle section, a non-navigation voice is played. If the current time does not belong to the target time period, even if the current position of the terminal is in an idle section, the terminal does not play the non-navigation voice. That is, the current time belongs to the target time period, which is a prerequisite for playing the non-navigation voice in the idle section. For example, the target time period is 14:00-18:00. If the current time is 15:00 and the current time belongs to the target time period, then the non-navigation voice is played when the current position of the terminal is in an idle section. If the current time is 9:00 and the current time does not belong to the target time period, even if the current position of the terminal is in an idle section, the terminal does not play the non-navigation voice.
[0130] By setting the target time period, the terminal can control which time periods are capable of playing the non-navigation voice and which time periods are not capable of playing the non-navigation voice, thereby improving the flexibility of the time periods for playing the non-navigation voice.
[0131] (3) When the starting position of the navigation route is in the first target area and the current position of the terminal is in an idle section, a non-navigation voice is broadcast.
[0132] The terminal determines whether the starting position of the navigation route is in the first target area. If the starting position of the navigation route is in the first target area and the current position of the terminal is in an idle section, the non-navigation voice is played. If the starting position of the navigation route is not in the first target area, the terminal does not play the non-navigation voice even if the current position of the terminal is in an idle section. That is, the starting position of the navigation route is in the first target area, which is a prerequisite for playing the non-navigation voice in an idle section.
[0133] Optionally, the first target area is configured by the terminal, or configured by the server and then sent to the terminal. Optionally, the first target area is configured according to administrative areas, for example, the first target area is a first target city or a first target province.
[0134] By setting the first target area, the terminal can control which areas of the navigation routes with the starting position can play non-navigation voice and which areas of the navigation routes with the starting position cannot play non-navigation voice, thereby improving the flexibility of navigation routes that play non-navigation voice.
[0135] (4) When the end position of the navigation route is in the second target area and the current position of the terminal is in an idle section, a non-navigation voice is broadcast.
[0136] The terminal determines whether the end position of the navigation route is in the second target area. If the end position of the navigation route is in the second target area and the current position of the terminal is in an idle section, the non-navigation voice is played. If the end position of the navigation route is not in the second target area, the terminal does not play the non-navigation voice even if the current position of the terminal is in an idle section. That is, the end position of the navigation route is in the second target area, which is a prerequisite for playing the non-navigation voice in the idle section.
[0137] Optionally, the second target area is configured by the terminal, or configured by the server and then sent to the terminal. Optionally, the second target area is configured according to the administrative area, for example, the second target area is a second target city or a second target province.
[0138] By setting the second target area, the terminal can control which areas of the navigation routes where the end location is located can play non-navigation voice and which areas of the navigation routes where the end location is located cannot play non-navigation voice, thereby improving the flexibility of navigation routes that play non-navigation voice.
[0139] (5) When the current location of the terminal is in an idle section and the number of times the terminal plays the non-navigation voice is not greater than the target number of times, the non-navigation voice is played.
[0140] The terminal determines whether the number of times the non-navigation voice is played is greater than the target number of times. If the number of times the non-navigation voice is played is not greater than the target number of times and the current location of the terminal is in an idle section, the non-navigation voice is played. If the number of times the non-navigation voice is played is greater than the target number of times, the terminal does not play the non-navigation voice even if the current location of the terminal is in an idle section. That is, the total number of times the terminal plays the non-navigation voice is not greater than the target number of times.
[0141] Optionally, the number of times the terminal plays the non-navigation voice is the number of times a certain non-navigation voice is played. For example, if the number of times a certain non-navigation voice is played is no more than 1 time, then after the terminal plays the non-navigation voice once, it will no longer play the non-navigation voice. Optionally, the number of times the terminal plays the non-navigation voice is the total number of times the terminal has played the non-navigation voice in history, the total number of times the terminal has played the non-navigation voice in a single day in history, or the total number of times the terminal has played the non-navigation voice on the navigation route in history, etc.
[0142] By setting the target number of times, the terminal can control the number of times the non-navigation voice is played, thereby improving the flexibility of controlling the number of times the non-navigation voice is played, which is conducive to avoiding the situation in which the navigation effect is affected by playing the non-navigation voice too many times during the same navigation process.
[0143] In another possible implementation, the non-navigation voices that have not been played are stored in the voice list and arranged in a play order. In response to the play request for the first target voice, the terminal plays the first target voice, and deletes the first non-navigation voice from the voice list if the priority of the first non-navigation voice in the voice list is lower than that of the first target voice.
[0144] Among them, the navigation voice and non-navigation voice played during the navigation process have corresponding priorities. After determining the navigation route, the acquired navigation voice and non-navigation voice can be set to different sections of the navigation route respectively. During the navigation process, a request to play the first target voice can also be newly inserted. The first target voice can be any voice, and the first target voice also has a corresponding priority. The terminal responds to the request to play the first target voice, plays the first target voice, and then compares the priority of the first target voice and the priority of the first non-navigation voice in the voice list. When the priority of the first non-navigation voice is lower than the priority of the first target voice, considering that the priority of the first non-navigation voice is lower, the first non-navigation voice is discarded, which is equivalent to replacing the first non-navigation voice with the newly inserted first target voice, thereby controlling the number of voices played during the navigation process.
[0145] Optionally, the terminal generates a request to play the first target voice according to the current movement situation and the road condition at the current location, etc. For example, if the current location of the terminal is in a road section with a speed limit of 40 km / h, and the terminal detects that the current moving speed is greater than 40 km / h, a request to play the first target voice is generated, and the first target voice is a voice instructing the terminal to reduce the moving speed.
[0146] In another possible implementation, before the above step 304, the terminal obtains multiple non-navigation voices assigned to the navigation route and the corresponding priorities, and assigns different non-navigation voices corresponding to the highest priority to at least one idle section in the navigation route, and assigns the remaining non-navigation voices to the remaining idle sections. That is, an idle section is only provided with the non-navigation voice corresponding to the highest priority or only provided with the non-navigation voices corresponding to the priorities other than the highest priority. Then, for the idle section provided with only the non-navigation voice corresponding to the highest priority, when the current position of the terminal is in the idle section, no matter whether a request to play a voice of any priority is detected, the non-navigation voice in the voice list of the idle section will not be deleted, that is, the non-navigation voice set in the idle section will not be replaced by any newly inserted voice.
[0147] For example, among multiple idle sections in the navigation route, the terminal selects some idle sections and configures them as high-level idle sections, and configures the remaining idle sections as low-level idle sections. Then, the terminal only sets non-navigation voices corresponding to the highest priority in the high-level idle sections, and only sets non-navigation voices corresponding to the remaining priorities except the highest priority in the low-level idle sections.
[0148] 305. In response to the non-navigation voice being an interactive voice, the terminal detects a human voice and performs a control operation based on the human voice.
[0149] In the case where the non-navigation voice is an interactive type of voice, after the terminal plays the non-navigation voice, in response to the detected human voice, a control operation is performed based on the human voice, and the human voice instructs the terminal to perform the control operation. Optionally, after the terminal plays the non-navigation voice, voice detection is turned on, and after the human voice is detected, voice detection is turned off. Alternatively, after the terminal plays the non-navigation voice, voice detection is turned on, and in response to the duration of turning on voice detection reaching a third duration and no human voice is detected, voice detection is turned off.
[0150] In one possible implementation, the terminal plays the next non-navigation voice in response to a human voice instruction, but receives a request to play the second target voice, and plays the next non-navigation voice after playing the second target voice.
[0151] Since the next non-navigation voice is a non-navigation voice played by a human voice instruction, that is, the non-navigation voice is the non-navigation voice that the user expects to play, in this case, if a newly inserted request for playing the second target voice is received, the terminal plays the second target voice, and then plays the next non-navigation voice, and no longer considers the priority of the second target voice and the priority of the next non-navigation voice. Regardless of which has a higher priority, the terminal will not delete the next non-navigation. That is, the non-navigation voice that the user actively chooses to play will not be replaced by the newly inserted voice, thereby avoiding the newly inserted voice from affecting the effect of human-computer interaction.
[0152] For example, the human voice is "play music", and the non-navigation voice indicated by the human voice is the music. After the terminal detects the human voice and before it has time to play the voice, the terminal detects a request to play the second target voice "You are speeding, please slow down". The terminal plays the second target voice "You are speeding, please slow down" and then plays the music.
[0153] In another possible implementation, the human voice instructs moving to a first target location outside the navigation route, and the terminal adds a section from the terminal's current location to the first target location in the navigation route, or changes the navigation route to a route from the terminal's current location to the first target location.
[0154] If the human voice instructs to move to the first target position, and the first target position is outside the navigation route, it means that there is no section in the navigation route to move to the first target position. The terminal determines the section from the current position to the first target position, and then adds the section to the navigation route to guide the user to move to the first target position.
[0155] For example, if the terminal detects that the first target location outside the navigation route is a gas station, and the distance between the gas station and the navigation route is not greater than the target distance, the terminal can play a non-navigation voice "Do you want to fill up your car on the way?" If a human voice is detected as "yes" or "fill up your car on the way" or other voice indicating moving to the gas station, the terminal adds a section from the current location to the gas station in the navigation route to guide the user to move to the gas station.
[0156] For example, if the first target location is Shijiazhuang, the user needs to change the end location from Beijing to Shijiazhuang during driving. The human voice can be "Change the destination to Shijiazhuang" or "Go to Shijiazhuang" and other voices indicating moving to Shijiazhuang. The terminal will change the current navigation route to a route from the current location of the terminal to Shijiazhuang.
[0157] In another possible implementation, the terminal runs an electronic map client, and the above steps 301-305 are executed by the terminal based on the electronic map client. The electronic map client is embedded with a non-intelligent voice playback module and an intelligent voice playback module. The non-intelligent voice playback module cannot interact with the human voice, and the intelligent voice playback module can interact with the human voice. The navigation voice played in the embodiment of the present application is played by the non-intelligent voice playback module, and the non-navigation voice played in the embodiment of the present application is played by the intelligent voice playback module.
[0158] The voice interaction between the intelligent voice playback module and the user can be initiated by the intelligent voice playback module or by the user. Optionally, during the voice interaction between the intelligent voice playback module and the user, the terminal displays an interactive window on the application interface of the electronic map. Figure 4 As shown, the nickname of the intelligent voice playback module is "Dingdang", and the terminal displays the navigation route in the application interface 401. When the intelligent voice playback module interacts with the user by voice, the terminal displays an interactive window 411 in the application interface 401, and the interactive window 411 displays "Dingdang is saying...".
[0159] It should be noted that the above step 304 takes the non-navigation voice as an interactive type of voice as an example to illustrate the process of the terminal performing a control operation according to the human voice. In another embodiment, the non-navigation voice is not an unintelligible type of voice, and the terminal does not perform the above step 304.
[0160] In another possible implementation, the terminal runs an electronic map client, and the navigation modes of the electronic map client include a three-dimensional navigation mode, a two-dimensional navigation mode, and a cruise mode. In the cruise mode, no navigation route is set, and only the current location of the terminal and the location points and sections in the electronic map are displayed on the application interface of the electronic map client. The voice playback method provided in the embodiment of the present application is applied to the three-dimensional navigation mode and the two-dimensional navigation mode.
[0161] Taking the scenario of driving navigation as an example, during the process of driving navigation, there will be many idle sections where no navigation voice or important navigation voice is needed to be played. The terminal can play non-navigation voice in the idle sections according to the operation configuration or automatic configuration. The content of non-navigation voice is shown in Table 1.
[0162] Table 1
[0163]
[0164] For example, the content of non-interactive non-navigation voice is "Ding Dang supports playing music", which reminds users of the new functions of the electronic map client. Interactive non-navigation voice is "Do you need to download the latest voice package?" to recommend the latest voice package to users. For users, using idle sections to listen to non-navigation voice played by the terminal can improve the user's navigation experience, increase the fun of the navigation process, and help increase user stickiness.
[0165] The method provided in the embodiment of the present application takes into account that the sections where navigation voice is not set or the sections where the set navigation voice does not meet the target conditions are relatively idle. Therefore, when the current position of the terminal is in these idle sections, non-navigation voice that does not need to instruct the terminal to move is played, thereby enriching the form of voice playback during navigation without affecting navigation, and improving the amount of information in voice playback and the flexibility of voice playback.
[0166] Furthermore, the length of the idle section is not less than the first length, or the time required to pass through the idle section is not less than the first time length, thereby avoiding the situation where the non-navigation voice has not been played completely when the terminal moves out of the idle section, and ensuring that the complete non-navigation voice is successfully played in the idle section.
[0167] In addition, the road section without navigation voice having a priority higher than the target priority is determined as an idle section, so that non-navigation voice can be played in the idle section later. This increases the selection space of the idle section and the number of times the non-navigation voice is played, while ensuring that the playing of important navigation voice is not affected, thereby further increasing the amount of information played in voice during the navigation process.
[0168] Above Figure 3 The embodiment provides a process of playing non-navigation voice in an idle section. In addition, it is also possible to determine where to play the non-navigation voice according to a specific location, see Figure 5 , Figure 5 is a flow chart of a voice playback method provided by an embodiment of the present application. The method of the embodiment of the present application is as follows: Figure 1 The terminal in the embodiment is executed, the method includes:
[0169] 501. The terminal obtains a navigation route.
[0170] The step 501 is the same as the above step 301 and will not be described in detail here.
[0171] 502. The terminal determines a second target location among multiple locations in the navigation route.
[0172] The navigation route is formed by connecting multiple locations in sequence, and the terminal determines the second target location among the multiple locations. Any of the multiple locations can be determined as the second target location, and the specific location determined as the second target location can be configured by the terminal itself or by a server providing services for the terminal, and then the server sends the configured second target location to the terminal.
[0173] For example, the second target location is the starting location, the ending location, the location of a store, or the location of a gas station in the navigation route, etc., which is not limited in the embodiments of the present application.
[0174] 503. The terminal determines the route in the navigation route that is within the geographical area to which the second target location belongs as the target route section.
[0175] The terminal determines the geographical area to which the second target location belongs, and determines the route within the geographical area in the navigation route as the target section.
[0176] Among them, the terminal can use any method to determine the geographical area to which the second target position belongs. Optionally, the terminal determines a circular area with the second target position as the center and the third length as the radius, and determines the circular area as the geographical area to which the second target position belongs, or the terminal determines the area in the navigation route whose distance from the second target position is not greater than the third length as the geographical area to which the second target position belongs. For example, the third length is 5 meters, etc. Optionally, the terminal determines the street to which the second target position belongs as the geographical area, or determines the community to which the second target position belongs as the geographical area.
[0177] 504. The terminal plays a non-navigation voice related to the second target location according to the target section in the navigation route.
[0178] After the terminal determines the target section in the navigation route, it plays the non-navigation voice related to the second target position according to the target section in the navigation route.
[0179] Among them, the non-navigation voice related to the second target location means that the content of the non-navigation voice is related to the second target location. For example, if the second target location is a gas station, the non-navigation voice is "Do you want to refuel on the way?", so as to remind the user to refuel. For example, if the second target location is a store, the non-navigation voice is "The store ahead has an event of giving away 50 yuan for purchases over 50 yuan, and you are invited to participate", to remind the user to go shopping in the store. For example, if the second target location is Guangzhou, the non-navigation voice is "Guangzhou traffic police remind you, please fasten your seat belts", to remind the user to arrive in Guangzhou.
[0180] Among them, according to the target section in the navigation route, playing the non-navigation voice related to the second target position includes the following two methods.
[0181] In the first way, when the current position of the terminal is at the target section, a non-navigation voice with content related to the second target position is played.
[0182] The user carries the terminal and moves along the navigation route. During the movement, the current position of the terminal will keep changing. The terminal determines the current position through positioning, and plays non-navigation voice related to the second target position when the current position is in the target section.
[0183] In the second manner, when the current location of the terminal is within the geographical area corresponding to the target road section, a non-navigation voice with content related to the second target location is played.
[0184] The user carries the terminal and moves along the navigation route. During the movement, the current position of the terminal will change constantly. The terminal determines the current position through positioning, and plays non-navigation voice related to the second target position when the current position is in the geographical area corresponding to the target section.
[0185] The terminal may determine the geographical area corresponding to the target section in any manner. Optionally, the terminal determines a third position point in the navigation route that is before the target section and has a first distance from the starting point of the target section, and a fourth position point that has a second distance from the starting point of the target section, and determines the section between the third position point and the fourth position point as the geographical area corresponding to the target section. The geographical area may be referred to as the playback interval of the non-navigation voice, for example, the playback interval is [50 meters, 2 kilometers], such as Figure 6 As shown, the section between point C and point D in the navigation route is the target section, point B before point C in the navigation route is determined to be 50 meters away from point C, point A before point C in the navigation route is determined to be 2 kilometers away from point C, and the section between point A and point B is the geographical area corresponding to the target section. In addition, the playback interval can also be set to [50 meters, 800 meters] or [0 meters, 300 meters], etc., which is not limited in the embodiments of the present application. Optionally, the terminal can also determine the street to which the target section belongs as the geographical area corresponding to the target section, or determine the community to which the target section belongs as the geographical area corresponding to the target section.
[0186] Taking the scenario of user driving navigation as an example, multiple target sections are configured during the user driving navigation process, and the terminal can play the corresponding non-navigation voice in the geographical area corresponding to the target section according to the operation configuration or automatic configuration. The content of the non-navigation voice is shown in Table 2.
[0187] Table 2
[0188]
[0189] For example, if the second target location is Guangzhou, the corresponding non-navigation voice is "Guangzhou traffic police remind you, please fasten your seat belts." For example, if the second target location is a store, the corresponding non-navigation voice is "The store at the destination has a 50 yuan gift for every 50 yuan spent, you are invited to participate." For example, if the second target location is a gas station, the corresponding non-navigation voice is "There is a gas station 500 meters ahead, use the electronic map client to refuel and enjoy an instant 200 yuan discount, do you need to refuel on the way?" Figure 7 As shown, during the playing of the non-navigation voice, the terminal displays "You can say "Fill up the gas" on the way" in the interactive window 711 of the application interface 701 to guide the user to perform voice interaction. For example, the second target location is the scenic spot Xibei Oat Noodle Village, and the corresponding non-navigation voice is "We will pass by Xibei Oat Noodle Village 500 meters ahead. Do you need to go to Xibei Oat Noodle Village?" Figure 8 As shown, during the process of playing the non-navigation voice, the terminal displays "You can say go to Xibei Youmian Village" in the interactive window 811 of the application interface 801 to guide the user to perform voice interaction.
[0190] The method provided in the embodiment of the present application plays non-navigation voice related to the second target location for the target road section where the second target location is located, when the current location of the terminal is in the geographical area corresponding to these target road sections, thereby setting customized non-navigation voice for certain locations in the navigation route, achieving precise delivery of non-navigation voice, enriching the form of voice playback during the navigation process, and improving the amount of information in voice playback and the flexibility of voice playback.
[0191] Above Figure 5 The embodiment provides a process for playing non-navigation voice according to a specific location. In addition, non-navigation voice can also be played in congested sections. Fig. 9 , Fig. 9 is a flow chart of a voice playback method provided by an embodiment of the present application. The method of the embodiment of the present application is as follows: Figure 1 The terminal in the embodiment is executed, the method includes:
[0192] 901. The terminal obtains a navigation route.
[0193] The step 901 is the same as the above step 301 and will not be described in detail here.
[0194] 902. The terminal determines a congested section in the navigation route.
[0195] The terminal determines a congested section in the navigation section. A congested section refers to a section with a large traffic flow. Optionally, during the driving navigation process, the terminal determines the traffic flow in a certain section, and when the traffic flow is greater than a target traffic flow, the section is determined as a congested section. Alternatively, the terminal determines the average vehicle speed in a certain section, and when the average vehicle speed is less than a target vehicle speed, the section is determined as a congested section.
[0196] 903. The terminal broadcasts non-navigation voice in congested sections of road.
[0197] The user carries the terminal and moves along the navigation route. During the movement, the current position of the terminal will keep changing. The terminal determines the current position through positioning, and plays non-navigation voice when the current position is in a congested section.
[0198] Among them, playing non-navigation voice in congested sections includes the following two situations.
[0199] In the first case, when the current location of the terminal is in a congested section and the length of the congested section is greater than the third length, a non-navigation voice is broadcast.
[0200] In order to ensure that the non-navigation voice can be successfully played in the congested section, the length of the congested section is required to be long enough to avoid the situation where the non-navigation voice has not been played when the terminal moves out of the congested section. Therefore, when the current position of the terminal is in the congested section and the length of the congested section is greater than the third length, the non-navigation voice is broadcast.
[0201] In the second case, when the current position of the terminal is in a congested section and the time required for the terminal to pass through the congested section is greater than the second time period, a non-navigation voice is broadcast.
[0202] For example, the terminal determines the time required for the terminal to pass through the congested section based on the average moving speed in the congested section and the length of the congested section. In the embodiment of the present application, in order to ensure that the non-navigation voice can be successfully played in the congested section, the time required to pass through the congested section is required to be long enough to avoid the situation where the non-navigation voice has not been played when the terminal moves out of the congested section. Therefore, when the current position of the terminal is in the congested section and the time required for the terminal to pass through the congested section is greater than the second time, the non-navigation voice is broadcast.
[0203] The method provided in the embodiment of the present application plays non-navigation voice for a congested road section whose length is greater than the third length, or a congested road section whose duration is greater than the second duration, when the current position of the terminal is in the congested road section. This further expands the playback scenarios of non-navigation voice, enriches the forms of voice playback during navigation, and increases the amount of information in voice playback and the flexibility of voice playback.
[0204] In some embodiments, the above Figure 3 , Figure 5 as well as Fig. 9 In a corresponding embodiment, the configuration file required for voice playback during navigation can be configured in a configuration device and then sent to the terminal. Fig.10 This is a system architecture diagram provided by an embodiment of the present application, such as Fig.10 As shown, the configuration device includes a target road section storage module 1001, a configuration module 1002 and a playback timing determination module 1003. The operator generates a configuration file using the configuration module 1002. The configuration device stores the target road section in the configuration file in the target road section storage module 1001. The playback timing determination module 1003 is used to determine the playback timing of the navigation voice and the non-navigation voice. The configuration device notifies the terminal of the playback timing. The terminal includes a navigation route planning module 1004, a navigation module 1005, a navigation route display module 1006 and a voice playback module 1007. The navigation route planning module 1004 is used to plan the navigation route, the navigation module 1005 is used to navigate according to the navigation route, the navigation route display module 1006 is used to display the navigation route, and the voice playback module 1007 is used to play the navigation voice and the non-navigation voice.
[0205] For example, the configuration file includes at least one of the following:
[0206] (1) Name of non-navigation voice;
[0207] (2) Description of non-navigation speech;
[0208] (3) Whether the non-navigation voice is effective;
[0209] (4) Devices that are not used for navigation voice, such as mobile phone clients, open platforms, and vehicle terminals;
[0210] (5) The client version for which the non-navigation voice is effective;
[0211] (6) The version of the guidance engine used by the non-navigation voice, which refers to the engine used to determine the timing of playback;
[0212] (7) The download channel for the non-navigation voice, which is the client's download channel;
[0213] (8) The effective date of the non-navigation speech, which is the date on which it comes into effect;
[0214] (9) The grayscale ratio of the non-navigation voice in effect, which refers to the proportion of users who hit the voice playback strategy;
[0215] (10) Validity of non-navigation voice Imei (International Mobile Equipment Identity);
[0216] (11) The starting city where the non-navigation voice takes effect, which is the city where the navigation route starts;
[0217] (12) The destination city where the non-navigation voice is effective, which is the city where the navigation route ends;
[0218] (13) a target number of times the non-navigation voice is effective, wherein each terminal corresponds to a number table, which includes the historical number of times the terminal plays the non-navigation voice and the target number of times allowed for playing the non-navigation voice. The number table is updated each time the terminal successfully plays the voice;
[0219] (14) Target time period for non-navigation voice to be effective;
[0220] (15) A second target location in the electronic map and a geographical area to which the second target location belongs, and determining the geographical area to which the second target location belongs as the target road section. The target road section is updated according to a target period;
[0221] (16) The priorities of navigation speech and non-navigation speech, which include high priority, medium priority and low priority. Navigation speech is set to high priority or medium priority, and non-navigation speech is set to low priority;
[0222] (17) Priority of voice playback. For example, if the priority of voice playback is high, only high-priority voices are played during navigation. For example, if the priority of voice playback is medium, voices with a priority not lower than medium are played during navigation. For example, if the priority of voice playback is low, voices with a priority not lower than low are played during navigation.
[0223] (18) Playback interval of non-navigation voice;
[0224] (19) The level corresponding to the road section where non-navigation voice is effective.
[0225] Above Figure 3 , Figure 5 as well as Fig. 9In the corresponding embodiments, the process of playing non-navigation voice in the case of an idle section, a geographical area corresponding to a target section, and a congested section is respectively described. Among them, in the above three cases, there are multiple scenarios for playing non-navigation voice. In different scenarios, the content of non-navigation voice is also different. In one possible implementation, the content of non-navigation voice is related to at least one of user identity information, characteristic information of the navigation route, current date information, or the type of current device, wherein the user identity information is the identity information corresponding to the user identifier of the terminal login.
[0226] For example, the scenario of playing the non-navigation voice and the content of the non-navigation voice include at least one of the following:
[0227] (1) When the current location of the terminal is in the city where the starting location is located, for example, the non-navigation voice played is "Guangdong traffic police remind you, please fasten your seat belt";
[0228] (2) When the navigation route includes a mountain road, for example, the non-navigation voice message played is "After 1.8 kilometers of mountain road, please check the vehicle condition";
[0229] (3) When the end location of the navigation route is determined to be the user's address based on the navigation route and the user's identity information, for example, the non-navigation voice played is "Go home quickly";
[0230] (4) When the second target location in the navigation route is a store, for example, the non-navigation voice message played is "The store ahead is currently offering a 50 yuan gift for purchases over 50 yuan."
[0231] (5) When it is determined based on the current date information and the user identity information that today is the user's birthday, for example, the non-navigation voice played is "Today is your birthday, happy birthday to you";
[0232] (6) When it is determined that today is the weekend and the end point of the navigation route is the user's company, for example, the non-navigation voice played is "You are still working overtime on the weekend, thank you for your hard work";
[0233] (7) When the current location of the terminal is in a certain city, for example, the non-navigation voice played is "Welcome to Beihai City";
[0234] (8) When there is a school on the target road ahead, for example, the non-navigation voice message played is "The school ahead is holding a college entrance examination, please do not honk";
[0235] (9) When there is a fork in the target road ahead, for example, the non-navigation voice played is "Fork ahead, both sides are passable";
[0236] (10) When the current location is in a congested section, for example, the non-navigation voice played is "The traffic is congested 5.8 kilometers ahead and it is expected to pass in 15 minutes. Do you need Dingdang to tell you a joke?"
[0237] (11) When the current location is in an idle section, for example, the non-navigation voice played is "Continue driving along the current road for 15 kilometers. Do you need Dingdang to tell you a joke?"
[0238] (12) When there is a scenic spot on the target road ahead, for example, the non-navigation voice played is "You will pass the Yongle Temple scenic spot on the right ahead";
[0239] (13) When the current location is in the geographical area to which the end location belongs, for example, the non-navigation voice played is "I'm home. It's been a hard day."
[0240] (14) When the end location is a scenic spot, for example, the non-navigation voice played is "You can try to view the scenic spot guide on the map."
[0241] Fig.11 This is a schematic diagram of the structure of a voice playback device provided in an embodiment of the present application, see Fig.11 , the device comprises:
[0242] The route acquisition module 1101 is used to acquire a navigation route, where the navigation route includes an idle section, where the idle section is a section where no navigation voice is set or where the set navigation voice does not meet the target condition;
[0243] The first playing module 1102 is used to play non-navigation voice when the current position of the terminal is in an idle section;
[0244] The navigation voice is a voice that instructs the terminal to move, and the non-navigation voice is a voice other than the navigation voice.
[0245] The voice playback device provided in the embodiment of the present application takes into account that the sections where the navigation voice is not set or the sections where the set navigation voice does not meet the target conditions are relatively idle. Therefore, when the current position of the terminal is in these idle sections, non-navigation voice that does not require instructing the terminal to move is played, thereby enriching the form of voice playback during the navigation process without affecting the navigation, and improving the amount of information in the voice playback and the flexibility of the voice playback.
[0246] Alternatively, see Fig.12 , the device further comprises:
[0247] The idle section determination module 1103 is used to determine any section in the navigation route as an idle section in the navigation route when the priority of the navigation voice set for any section in the navigation route is not higher than the target priority.
[0248] Alternatively, see Fig.12 , the device further comprises:
[0249] The idle section determination module 1103 is used to determine any section in the navigation route as an idle section in the navigation route when no navigation voice is set for any section in the navigation route or the set navigation voice does not meet the target condition and the length of any section is not less than the first length.
[0250] Alternatively, see Fig.12 , the device further comprises:
[0251] The idle section determination module 1103 is used to determine any section as an idle section in the navigation route when no navigation voice is set between any sections in the navigation route or the set navigation voice does not meet the target condition and the time required to pass any section is not less than the first time.
[0252] Optionally, the device further comprises:
[0253] The configuration information acquisition module 1104 is used to acquire voice configuration information, wherein the voice configuration information includes at least one of user identity information, feature information of the navigation route, current date information, or type of current device, wherein the user identity information is identity information corresponding to the user identifier of the terminal login;
[0254] The non-navigation voice generating module 1105 is used to generate the non-navigation voice whose content is related to the voice configuration information.
[0255] Alternatively, see Fig.12 , the device further comprises:
[0256] A voice acquisition module 1106 is used to acquire a plurality of non-navigation voices assigned to the navigation route and corresponding priorities;
[0257] A voice distribution module 1107, configured to distribute different non-navigation voices corresponding to the highest priority to at least one idle section in the navigation route;
[0258] The voice distribution module 1107 is further used to distribute the remaining non-navigation voices to the remaining idle sections.
[0259] Alternatively, see Fig.12 , the first playing module 1102 is used to perform at least one of the following:
[0260] The road sections in the navigation route have corresponding levels. When the current location of the terminal is in an idle road section and the level of the idle road section belongs to the target level, a non-navigation voice is broadcast;
[0261] When the current location of the terminal is in an idle section and the current time is in the target time period, a non-navigation voice is broadcast;
[0262] When the starting position of the navigation route is in the first target area and the current position of the terminal is in an idle section, a non-navigation voice is broadcasted;
[0263] When the end position of the navigation route is in the second target area and the current position of the terminal is in an idle section, a non-navigation voice is broadcasted;
[0264] When the current position of the terminal is in an idle section and the number of times the terminal plays the non-navigation voice is not greater than the target number of times, the non-navigation voice is broadcast.
[0265] Alternatively, see Fig.12 , the navigation route includes a target section, the target section includes a second target location, and the device further includes:
[0266] The second playing module 1108 is used to play non-navigation voice content related to the second target location when the current location of the terminal is at the target section; or
[0267] The second playing module 1108 is further configured to play non-navigation voice content related to a second target location when the current location of the terminal is within a geographical area corresponding to the target road section.
[0268] Alternatively, see Fig.12 , the device further comprises:
[0269] The position determination module 1109 is used to determine a second target position among a plurality of positions in the navigation route;
[0270] The target section determination module 1110 is used to determine the route in the navigation route that is located in the geographical area to which the second target position belongs as the target section.
[0271] Alternatively, see Fig.12 , the non-navigation voices that have not been played are stored in the voice list and arranged in the order of playing; the device also includes:
[0272] The third playing module 1111 is used to play the first target voice in response to a play request for the first target voice;
[0273] The voice deletion module 1112 is used to delete the first non-navigation voice from the voice list when the priority of the first non-navigation voice in the voice list is lower than that of the first target voice.
[0274] Alternatively, see Fig.12 , the device further comprises:
[0275] The operation execution module 1113 is used to detect human voice in response to the non-navigation voice being an interactive type of voice, and execute a control operation based on the human voice.
[0276] Alternatively, see Fig.12 , the operation execution module 1113 includes:
[0277] The voice playing unit 11131 is used to play the next non-navigation voice in response to the human voice instruction, but receives a request to play the second target voice, and plays the next non-navigation voice after playing the second target voice.
[0278] Alternatively, see Fig.12 , the operation execution module 1113 includes:
[0279] The route determination unit 11132 is used to give human voice instructions to move to a first target location outside the navigation route, add a section from the current location of the terminal to the first target location in the navigation route, or change the navigation route to a route from the current location of the terminal to the first target location.
[0280] Alternatively, see Fig.12 , the device further comprises:
[0281] The idle section determining module 1103 is used to determine an idle section in the navigation route when the length of the navigation route is greater than the second length.
[0282] Alternatively, see Fig.12 , the device further comprises:
[0283] A congested road section determination module 1114, used to determine a congested road section in a navigation route;
[0284] The fourth playing module 1115 is used to play the non-navigation voice when the current location of the terminal is in a congested section and the length of the congested section is greater than the third length; or,
[0285] The fourth playing module 1115 is used to broadcast non-navigation voice when the current position of the terminal is in a congested section and the time required for the terminal to pass through the congested section is greater than the second time.
[0286] It should be noted that: the voice playback device provided in the above embodiment only uses the division of the above functional modules as an example when playing voice. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the voice playback device provided in the above embodiment and the voice playback method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0287] An embodiment of the present application further provides a terminal, which includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the voice playback method of the above embodiment.
[0288] Fig.13 A schematic diagram of the structure of a terminal 1300 provided by an exemplary embodiment of the present application is shown.
[0289] The terminal 1300 includes a processor 1301 and a memory 1302 .
[0290] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0291] The memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one computer program, which is used to be possessed by the processor 1301 to implement the voice playback method provided in the method embodiment of the present application.
[0292] In some embodiments, the terminal 1300 may further optionally include: a peripheral device interface 1303 and at least one peripheral device. The processor 1301, the memory 1302 and the peripheral device interface 1303 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, a signal line or a circuit board. Optionally, the peripheral device includes: at least one of a radio frequency circuit 1304, a display screen 1305, a camera assembly 1306, and an audio circuit 1307.
[0293] The peripheral device interface 1303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1301 and the memory 1302. In some embodiments, the processor 1301, the memory 1302, and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0294] The radio frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1304 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1304 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0295] The display screen 1305 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1305 is a touch display screen, the display screen 1305 also has the ability to collect touch signals on the surface or above the surface of the display screen 1305. The touch signal can be input to the processor 1301 as a control signal for processing. At this time, the display screen 1305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1305 can be one, set on the front panel of the terminal 1300; in other embodiments, the display screen 1305 can be at least two, respectively set on different surfaces of the terminal 1300 or in a folding design; in other embodiments, the display screen 1305 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 1300. Even, the display screen 1305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0296] The camera assembly 1306 is used to capture images or videos. Optionally, the camera assembly 1306 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal 1300, and the rear camera is arranged on the back of the terminal 1300. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0297] The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1301 for processing, or input them into the radio frequency circuit 1304 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1300. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1307 may also include a headphone jack.
[0298] In some embodiments, the terminal 1300 further includes one or more sensors 1309 . The one or more sensors 1309 include but are not limited to: an acceleration sensor 1310 and a gyroscope sensor 1311 .
[0299] The acceleration sensor 1310 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1300. For example, the acceleration sensor 1310 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1301 can control the display screen 1305 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1310. The acceleration sensor 1310 can also be used to collect motion data of games or users.
[0300] The gyro sensor 1311 can detect the body direction and rotation angle of the terminal 1300, and the gyro sensor 1311 can cooperate with the acceleration sensor 1310 to collect the user's 3D actions on the terminal 1300. The processor 1301 can implement the following functions based on the data collected by the gyro sensor 1311: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0301] Those skilled in the art will understand that Fig.13 The structure shown in the figure does not constitute a limitation on the terminal 1300, and the terminal 1300 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0302] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the voice playback method of the above embodiment.
[0303] The embodiment of the present application also provides a computer program product or computer program, which includes a computer program code, the computer program code is stored in a computer-readable storage medium, the processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal implements the operations performed in the voice playback method of the above embodiment. In some embodiments, the computer program involved in the embodiment of the present application can be deployed on a terminal for execution, or on multiple terminals located in one location, or on multiple terminals distributed in multiple locations and interconnected by a communication network. Multiple terminals distributed in multiple locations and interconnected by a communication network can constitute a blockchain system.
[0304] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0305] The above description is only an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A voice playing method, characterized in that: The method comprises: Acquire a navigation route, wherein the navigation route includes an idle section, wherein the idle section is a section where no navigation voice is set or a section where the set navigation voice does not meet a target condition; Acquire a plurality of non-navigation voices assigned to the navigation route and corresponding priorities; Allocate the different non-navigation voices corresponding to the highest priority to at least one of the idle sections in the navigation route, and allocate the remaining non-navigation voices to the remaining idle sections; When the current location of the terminal is in the idle section, playing the non-navigation voice; The navigation voice is a voice that instructs the terminal to move, and the non-navigation voice is a voice other than the navigation voice.
2. The method according to claim 1, characterized in that The navigation voice has a priority, and when the current position of the terminal is in the idle section, before playing the non-navigation voice, the method further includes: In a case where the priority of the navigation voice set for any section in the navigation route is not higher than the target priority, the any section is determined as the idle section in the navigation route.
3. The method according to claim 1, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the method further includes: When the navigation voice is not set for any section in the navigation route or the set navigation voice does not meet the target condition, and the length of any section is not less than the first length, the any section is determined as the idle section in the navigation route.
4. The method according to claim 1, characterized in that: In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the method further includes: When the navigation voice is not set between any sections in the navigation route or the set navigation voice does not meet the target condition, and the time required to pass through any section is not less than the first time, the any section is determined as the idle section in the navigation route.
5. The method according to claim 1, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the method further includes: Acquire voice configuration information, the voice configuration information including at least one of user identity information, feature information of the navigation route, current date information, or a type of current device, the user identity information being identity information corresponding to a user identifier of the terminal login; The non-navigation voice is generated, the content of which is related to the voice configuration information.
6. The method according to claim 1, characterized in that When the current position of the terminal is in the idle section, broadcasting the non-navigation voice includes at least one of the following: The road sections in the navigation route have corresponding levels, and when the current position of the terminal is in the idle road section and the level of the idle road section belongs to the target level, the non-navigation voice is broadcasted; When the current position of the terminal is in the idle section and the current time belongs to the target time period, broadcasting the non-navigation voice; When the starting position of the navigation route is in the first target area and the current position of the terminal is in the idle section, broadcasting the non-navigation voice; When the end position of the navigation route is in the second target area and the current position of the terminal is in the idle section, broadcasting the non-navigation voice; When the current position of the terminal is in the idle section and the number of times the terminal plays the non-navigation voice is not greater than the target number of times, the non-navigation voice is broadcast.
7. The method according to claim 1, characterized in that The navigation route includes a target section, the target section includes a second target location, and the method further includes: When the current location of the terminal is in the target section, playing the non-navigation voice with content related to the second target location; or, When the current location of the terminal is within the geographical area corresponding to the target road section, the non-navigation voice with content related to the second target location is played.
8. The method according to claim 7, characterized in that Before playing the non-navigation voice related to the second target location, the method further includes: Determine the second target location among a plurality of locations in the navigation route; A route in the navigation route that is within the geographical area to which the second target location belongs is determined as the target route section.
9. The method according to claim 1, characterized in that: The non-navigation voice that has not been played is stored in a voice list and arranged in a play order; the method further includes: In response to a request to play a first target voice, play the first target voice; In a case where the priority of the first non-navigation voice in the voice list is lower than that of the first target voice, the first non-navigation voice is deleted from the voice list.
10. The method according to claim 1, characterized in that In the case where the current position of the terminal is in the idle section, after the non-navigation voice is broadcasted, the method further includes: In response to the non-navigation voice being an interactive type of voice, a human voice is detected, and a control operation is performed based on the human voice.
11. The method according to claim 10, characterized in that The performing a control operation based on the human voice includes: In response to the human voice instruction to play the next non-navigation voice, but receiving a request to play a second target voice, after playing the second target voice, the next non-navigation voice is played.
12. The method according to claim 10, characterized in that The performing a control operation based on the human voice includes: The human voice instruction moves to a first target location outside the navigation route, adds a section from the current location of the terminal to the first target location in the navigation route, or changes the navigation route to a route from the current location to the first target location.
13. The method according to claim 1, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the method further includes: In a case where the length of the navigation route is greater than a second length, the idle section is determined in the navigation route.
14. The method according to claim 1, characterized in that The method further comprises: Determining a congested section of the navigation route; When the current location of the terminal is in the congested section and the length of the congested section is greater than a third length, broadcasting the non-navigation voice; or, When the current position of the terminal is in the congested section and the time required for the terminal to pass through the congested section is greater than a second time, the non-navigation voice is broadcast.
15. A voice playing device, characterized in that: The device comprises: A route acquisition module, used to acquire a navigation route, wherein the navigation route includes an idle section, wherein the idle section is a section where no navigation voice is set or a section where the set navigation voice does not meet the target condition; A voice acquisition module, used to acquire a plurality of non-navigation voices allocated to the navigation route and corresponding priorities; A voice distribution module, used for distributing different non-navigation voices corresponding to the highest priority to at least one idle section in the navigation route, and distributing the remaining non-navigation voices to the remaining idle sections; A first playing module, configured to play the non-navigation voice when the current position of the terminal is in the idle section; The navigation voice is a voice that instructs the terminal to move, and the non-navigation voice is a voice other than the navigation voice.
16. The device according to claim 15, characterized in that The navigation voice corresponds to a priority, and when the current position of the terminal is in the idle section, before playing the non-navigation voice, the device further includes: In a case where the priority of the navigation voice set for any section in the navigation route is not higher than the target priority, the any section is determined as the idle section in the navigation route.
17. The device according to claim 15, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the device further includes: When the navigation voice is not set for any section in the navigation route or the set navigation voice does not meet the target condition, and the length of any section is not less than the first length, the any section is determined as the idle section in the navigation route.
18. The device according to claim 15, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the device further includes: When the navigation voice is not set between any sections in the navigation route or the set navigation voice does not meet the target condition, and the time required to pass through any section is not less than the first time, the any section is determined as the idle section in the navigation route.
19. The device according to claim 15, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the device further includes: Acquire voice configuration information, the voice configuration information including at least one of user identity information, feature information of the navigation route, current date information, or a type of current device, the user identity information being identity information corresponding to a user identifier of the terminal login; The non-navigation voice is generated, the content of which is related to the voice configuration information.
20. The device according to claim 15, characterized in that When the current position of the terminal is in the idle section, broadcasting the non-navigation voice includes at least one of the following: The road sections in the navigation route have corresponding levels, and when the current position of the terminal is in the idle road section and the level of the idle road section belongs to the target level, the non-navigation voice is broadcasted; When the current position of the terminal is in the idle section and the current time belongs to the target time period, broadcasting the non-navigation voice; When the starting position of the navigation route is in the first target area and the current position of the terminal is in the idle section, broadcasting the non-navigation voice; When the end position of the navigation route is in the second target area and the current position of the terminal is in the idle section, broadcasting the non-navigation voice; When the current position of the terminal is in the idle section and the number of times the terminal plays the non-navigation voice is not greater than the target number of times, the non-navigation voice is broadcast.
21. The device according to claim 15, characterized in that The navigation route includes a target section, the target section includes a second target location, and the device further includes: When the current location of the terminal is in the target section, playing the non-navigation voice with content related to the second target location; or, When the current location of the terminal is within the geographical area corresponding to the target road section, the non-navigation voice with content related to the second target location is played.
22. The device according to claim 21, characterized in that Before playing the non-navigation voice related to the second target location, the device further includes: Determine the second target location among a plurality of locations in the navigation route; A route in the navigation route that is within the geographical area to which the second target location belongs is determined as the target route section.
23. The device according to claim 15, characterized in that The non-navigation voice that has not been played is stored in a voice list and arranged in a play order; the device further includes: In response to a request to play a first target voice, play the first target voice; In a case where the priority of the first non-navigation voice in the voice list is lower than that of the first target voice, the first non-navigation voice is deleted from the voice list.
24. The device according to claim 15, characterized in that When the current position of the terminal is in the idle section, after the non-navigation voice is broadcasted, the device further includes: In response to the non-navigation voice being an interactive type of voice, a human voice is detected, and a control operation is performed based on the human voice.
25. The device according to claim 24, characterized in that The performing a control operation based on the human voice includes: In response to the human voice instruction to play the next non-navigation voice, but receiving a request to play a second target voice, after playing the second target voice, the next non-navigation voice is played.
26. The device according to claim 24, characterized in that The performing a control operation based on the human voice includes: The human voice instruction moves to a first target location outside the navigation route, adds a section from the current location of the terminal to the first target location in the navigation route, or changes the navigation route to a route from the current location to the first target location.
27. The device according to claim 15, characterized in that In the case where the current position of the terminal is in the idle section, before playing the non-navigation voice, the device further includes: In a case where the length of the navigation route is greater than a second length, the idle section is determined in the navigation route.
28. The device according to claim 15, characterized in that The device also includes: Determining a congested section of the navigation route; When the current location of the terminal is in the congested section and the length of the congested section is greater than a third length, broadcasting the non-navigation voice; or, When the current position of the terminal is in the congested section and the time required for the terminal to pass through the congested section is greater than a second time, the non-navigation voice is broadcast.
29. A terminal, characterized in that: The terminal includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the voice playback method according to any one of claims 1 to 14.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the voice playback method according to any one of claims 1 to 14.
31. A computer program product, characterized in that The computer program product includes a computer program code, which is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal implements the operations performed in the voice playback method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Vehicle-mounted audio data playing method and equipment
CN107170472A
Navigation broadcast information processing method and device, electronic equipment and storage medium
CN111578965A
Navigation audio playing method, device and equipment and computer storage medium
CN111735472A
Navigation voice broadcasting method and device, equipment and storage medium
CN112857392A