CN113514075A - Voice playing method, device, terminal and storage medium - Google Patents
Voice playing method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN113514075A CN113514075A CN202110785699.7A CN202110785699A CN113514075A CN 113514075 A CN113514075 A CN 113514075A CN 202110785699 A CN202110785699 A CN 202110785699A CN 113514075 A CN113514075 A CN 113514075A
- Authority
- CN
- China
- Prior art keywords
- voice
- navigation
- terminal
- target
- road section
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 115
- 238000004590 computer program Methods 0.000 claims description 30
- 230000002452 interceptive effect Effects 0.000 claims description 14
- 238000012544 monitoring process Methods 0.000 claims description 8
- 230000001755 vocal effect Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 44
- 230000006870 function Effects 0.000 description 27
- 238000010586 diagram Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 230000003993 interaction Effects 0.000 description 11
- 230000002093 peripheral effect Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 230000001133 acceleration Effects 0.000 description 9
- 235000007317 Avena nuda Nutrition 0.000 description 4
- 240000007054 Avena nuda Species 0.000 description 4
- 235000013312 flour Nutrition 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 239000000446 fuel Substances 0.000 description 3
- 239000000919 ceramic Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
- G01C21/3626—Details of the output of route guidance instructions
- G01C21/3629—Guidance using speech or audio output, e.g. text-to-speech
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
- G01C21/3679—Retrieval, searching and output of POI information, e.g. hotels, restaurants, shops, filling stations, parking facilities
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Navigation (AREA)
Abstract
The embodiment of the application discloses a voice playing method, a voice playing device, a terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring a navigation route, wherein the navigation route comprises an idle road section, and the idle road section is a road section without navigation voice or a road section with the navigation voice not meeting the target condition; playing non-navigation voice under the condition that the current position of the terminal is in an idle road section; the navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice. The embodiment of the application can be applied to the field of the Internet of vehicles, the condition that the road section without the navigation voice or the road section with the navigation voice which is not set to meet the target condition is idle is considered, the non-navigation voice which does not need to indicate the terminal to move is played under the condition that the current position of the terminal is in the idle road section, the voice playing mode in the navigation process is enriched under the condition that the navigation is not influenced, and the information content of the voice playing and the flexibility of the voice playing are improved.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a voice playing method, a voice playing device, a terminal and a storage medium.
Background
With the rapid development of internet technology and the increasingly complex traffic conditions in daily life, the navigation function is more and more widely applied in daily trips of people. In order to facilitate the user to go out, a voice playing service can be provided for the user in the navigation process.
In the related art, a navigation route is planned for a user based on a start position and an end position, and voice playing is performed on the user according to the navigation route and the current position of the user to guide the user to move according to the navigation route. However, the voice playing mode is single and not flexible enough.
Disclosure of Invention
The embodiment of the application provides a voice playing method, a voice playing device, a terminal and a storage medium, which can improve the flexibility of voice playing. The technical scheme is as follows:
in one aspect, a method for playing voice is provided, where the method includes:
acquiring a navigation route, wherein the navigation route comprises an idle road section, and the idle road section is a road section without navigation voice or a road section with the navigation voice not meeting target conditions;
under the condition that the current position of the terminal is in the idle road section, playing non-navigation voice;
the navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice.
In another aspect, a voice playback apparatus is provided, the apparatus including:
the route acquisition module is used for acquiring a navigation route, wherein the navigation route comprises an idle road section, and the idle road section is a road section without navigation voice or a road section with the navigation voice not meeting the target condition;
the first playing module is used for playing non-navigation voice under the condition that the current position of the terminal is in the idle road section;
the navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice.
Optionally, the apparatus further comprises:
and the idle road section determining module is used for determining any road section as the idle road section in the navigation route under the condition that the priority of the navigation voice set by any road section in the navigation route is not higher than the target priority.
Optionally, the apparatus further comprises:
and the idle road section determining module is used for determining any road section as the idle road section in the navigation route under the condition that the navigation voice is not set in any road section in the navigation route or the set navigation voice does not meet the target condition and the length of the any road section is not less than a first length.
Optionally, the apparatus further comprises:
and the idle road section determining module is used for determining any road section as the idle road section in the navigation route under the condition that the navigation voice is not set between any road sections in the navigation route or the set navigation voice does not meet the target condition and the time required for passing through the any road section is not less than first time.
Optionally, the apparatus further comprises:
the terminal comprises a configuration information acquisition module, a voice configuration information acquisition module and a voice configuration information processing module, wherein the configuration information acquisition module is used for acquiring voice configuration information, the voice configuration information comprises at least one item of user identity information, feature information of the navigation route, current date information or the type of current equipment, and the user identity information is identity information corresponding to a user identifier of the terminal login;
and the non-navigation voice generation module is used for generating the non-navigation voice with the content related to the voice configuration information.
Optionally, the apparatus further comprises:
the voice acquisition module is used for acquiring a plurality of non-navigation voices distributed for the navigation route and corresponding priorities;
the voice distribution module is used for distributing different non-navigation voices corresponding to the highest priority to at least one idle road section in the navigation route;
the voice distribution module is further configured to distribute the rest of the non-navigation voices to the rest of the idle road segments.
Optionally, the first playing module is configured to perform at least one of the following:
the road sections in the navigation route have corresponding levels, and the non-navigation voice is broadcasted under the condition that 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;
broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the current time belongs to a target time period;
broadcasting the non-navigation voice under the condition that the initial position of the navigation route is in a first target area and the current position of the terminal is in the idle road section;
broadcasting the non-navigation voice under the condition that the ending position of the navigation route is in a second target area and the current position of the terminal is in the idle road section;
and broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the number of times of playing the non-navigation voice by the terminal is not more than the target number of times.
Optionally, the navigation route includes a target road segment, the target road segment includes a second target location, the apparatus further includes:
the third playing module is used for playing the non-navigation voice of which the content is related to the second target position under the condition that the current position of the terminal is in the target road section; or,
the third playing module is further configured to play the non-navigation voice with content related to the second target position when the current position of the terminal is in the geographic area corresponding to the target road segment.
Optionally, the apparatus further comprises:
a location determination module to determine the second target location among a plurality of locations in the navigation route;
and the target road section determining module is used for determining a route in the geographic area to which the second target position belongs in the navigation route as the target road section.
Optionally, the non-navigation voices not played yet are stored in a voice list and arranged according to a playing sequence; the device further comprises:
the second playing module is used for responding to a playing request of a first target voice and playing the first target voice;
and the voice deleting module is used for deleting the first non-navigation voice from the voice list under the condition that the priority of the first non-navigation voice in the voice list is lower than the first target voice.
Optionally, the apparatus further comprises:
and the operation execution module is used for responding to the non-navigation voice as the interactive voice, monitoring the voice of the human voice and executing control operation based on the voice of the human voice.
Optionally, the operation executing module includes:
and the voice playing unit is used for responding to the voice instruction of the human voice to play the next non-navigation voice, receiving a playing request of a second target voice, and playing the next non-navigation voice after the second target voice is played.
Optionally, the operation executing module includes:
a route determining unit, configured to instruct, by the human voice, to move to a first target location outside the navigation route, add a segment moving from the current location of the terminal to the first target location in the navigation route, or change the navigation route to a route moving from the current location of the terminal to the first target location.
Optionally, the apparatus further comprises:
and the idle road section determining module is used for determining the idle road section in the navigation route under the condition that the length of the navigation route is greater than a second length.
Optionally, the apparatus further comprises:
the congestion road section determining module is used for determining a congestion road section in the navigation route;
the fourth playing module is used for broadcasting the non-navigation voice under the condition that the current position of the terminal is in the congested road section and the length of the congested road section is greater than the third length; or,
the fourth playing module is used for broadcasting the non-navigation voice under the condition that the current position of the terminal is in the congested road section and the time length required for the terminal to pass through the congested road section is longer than a second time length.
In another aspect, a terminal is provided, which includes a processor and a memory, where at least one computer program is stored in the memory, and the at least one computer program is loaded by the processor and executed to implement the operations performed in the voice playing method according to the above aspect.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, the at least one computer program being loaded and executed by a processor to implement the operations performed in the voice playing method according to the above aspect.
In another aspect, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer program code, the computer program code being stored in a computer-readable storage medium, the computer program code being read by a processor of a terminal from the computer-readable storage medium, the computer program code being executed by the processor, so that the terminal implements the operations performed in the voice playing method as described in the above aspect.
The method, the device, the terminal and the storage medium provided by the embodiment of the application consider that the road sections without the navigation voice or the road sections with the navigation voice not meeting the target condition are idle, so that the non-navigation voice which does not need to indicate the terminal to move is played under the condition that the current position of the terminal is in the idle road sections, the voice playing form in the navigation process is enriched under the condition that the navigation is not influenced, and the information content of the voice playing and the flexibility of the voice playing are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
Fig. 2 is a flowchart of a voice playing method according to an embodiment of the present application.
Fig. 3 is a flowchart of a voice playing method according to an embodiment of the present application.
Fig. 4 is a schematic diagram of an interactive window provided in an embodiment of the present application.
Fig. 5 is a flowchart of a voice playing method according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a playing interval according to an embodiment of the present application.
Fig. 7 is a schematic diagram of another interactive window provided in the embodiment of the present application.
Fig. 8 is a schematic diagram of another interactive window provided in the embodiment of the present application.
Fig. 9 is a flowchart of a voice playing method according to an embodiment of the present application.
Fig. 10 is a system architecture diagram of a voice playing method according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a voice playing apparatus according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of another speech playing apparatus according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first target voice may be referred to as a second target voice, and similarly, a second target voice may be referred to as a first target voice, without departing from the scope of the present application.
For example, the at least one free road section may be any integer number of free road sections greater than or equal to one, such as one free road section, two free road sections, three free road sections, and the like. The plurality means two or more, and the plurality of positions may be, for example, two positions, three positions, or any integer number of positions equal to or larger than two. Each refers to each of at least one, for example, each position refers to each of a plurality of positions, and if the plurality of positions is 3 positions, each position refers to each of 3 positions.
Fig. 1 is a schematic diagram of an implementation environment provided in an embodiment of the present application, and referring to fig. 1, the implementation environment includes: a terminal 101 and a server 102. Wherein, the terminal 101 may be a mobile phone, a vehicle-mounted terminal, an intelligent voice interaction device, an intelligent household appliance, a tablet computer, a notebook computer, a desktop computer, an intelligent sound box, an intelligent watch, an MP3(Moving Picture experts Group Audio Layer III, mpeg Audio Layer 3) player, an MP4(Moving Picture experts Group Audio Layer IV, mpeg Audio Layer 4) player, and other various devices, the server 102 may be an independent physical server, or a server cluster or a distributed system composed of a plurality of physical servers, the cloud server can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, Network services, cloud communication, middleware services, domain name services, security services, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The terminal 101 and the server 102 are directly or indirectly connected through wired or wireless communication, and various functions such as real-time positioning, position query, route matching, route navigation, voice navigation and the like can be realized through interaction between the terminal 101 and the server 102.
In one possible implementation, the terminal 101 has installed thereon a target client served by the server 102, by which the terminal 101 can implement functions such as route navigation and voice navigation. Optionally, the target client is a target client in the operating system of the terminal 101, or a target client provided by a third party. For example, the target client is an electronic map client, which has a navigation function, but of course, the navigation client can also have other functions, such as a data recommendation function, a comment function, a voice playing function, a voice interaction function, or a game function. Optionally, the server 102 is a background server of the target client or a cloud server providing services such as cloud computing and cloud storage.
The terminal 101 is configured to log in a target client based on a user identifier, report Point of Information (POI) Information to the server 102 through the target client, and the server 102 is configured to receive the POI Information reported by the terminal 101 and provide a location service for the terminal 101 according to the POI Information reported by the terminal 101. The server 102 is further configured to identify the POI information reported by the terminal 101, and identify abnormal POI information therein.
The voice playing method provided by the embodiment of the application can be applied to any navigation scene.
For example, a user uses a vehicle-mounted terminal to navigate during driving, and the vehicle-mounted terminal is internally provided with an electronic map client. When a user wants to go out, the vehicle-mounted terminal plans a navigation route for the user, and plays navigation voice and non-navigation voice in the navigation process, wherein the navigation voice can indicate the user to move, such as indicating left turn or deceleration, and the like, and the non-navigation voice is voice other than the navigation voice, such as recommending data for the user or introducing passing points for the user. The vehicle-mounted terminal plays the non-navigation voice in the idle road section where the user does not set the navigation voice or the set navigation voice does not meet the target condition, so that the voice playing form in the navigation process is enriched and the voice playing information content is improved under the condition that the navigation function is not influenced.
Fig. 2 is a flowchart of a voice playing method according to an embodiment of the present application. The method of the embodiment of the present application is executed by the terminal in the embodiment of fig. 1, and referring to fig. 1, the method includes:
201. the terminal acquires a navigation route.
When a user needs to go out, the terminal plans a navigation route for the user according to the starting position and the ending position set by the user, wherein the navigation route is a route from the starting position to the ending position. The navigation route comprises a plurality of road sections, and the plurality of road sections have a sequence so as to represent the direction of the route. For example, the end point of the previous link is the start point of the next link, so that the links are connected to form a route.
In the navigation process, the terminal also provides voice playing service for the user, for example, navigation voice is played in the navigation process, the navigation voice is voice for indicating the terminal to move, and the user carrying the terminal moves along the navigation route under the indication of the navigation voice. Wherein, different navigation voices are respectively arranged in different road sections of the navigation route. For example, the navigation voice indicates a moving direction of the terminal, or indicates a moving speed of the terminal, or the like.
The navigation route includes an idle road segment, which is a road segment without navigation voice, that is, in the idle road segment, the navigation voice does not need to be played. Or the idle road section is a road section of which the set navigation voice does not meet the target condition. That is, in the idle section, the navigation voice satisfying the target condition does not need to be played.
202. And under the condition that the current position of the terminal is in the idle road section, the terminal plays the non-navigation voice.
In the embodiment of the application, in addition to the navigation voice, a non-navigation voice can be played in the navigation process, wherein the navigation voice is a voice for indicating the terminal to move, and the non-navigation voice is a voice other than the navigation voice. The function of indicating the terminal to move is a navigation function, the navigation voice is voice with the navigation function, and the non-navigation voice is voice without the navigation function, for example, the non-navigation voice is news or weather forecast recommended to the user.
The user carries the terminal to move according to the navigation route, and the current position of the terminal can be changed continuously in the moving process. And the terminal determines the current position through positioning, and plays the non-navigation voice distributed for the idle road section under the condition that the current position is in the idle road section.
The method provided by the embodiment of the application considers that the road sections without the navigation voice or the road sections with the navigation voice not meeting the target condition are idle, so that the non-navigation voice which does not need to indicate the terminal to move is played under the condition that the current position of the terminal is in the idle road sections, the voice playing form in the navigation process is enriched under the condition that the navigation is not influenced, and the information content of the voice playing and the flexibility of the voice playing are improved.
Fig. 3 is a flowchart of a voice playing method provided in an embodiment of the present application, illustrating a process of playing a non-navigation voice in a free section of a navigation route, where the method in the embodiment of the present application is executed by the terminal in the embodiment of fig. 1, and referring to fig. 3, the method includes:
301. the terminal acquires a navigation route.
The terminal stores an electronic map, and the electronic map is a map stored in a digital mode by using a computer technology. The electronic map includes location information of each location Point in any one or more geographic areas, for example, each location Point is a Point of Interest (POI), and the location information of the location Point includes longitude and latitude coordinates of the location Point, address information of the location Point, or a name of the location Point. For example, the location information of a certain museum includes the longitude and latitude coordinates of the museum, the address information "XX street XX number XX of XX city", and the name "museum of astronomy" of the museum.
The terminal plans a navigation route for the user according to the starting position and the ending position set by the user, wherein the navigation route is a route from the starting position to the ending position. Wherein the navigation route comprises a plurality of road segments.
In one possible implementation manner, the terminal displays an application interface of the electronic map, and the application interface comprises an input box of a starting position, an input box of an ending position and a navigation option. And the user inputs the starting position in the input box of the starting position, or defaults the starting position to be the current position of the terminal in the input box of the starting position, inputs the ending position in the input box of the ending position, and then triggers the navigation option. When the terminal detects the triggering operation of the navigation option, the input starting position and the input ending position are obtained, and the terminal sends the navigation request carrying the starting position and the ending position to the server.
The server receives the navigation request, plans a navigation route according to the initial position, the end position and the position point in the electronic map, sends the navigation route to the terminal, and the terminal displays the navigation route on the application interface.
Or the terminal downloads the electronic map from the server, when the terminal acquires the input initial position and the input end position, the navigation route is planned according to the initial position, the end position and the position point in the electronic map, and the navigation route is displayed on the application interface.
In one possible implementation, the electronic map is an electronic map carried by the terminal itself, or the electronic map is a third-party electronic map installed by the terminal.
302. The terminal acquires the navigation voice and the non-navigation voice.
In the navigation process, the terminal can also provide voice playing service for the user, so the terminal also obtains the navigation voice and the non-navigation voice corresponding to the navigation route. The navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice. The navigation voice and the non-navigation voice corresponding to the navigation route refer to the navigation voice and the non-navigation voice which need to be played in the navigation route.
The function of indicating the terminal to move is a navigation function, the navigation voice is voice with the navigation function, and the non-navigation voice is voice without the navigation function. For example, the navigation voice is a voice indicating a moving direction of the terminal, such as "turn left ten meters ahead" or "turn right twenty meters ahead left", and the like. For example, the navigation voice is a voice indicating the moving speed of the terminal, such as "speed limit 40km/h (kilometer/hour) ahead" or "go ahead 500 m with a camera shooting an intersection, please slow down. Besides, the navigation voice also comprises voice related to navigation, such as internal road prompt, service area prompt, warning board prompt or road condition prompt and the like. For example, the non-navigation voice is a news broadcast, a weather forecast, a world broadcast, a story broadcast, or a music broadcast, which is recommended to the user, and the non-navigation voice may also be voice, which is recommended to the user, about a position in the navigation route.
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 information such as road conditions of road sections in the navigation route, road driving rules and the like. For example, a navigation voice of "pedestrian crossing ahead, please slow down" is set in a road section with pedestrian crossing, and a navigation voice of "speed limit ahead 40 km/h" is set in a road section with speed limit, and the like.
In a possible implementation manner, the server stores navigation voice and non-navigation voice, and after the server plans the navigation route, the server acquires the navigation voice and the non-navigation voice corresponding to the navigation route, and issues the navigation route, the navigation voice and the non-navigation voice to the terminal. In another possible implementation manner, the terminal stores the navigation voice and the non-navigation voice, and after the terminal acquires the navigation route, the navigation voice and the non-navigation voice corresponding to the navigation route are determined in the stored navigation voice and the non-navigation voice.
In one possible implementation manner, the terminal acquires the voice configuration information and generates non-navigation voice with the content related to the voice configuration information. The voice configuration information is used for configuring non-navigation voice, the voice configuration information comprises at least one item of user identity information, feature information of a navigation route, current date information or the type of current equipment, and the user identity information is identity information corresponding to a user identifier of terminal login. That is, according to the voice configuration information, the terminal generates a non-navigation voice whose contents are related to at least one of user identity information, feature information of a navigation route, current date information, or a type of a current device.
For example, if the birthday of the user is determined to be 6 months and 22 days according to the user identity information, and today is determined to be 6 months and 22 days according to the current date information, the content of the generated non-navigation voice may be "today is your birthday, and you are happy to birthday". For example, if it is determined that the current navigation route includes a mountain road according to the feature information of the navigation route, the content of the generated non-navigation voice may be "please check the vehicle condition after passing through a mountain road of 1.8 km".
303. The terminal determines a free road segment in the navigation route.
The navigation route comprises an idle road section, wherein the idle road section is a road section without navigation voice or a road section with the navigation voice not meeting the target condition. Navigation voice is not set in a certain road section, namely the navigation voice does not need to be played in the road section. The navigation voice set by a certain road section does not meet the target condition, namely the navigation voice meeting the target condition does not need to be played in the road section. The number of idle road sections in the navigation route is 1 or more, and under the condition that the navigation route comprises a plurality of idle road sections, no intersection exists among the idle road sections.
In the embodiment of the application, the terminal determines the idle road section in two ways, the first way is to determine the road section without the navigation voice as the idle road section, and the second way is to determine the road section without the set navigation voice meeting the target condition as the idle road section. Wherein the terminal determines the idle road section in the navigation route according to at least one of the two ways. For example, the terminal only selects the first mode to determine the idle road segment, and then the terminal only determines the road segment without the navigation voice as the idle road segment. For example, the terminal only selects the second mode to determine the idle road segment, and then the terminal only determines the road segment of which the set navigation voice does not meet the target condition as the idle road segment. For example, if the terminal determines an idle road segment by selecting a combination of the first manner and the second manner, the terminal may determine a road segment without the navigation voice as an idle road segment, and may also determine a road segment without the navigation voice meeting the target condition as an idle road segment.
In one possible implementation manner, the terminal determines any road segment in the navigation route as a free road segment in the navigation route under the condition that the navigation voice is not set for the any road segment in the navigation route or the set navigation voice does not meet the target condition and the length of the any road segment is not less than the first length.
The terminal determines a section without navigation voice in a plurality of sections of the navigation route, determines the length of the section, and determines the section as a free section in the navigation route under the condition that the length of the section is not less than the first length. Or, the terminal determines a section of which the set navigation voice does not meet the target condition among a plurality of sections of the navigation route, determines the length of the section, and determines the section as a free section in the navigation route when the length of the section is not less than the first length.
In the embodiment of the application, the non-navigation voice is played in the determined idle road section in the subsequent process, and in order to ensure that the non-navigation voice can be successfully played in the idle road section, the length of the idle road section is required to be long enough to avoid the situation that the non-navigation voice is not played completely when the terminal moves out of the idle road section. Therefore, the terminal selects a section having a length greater than the first length as an idle section among sections in which the navigation voice is not set or the set navigation voice does not satisfy the target condition. Optionally, the first length is configured by the terminal, or configured by the server and then sent to the terminal, for example, the first length is 300 meters.
In another possible implementation manner, when the terminal does not set the navigation voice between any road segments in the navigation route or the set navigation voice does not meet the target condition and the time required for passing through any road segment is not less than the first time, determining any road segment as a free road segment in the navigation route.
The terminal determines a road section without navigation voice in a plurality of road sections of a navigation route, determines the time required for passing the road section, and determines the road section as an idle road section in the navigation route under the condition that the time is not less than the first time. Or the terminal determines the road section of which the set navigation voice does not meet the target condition in the plurality of road sections of the navigation route, determines the time length required for passing through the road section, and determines the road section as an idle road section in the navigation route under the condition that the time length is not less than the first time length.
For example, the terminal determines a time period required for the terminal to pass through the section according to the current moving speed and the length of the section. Or the terminal requests the server for the time required for passing the road section, the server inquires the average time required for other terminals to pass the road section according to the history record, and the average time is returned to the terminal.
In the embodiment of the application, the non-navigation voice is played in the determined idle road section in the subsequent process, and in order to ensure that the non-navigation voice can be successfully played in the idle road section, the time required for passing through the idle road section is required to be long enough so as to avoid the situation that the non-navigation voice is not played completely when the terminal moves out of the idle road section. Therefore, the terminal selects the road section with the corresponding time length longer than the first time length as the idle road section in the road sections without the navigation voice or without the navigation voice meeting the target condition. Optionally, the first length is configured by the terminal, or 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 a duration required for playing the non-navigation voice, for example, if the shortest duration required for playing a non-navigation voice is 9 seconds, the first duration is set to 9 seconds.
In another possible implementation manner, the navigation route is formed by connecting a plurality of position points arranged in sequence in series, and the navigation voice is arranged at the position points in the navigation route. And the terminal determines a position point without the navigation voice in the navigation route and determines the position point as a first position point. The terminal determines a first position point which is behind the first position point and is provided with navigation voice, determines the position point as a second position point, and determines a road section between the first position point and the second position point as an idle road section. Or, the terminal determines a position point of which the set navigation voice does not meet the target condition in the navigation route, and determines the position point as a first position point. The terminal determines a first position point which is behind the first position point and meets the target condition by the set navigation voice, determines the position point as a second position point, and determines a road section between the first position point and the second position point as an idle road section.
For example, in a case where the length of a link between the first position point and the second position is not less than the first length, the terminal determines the link as a free link in the navigation route. Or, the terminal determines the road section between the first position point and the second position as the idle road section in the navigation route under the condition that the time length required for passing the road section is not less than the first time length.
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. And under the condition that the priority of the navigation voice set by any road section in the navigation route is not higher than the target priority, the terminal determines the any road section as a free road section in the navigation route. That is, the idle road section determined by the terminal is only provided with the navigation voice with the priority not higher than the target priority, and is the navigation voice with the priority higher than the target priority.
The priority of the navigation voice can represent the importance degree of the navigation voice, and the higher the priority of the navigation voice is, the more important the navigation voice is. Considering that the navigation voice with the priority higher than the target priority is relatively important, and the navigation voice with the priority not higher than the target priority is relatively unimportant, the terminal determines the road section with the priority not higher than the target priority in the navigation route, determines the road section as an idle road section, so as to play the non-navigation voice in the idle road section subsequently, thereby improving the selection space of the idle road section, increasing the frequency of playing the non-navigation voice and further improving the information quantity of voice playing in the navigation process under the condition of ensuring that the playing of the important navigation voice is not influenced.
For example, the navigation voice score includes a high-priority voice and a medium-priority voice, and the terminal determines any link in the navigation route as a free link in the navigation route if the priority of the navigation voice set by the link is not higher than the high priority.
It should be noted that, in the embodiment of the present application, only the determination of the free road segment in the navigation route is taken as an example for the purpose of acquiring the navigation route. In another embodiment, the terminal determines a free segment in the navigation route if the length of the navigation route is greater than the second length.
After the terminal acquires the navigation route, the length of the navigation route is determined, and in order to avoid the situation that the navigation voice or the non-navigation voice is not played when the terminal reaches the termination position due to the fact that the navigation route is too short, the navigation route needs to be ensured to be long enough. Therefore, the terminal determines the idle road section in the navigation route under the condition that the length of the navigation route is not less than the second length. Optionally, the second length is configured by the terminal, or configured by the server and then sent to the terminal, for example, the second length is 1 km.
Accordingly, in another embodiment, in the case that the length of the navigation route is not greater than the second length, the terminal does not need to determine the free segment, and therefore does not need to perform the following step 304 and step 305.
304. And playing the non-navigation voice under the condition that the current position of the terminal is in the idle road section.
The user carries the terminal to move according to the navigation route, and the current position of the terminal can be changed continuously in the moving process. And the terminal determines the current position through positioning, and plays the non-navigation voice distributed for the idle road section under the condition that the current position is in the idle road section.
In one possible implementation manner, in the case that the current position of the terminal is in the idle road section, the non-navigation voice is broadcasted, and the non-navigation voice includes at least one of the following items:
(1) and the road sections in the navigation route have corresponding levels, and the non-navigation voice is broadcasted under the condition that 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 navigation route comprises a plurality of road sections, each road section corresponds to a respective grade, and the grades corresponding to different road sections can be the same or different. Optionally, each road in the electronic map is assigned with a respective grade, and the terminal determines the grade corresponding to the road where the road segment in the navigation route is located as the grade of the road segment. For example, roads in an electronic map are divided according to administrative areas or traffic tasks. For example, the roads in the electronic map may be divided into 9 levels, and the target level may be set to 5 levels thereof.
And the terminal judges whether the grade of the idle road section is a target grade, and plays the non-navigation voice if the grade of the idle road section is the target grade and the current position of the terminal is in the idle road section. And under the condition that the grade of the idle road section is not the target grade, the terminal does not play non-navigation voice even if the current position of the terminal is in the idle road section. That is, the level of the idle road section is the target level, which is a precondition for playing the non-navigation voice on the idle road section. By setting the target level, the terminal can control which road sections can play the non-navigation voice and which road sections cannot play the non-navigation voice, so that the flexibility of places where the non-navigation voice is played is improved.
(2) And broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the current time belongs to the target time period.
And the terminal judges whether the current time belongs to the target time period, and plays the non-navigation voice if the current time belongs to the target time period and the current position of the terminal is in the idle road section. And under the condition that the current time does not belong to the target time period, the terminal does not play non-navigation voice even if the current position of the terminal is in an idle road section. That is, the current time belongs to the target time period, which is a precondition for playing the non-navigation voice on the idle road section. For example, the target time period is 14:00-18:00, and if the current time is 15:00 and the current time belongs to the target time period, the non-navigation voice is played under the condition that the current position of the terminal is in an idle road section. If the current time is 9:00, the current time does not belong to the target time segment, and the terminal does not play non-navigation voice even if the current position of the terminal is in an idle road segment.
By setting the target time periods, the terminal can control which time periods can play the non-navigation voice and which time periods cannot play the non-navigation voice, so that the flexibility of the time periods for playing the non-navigation voice is improved.
(3) And broadcasting the non-navigation voice under the condition that the initial position of the navigation route is in the first target area and the current position of the terminal is in the idle road section.
The terminal judges whether the initial position of the navigation route is in the first target area, and under the condition that the initial position of the navigation route is in the first target area and the current position of the terminal is in an idle road section, non-navigation voice is played. And under the condition that the initial position of the navigation route is not in the first target area, the terminal does not play non-navigation voice even if the current position of the terminal is in an idle road section. That is, the starting position of the navigation route is in the first target area, which is a precondition for playing the non-navigation voice on the idle road section.
Optionally, the first target area is configured by the terminal, or configured by the server and then delivered to the terminal. Optionally, the first target area is configured according to an administrative area, for example, the first target area is a first target city or a first target province, and the like.
By setting the first target area, the terminal can control the initial position to be in which area navigation route can play non-navigation voice, and the initial position to be in which area navigation route can not play non-navigation voice, thereby improving the flexibility of playing non-navigation voice navigation route.
(4) And broadcasting the non-navigation voice under the condition that the ending position of the navigation route is in the second target area and the current position of the terminal is in the idle road section.
And the terminal judges whether the end position of the navigation route is in the second target area, and plays the non-navigation voice under the condition that the end position of the navigation route is in the second target area and the current position of the terminal is in the idle road section. And under the condition that the end position of the navigation route is not in the second target area, the terminal does not play non-navigation voice even if the current position of the terminal is in an idle road section. That is, the ending position of the navigation route is in the second target area, which is a precondition for playing the non-navigation voice on the idle road section.
Optionally, the second target area is configured by the terminal, or configured by the server and then delivered 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, and the like.
By setting the second target area, the terminal can control the navigation route of which area the termination position is in to play the non-navigation voice, and the navigation route of which area the termination position is in to not play the non-navigation voice, so that the flexibility of playing the navigation route of the non-navigation voice is improved.
(5) And broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the frequency of the terminal playing the non-navigation voice is not more than the target frequency.
And the terminal judges whether the frequency of playing the non-navigation voice is greater than the target frequency, and plays the non-navigation voice if the frequency of playing the non-navigation voice is not greater than the target frequency and the current position of the terminal is in an idle road section. And under the condition that the playing times of the non-navigation voice are greater than the target times, the terminal does not play the non-navigation voice even if the current position of the terminal is in the idle road section. That is, the total number of times of playing the non-navigation voice by the terminal is not more than the target number of times.
Optionally, the number of times that the terminal plays the non-navigation voice is the number of times that a certain non-navigation voice is played, for example, the number of times that a certain non-navigation voice is played is not greater than 1, and then the terminal does not play the non-navigation voice any more after playing the non-navigation voice for 1 time. Optionally, the number of times that the terminal plays the non-navigation voice is the total number of times that the terminal plays the non-navigation voice historically, the total number of times that the terminal plays the non-navigation voice historically per day historically, or the total number of times that the terminal plays the non-navigation voice historically on the navigation route.
By setting the target times, the terminal can control the times of playing the non-navigation voice, so that the flexibility of controlling the times of playing the non-navigation voice is improved, and the condition that the navigation effect is influenced due to too many times of playing the non-navigation voice in the same navigation process is favorably avoided.
In another possible implementation, non-navigation voices that have not been played are stored in a voice list and arranged in the playing order. The terminal responds to a playing request of the first target voice, plays the first target voice, and deletes the first non-navigation voice from the voice list under the condition that the priority of the first non-navigation voice in the voice list is lower than that of the first target voice.
The navigation voice and the non-navigation voice played in the navigation process correspond to priorities, and after the navigation route is determined, the acquired navigation voice and the non-navigation voice can be respectively arranged on different road sections in the navigation route. In the navigation process, a play request for a first target voice can be newly inserted, the first target voice can be any voice, and the first target voice also has priority correspondingly. The terminal responds to a playing request of a first target voice, plays the first target voice, compares the priority of the first target voice with the priority of a first non-navigation voice in a voice list, and discards the first non-navigation voice under the condition that the priority of the first non-navigation voice is lower than that of the first target voice, namely replaces the first non-navigation voice with a newly inserted first target voice, thereby controlling the number of voices played in the navigation process.
Optionally, the terminal generates a play request for the first target voice according to the current moving condition, the road condition of the current position, and the like. For example, when the current position of the terminal is in a road section with the speed limit of 40km/h and the terminal detects that the current moving speed is more than 40km/h, a playing request for a first target voice is generated, wherein the first target voice is a voice for indicating the terminal to reduce the moving speed.
In another possible implementation manner, before the step 304, the terminal obtains a plurality of non-navigation voices allocated to the navigation route and corresponding priorities, allocates different non-navigation voices corresponding to the highest priorities to at least one idle road segment in the navigation route, and allocates the rest non-navigation voices to the rest idle road segments. That is, only the non-navigation voice corresponding to the highest priority or only the non-navigation voices corresponding to the other priorities except for the highest priority are set in one free road section. For the idle road section only provided with the non-navigation voice corresponding to the highest priority, in the case that the current position of the terminal is in the idle road section, no matter the playing request of the voice with any priority is detected, the non-navigation voice in the voice list of the idle road section is not deleted, that is, the non-navigation voice set in the idle road section is not replaced by any newly inserted voice.
For example, the terminal selects some idle road segments from a plurality of idle road segments in the navigation route to be configured as high-level idle road segments, and configures the rest idle road segments as low-level idle road segments. The terminal sets only the non-navigation voice corresponding to the highest priority in the high-level idle road section, and sets only the non-navigation voices corresponding to the rest priorities except the highest priority in the low-level idle road section.
305. And the terminal responds to the voice with the non-navigation voice as the interactive voice, monitors the voice of the person and executes control operation based on the voice of the person.
Under the condition that the non-navigation voice is the interactive voice, after the terminal plays the non-navigation voice, responding to the monitored voice of the person, executing control operation based on the voice of the person, and indicating the terminal to execute the control operation by the voice of the person. Optionally, after the terminal plays the non-navigation voice, the voice monitoring is started, and after the voice of the person is monitored, the voice monitoring is closed. Or after the terminal plays the non-navigation voice, starting voice monitoring, and in response to the time length for starting the voice monitoring reaching the third time length and no voice monitoring, closing the voice monitoring.
In one possible implementation manner, the terminal responds to the voice indication of the human voice to play the next non-navigation voice, but receives a playing request of the second target voice, and after the second target voice is played, the next non-navigation voice is played.
Since the next non-navigation voice is the non-navigation voice played by the voice indication, that is, the non-navigation voice is the non-navigation voice that the user desires to play, in this case, if a newly inserted play request for the second target voice is received, the terminal plays the second target voice, and then plays the next non-navigation voice, without considering the priority of the second target voice and the priority of the next non-navigation voice, and the terminal cannot delete the next non-navigation voice no matter who the priority of the second target voice and the priority of the next non-navigation voice is higher or lower. That is, the non-navigation voice which is actively selected and played by the user cannot be replaced by the newly inserted voice, so that the effect of human-computer interaction influenced by the newly inserted voice is avoided.
For example, the vocal speech indicates that the non-navigation speech played is the music, and after the terminal detects the vocal speech and before the terminal has no time to play the speech, the terminal detects a play request for the second target speech "speeding, please slow down," and then the terminal plays the second target speech "speeding, please slow down," and then plays the music.
In another possible implementation, the human voice indicates to move to a first target location outside the navigation route, and the terminal adds a section of the navigation route that moves from the current location of the terminal to the first target location, or changes the navigation route to a route that moves from the current location of the terminal to the first target location.
If the voice indication of the person moves to the first target position and the first target position is located outside the navigation route, the fact that the road section moving to the first target position is not located in the navigation route is indicated, the terminal determines the road section of which the current position moves to the first target position, and then the road section is added to the navigation route to guide the user to move to the first target position.
For example, if the terminal detects that the first target position 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 may play a non-navigation voice "whether to add oil along the road", and if it is monitored that the voice of the person is "yes" or "add oil along the road" or the like indicates to move to the gas station, the terminal adds a road segment moving from the current position to the gas station in the navigation route to guide the user to move to the gas station.
For example, the first target position is a Shijiazhuang, the user needs to change the termination position from Beijing to the Shijiazhuang during driving, the voice of the person can be the voice for indicating to move to the Shijiazhuang, such as "change the end point to the Shijiazhuang" or "go to the Shijiazhuang", and the terminal changes the current navigation route to the route for moving from the current position of the terminal to the Shijiazhuang.
In another possible implementation manner, the terminal runs with an electronic map client, where the foregoing step 301 and step 305 are executed by the terminal based on the electronic map client, a non-intelligent voice playing module and an intelligent voice playing module are embedded in the electronic map client, the non-intelligent voice playing module cannot interact with voice, the intelligent voice playing module can interact with voice, the navigation voice played in the embodiment of the present application is played by the non-intelligent voice playing module, and the non-navigation voice played in the embodiment of the present application is played by the intelligent voice playing module.
The voice interaction between the intelligent voice playing module and the user can be actively initiated by the intelligent voice playing module or actively initiated by the user. Optionally, in the process of voice interaction between the intelligent voice playing module and the user, the terminal displays an interactive window on an application interface of the electronic map. As shown in fig. 4, the nickname of the intelligent voice playing module is "jingle", the terminal displays a navigation route in the application interface 401, when the intelligent voice playing module performs voice interaction with the user, the terminal displays an interactive window 411 in the application interface 401, and "jingle is saying … …" is displayed in the interactive window 411.
It should be noted that, in the above step 304, the non-navigation speech is taken as an example of the interactive speech, and a process of the terminal performing the control operation according to the human voice is described. In another embodiment, the non-navigable voice is not an unintelligible voice, and the terminal does not perform step 304.
In another possible implementation manner, the terminal runs with 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. And in the cruise mode, a navigation route is not set, and only the current position of the terminal, the position point and the road section in the electronic map are displayed on the application interface of the electronic map client. The voice playing method provided by the embodiment of the application is applied to a three-dimensional navigation mode and a two-dimensional navigation mode.
Taking a scene of user driving navigation as an example, in the process of user driving navigation, a plurality of idle road sections which do not need to play navigation voice or important navigation voice can appear, and the terminal can play non-navigation voice in the idle road sections according to operation configuration or automatic configuration. The contents of the non-navigation speech are shown in table 1.
TABLE 1
For example, the content of the non-navigation voice of the non-interactive type is "jingle supports playing music" to remind the user of a new function of the electronic map client. The interactive type non-navigation voice is "whether the latest voice packet needs to be downloaded", so as to recommend the latest voice packet to the user. For the user, the non-navigation voice played by the idle road section listening terminal is utilized, so that the navigation experience of the user can be improved, the interestingness in the navigation process is increased, and the use viscosity of the user is increased.
The method provided by the embodiment of the application considers that the road sections without the navigation voice or the road sections with the navigation voice not meeting the target condition are idle, so that the non-navigation voice which does not need to indicate the terminal to move is played under the condition that the current position of the terminal is in the idle road sections, the voice playing form in the navigation process is enriched under the condition that the navigation is not influenced, and the information content of the voice playing and the flexibility of the voice playing are improved.
And the length of the idle road section is not less than the first length, or the time required for passing through the idle road section is not less than the first time, so that the condition that the non-navigation voice is not played when the terminal moves out of the idle road section is avoided, and the complete non-navigation voice can be ensured to be played successfully in the idle road section.
And the road section without the navigation voice with the priority higher than the target priority is determined as an idle road section so as to play the non-navigation voice in the idle road section subsequently, so that the selection space of the idle road section is increased, the frequency of playing the non-navigation voice is increased and the information content of voice playing in the navigation process is further increased under the condition that important navigation voice playing is not influenced.
The above-described embodiment of fig. 3 provides a process of playing non-navigation voice on an idle road segment. Besides, it can also be determined where to play the non-navigation voice according to a specific position, and then, referring to fig. 5, fig. 5 is a flowchart of a voice playing method provided in an embodiment of the present application, where the method of the embodiment of the present application is executed by the terminal in the embodiment of fig. 1, where the method includes:
501. the terminal acquires a navigation route.
The step 501 is similar to the step 301, and is not described in detail here.
502. The terminal determines a second target location among a plurality of locations in the navigation route.
The navigation route is formed by connecting a plurality of positions in series according to the sequence, and the terminal determines a second target position in the plurality of positions. Any one of the plurality of positions can be determined as a second target position, and specifically which position is determined as the second target position can be configured by the terminal itself or configured by a server providing services for the terminal, and then the server issues the configured second target position to the terminal.
For example, the second target location is a starting location, an ending location, a location where a shop is located, a location where a gas station is located, and the like in the navigation route, which is not limited in the embodiment of the present application.
503. And the terminal determines the route in the geographical area to which the second target position belongs in the navigation route as a target road section.
And the terminal determines the geographical area to which the second target position belongs, and determines the route in the geographical area in the navigation route as the target road section.
The terminal can determine the geographic area to which the second target position belongs in any mode. Optionally, the terminal determines a circular area with the second target position as a center and the third length as a radius, and determines the circular area as a geographic area to which the second target position belongs, or determines an area in the navigation route, where a distance between the terminal and the second target position is not greater than the third length, as a geographic area to which the second target position belongs. For example, the third length is 5 meters, etc. Optionally, the terminal determines a street to which the second target location belongs as the geographic area, or determines a community to which the second target location belongs as the geographic area.
504. And the terminal plays non-navigation voice related to the second target position according to the target road section in the navigation route.
And after the terminal determines the target road section in the navigation route, playing non-navigation voice related to the second target position according to the target road section in the navigation route.
Wherein, the non-navigation voice related to the second target position means that the content of the non-navigation voice is related to the second target position. For example, the second target location is a gas station, and the non-navigational voice is "go and go", thereby reminding the user to fill the gas. For example, the second target location is a store, and the non-navigational voice is "store has a full 50-dollar activity in front, inviting you to participate" to remind the user to go to the store to shop. For example, the second target location is Guangzhou, and the non-navigable voice is "Guangzhou traffic police reminds you, please tie a seat belt" to remind the user to reach Guangzhou.
The method comprises the following two modes of playing non-navigation voice related to a second target position according to a target road section in a navigation route.
In the first mode, under the condition that the current position of the terminal is in the target road section, non-navigation voice with the content related to the second target position is played.
The user carries the terminal to move according to the navigation route, and the current position of the terminal can be changed continuously in the moving process. And the terminal determines the current position through positioning, and plays the non-navigation voice of which the content is related to the second target position under the condition that the current position is in the target road section.
In the second mode, under the condition that the current position of the terminal is in the geographic area corresponding to the target road section, non-navigation voice with the content related to the second target position is played.
The user carries the terminal to move according to the navigation route, and the current position of the terminal can be changed continuously in the moving process. And the terminal determines the current position through positioning, and plays non-navigation voice related to the content and the second target position under the condition that the current position is in the geographic area corresponding to the target road section.
The terminal can determine the geographic area corresponding to the target road section in any mode. Optionally, the terminal determines a third location point, which is before the target road segment in the navigation route and has a first distance from the starting point of the target road segment, and a fourth location point, which has a second distance from the starting point of the target road segment, and determines a road segment between the third location point and the fourth location point as the geographic area corresponding to the determined target road segment. The geographic area may be referred to as a playing interval of the non-navigation voice, for example, the playing interval is [50 meters, 2 kilometers ], as shown in fig. 6, a road segment between a point C and a point D in the navigation route is a target road segment, a point B before the point C and at a distance of 50 meters from the point C in the navigation route is determined, a point a before the point C and at a distance of 2 kilometers from the point C in the navigation route is determined, and a road segment between the point a and the point B is a geographic area corresponding to the target road segment. In addition, the playing interval may also be set to [50 meters, 800 meters ] or [0 meters, 300 meters ], and the like, which is not limited in the embodiment of the present application. Optionally, the terminal may further determine a street to which the target road segment belongs as a geographic area corresponding to the target road segment, or determine a community to which the target road segment belongs as a geographic area corresponding to the target road segment.
Taking a scene of user driving navigation as an example, a plurality of target road sections are configured in the process of user driving navigation, and the terminal can play corresponding non-navigation voices in a geographic area corresponding to the target road sections according to operation configuration or automatic configuration. The contents of the non-navigation speech are shown in table 2.
TABLE 2
For example, the second destination location is Guangzhou, and the corresponding non-navigable voice is "Guangzhou traffic police remind you, please tie the seat belt". For example, the second destination location is a store and the corresponding non-navigable voice is "end store has a full 50 file transfer 50 file inviting you to participate". For example, the second target position is a gas station, the corresponding non-navigation voice is "500 meters ahead to pass through the gas station, and the electronic map client is used to add fuel to share 200 yuan of activity, and whether to add fuel along the road" is needed, as shown in fig. 7, in the process of playing the non-navigation voice, the terminal displays "you can say to add fuel along the road" in the interaction window 711 of the application interface 701 to guide the user to perform voice interaction. For example, the second target position is the scenic spot west hulless oat flour village, and the corresponding non-navigation voice is "whether the front 500 meters passes the west hulless oat flour village and the west hulless oat flour village needs to be visited", as shown in fig. 8, in the process of playing the non-navigation voice, the terminal displays "you can say to go to the west hulless oat flour village" in the interaction window 811 of the application interface 801 to guide the user to perform voice interaction.
According to the method provided by the embodiment of the application, the non-navigation voice related to the second target position is played under the condition that the current position of the terminal is located in the geographic area corresponding to the target road sections according to the target road section where the second target position is located, so that customized non-navigation voice is set according to some positions in the navigation route, the accurate delivery of the non-navigation voice is realized, the voice playing form in the navigation process is enriched, and the voice playing information quantity and the voice playing flexibility are improved.
The embodiment of FIG. 5 described above provides a process for playing non-navigational speech based on a particular location. In addition, a non-navigation voice can be played on a congested road segment, and then, referring to fig. 9, fig. 9 is a flowchart of a voice playing method provided in an embodiment of the present application. The method of the embodiment of the present application is executed by the terminal in the embodiment of fig. 1, and the method includes:
901. the terminal acquires a navigation route.
Step 901 is the same as step 301, and is not described in detail herein.
902. The terminal determines a congested road segment in the navigation route.
And the terminal determines the congestion road section in the navigation road section. The congested link means a link having a large traffic flow. Optionally, in the driving navigation process, the terminal determines a traffic flow in a certain road segment, and determines the road segment as a congested road segment when the traffic flow is greater than a target traffic flow. Or the terminal determines the average vehicle speed in a certain road section, and determines the road section as a congestion road section under the condition that the average vehicle speed is less than the target vehicle speed.
903. And the terminal broadcasts non-navigation voice in the congested road section.
The user carries the terminal to move according to the navigation route, and the current position of the terminal can be changed continuously in the moving process. The terminal determines the current position through positioning, and plays non-navigation voice under the condition that the current position is in a congested road section.
The playing of the non-navigation voice on the congested road segment includes the following two situations.
In the first case, the non-navigation voice is broadcasted under the condition that the current position of the terminal is in the congested road section and the length of the congested road section is greater than the third length.
In order to ensure that the non-navigation voice can be successfully played in the congested road section, the length of the congested road section is required to be long enough to avoid the situation that the non-navigation voice is not played when the terminal moves out of the congested road section. Therefore, under the condition that the current position of the terminal is in the congested road section and the length of the congested road section is greater than the third length, the non-navigation voice is broadcasted.
And in the second situation, under the condition that the current position of the terminal is in the congested road section and the time length required for the terminal to pass through the congested road section is longer than the second time length, the non-navigation voice is broadcasted.
For example, the terminal determines the time required for the terminal to pass through the congested road section according to the average moving speed in the congested road section and the length of the congested road section. In the embodiment of the application, in order to ensure that the non-navigation voice can be successfully played in the congested road section, the time required for passing through the congested road section is required to be long enough, so that the situation that the non-navigation voice is not played when the terminal moves out of the congested road section is avoided. Therefore, under the condition that the current position of the terminal is in the congested road section and the time length required for the terminal to pass through the congested road section is longer than the second time length, the non-navigation voice is broadcasted.
According to the method provided by the embodiment of the application, the non-navigation voice is played under the condition that the current position of the terminal is in the congested road section aiming at the congested road section with the length being greater than the third length or the congested road section with the required time being greater than the second time, so that the playing scene of the non-navigation voice is further expanded, the voice playing mode in the navigation process is enriched, and the voice playing information quantity and the voice playing flexibility are improved.
In some embodiments, in the embodiments corresponding to fig. 3, fig. 5, and fig. 9, the configuration file required for performing the voice playing in the navigation process may be configured in the configuration device, and then delivered to the terminal. Fig. 10 is a system architecture diagram provided in an embodiment of the present application, and as shown in fig. 10, a configuration device includes a target road segment storage module 1001, a configuration module 1002, and a play timing determination module 1003, an operator generates a configuration file using the configuration module 1002, and the configuration device stores a target road segment in the configuration file in the target road segment storage module 1001, where the play timing determination module 1003 is used to determine play timings of a navigation voice and a non-navigation voice, and the configuration device notifies a terminal of the play timing. The terminal comprises a navigation route planning module 1004, a navigation module 1005, a navigation route display module 1006 and a voice playing module 1007. The navigation route planning module 1004 is used for planning a navigation route, the navigation module 1005 is used for navigating according to the navigation route, the navigation route display module 1006 is used for displaying the navigation route, and the voice playing module 1007 is used for playing navigation voice and non-navigation voice.
For example, the configuration file includes at least one of:
(1) a name of a non-navigation voice;
(2) a description of non-navigational speech;
(3) whether the non-navigation voice takes effect;
(4) equipment for enabling non-navigation voice to take effect, such as a client, an open platform, a vehicle-mounted terminal and the like in a mobile phone;
(5) a client version in which non-navigable speech takes effect;
(6) the guide engine version which is effective for the non-navigation voice is used for determining the playing opportunity;
(7) a downloading channel with non-navigation voice effective is referred to as a downloading channel of a client;
(8) the effective date of the non-navigation voice refers to the date of the non-navigation voice which begins to take effect;
(9) the effective gray scale proportion of the non-navigation voice is the proportion of users who hit the voice playing strategy;
(10) effective Imei (International Mobile Equipment Identity) for non-navigational voice;
(11) the starting point city where the non-navigation voice takes effect is the city where the starting position of the navigation route is located;
(12) the destination city in which the non-navigation voice takes effect refers to the city where the termination position of the navigation route is located;
(13) the number of target times of non-navigation voice validation, wherein each terminal corresponds to a number table, the number table comprises the historical times of playing the non-navigation voice by the terminal and the target times allowed by playing the non-navigation voice, and the number table is updated after the terminal is successfully played each time;
(14) target time period for non-navigation voice to take effect;
(15) and determining the second target position and the geographic area to which the second target position belongs in the electronic map as the target road section. Wherein the target road segment is updated according to the target period;
(16) the navigation voice and the non-navigation voice correspond to priorities, wherein the priorities comprise a high priority, a medium priority and a low priority, the navigation voice is set to be the high priority or the medium priority, and the non-navigation voice is set to be the low priority;
(17) priority of voice play. For example, if the priority of voice playing is high priority, only the voice with high priority is played in the navigation process, for example, if the priority of voice playing is medium priority, the voice with no lower priority is played in the navigation process, for example, if the priority of voice playing is low priority, the voice with no lower priority is played in the navigation process;
(18) playing interval of non-navigation voice;
(19) and the grade corresponding to the road section with the non-navigation voice effective.
In the embodiments corresponding to fig. 3, fig. 5, and fig. 9, the process of playing the non-navigation voice when the user is in the idle road segment, the geographic area corresponding to the target road segment, and the congested road segment is described respectively. Under the three conditions, the scene for playing the non-navigation voice comprises a plurality of scenes. In a possible implementation manner, the content of the non-navigation voice is related to at least one of user identity information, feature information of a navigation route, current date information, or a type of current equipment, where the user identity information is identity information corresponding to a user identifier of a terminal login.
For example, scenes playing non-navigational voice, and content of the non-navigational voice includes at least one of:
(1) under the condition that the current position of the terminal is in the city where the initial position is located, for example, the played non-navigation voice is 'guangdong traffic police prompts you, please tie a safety belt';
(2) in the case where a mountain road is included in the navigation route, for example, the played non-navigation voice is "please check the vehicle condition after passing through the mountain road of 1.8 km";
(3) when the terminal position of the navigation route is determined to be the address of the user according to the navigation route and the user identity information, for example, the played non-navigation voice is 'fast home bar';
(4) in the case where the second target location in the navigation route is a store, for example, the played non-navigation voice is "store in front of currently has a full 50 dollar feed 50 dollar activity";
(5) in the case that it is determined that today is the birthday of the user according to the current date information and the user identity information, for example, the played non-navigation voice is "today is your birthday, and you are happy to birthday";
(6) in the case of a company that determines that it is weekend today and the end position of the navigation route is the user, for example, the non-navigation voice played is "weekend and overtime, hard to catch";
(7) in the case where the current location of the terminal is in a certain city, for example, the played non-navigation voice is "welcome to the north sea city";
(8) in the case where there is a school in the target section in the front, for example, the played non-navigation voice is "front school is in college entrance examination, do not whistle";
(9) in the case of a branch point existing in the forward target road segment, for example, the played non-navigation voice is "forward branch point, both sides can pass";
(10) in the case that the current position is in a congested road section, for example, the played non-navigation voice is "congestion 5.8 km ahead, estimated traffic time is 15 minutes, and joke needs to be spoken to you by a bite";
(11) in the case that the current position is in an idle road segment, for example, the played non-navigation voice is "go on 15 km along the current road, need to give you a joke when you are jingle";
(12) in the case of scenic spots on the front target road segment, for example, the played non-navigation voice is "the front right side will pass through the temple scene area" for ever;
(13) in the case where the current position is in the geographical area to which the end position belongs, for example, the played non-navigation voice is "arrived at home, one bitter day";
(14) in the case where the ending location belongs to a sight, for example, the played non-navigational voice is "can attempt to view the sight guide in the map".
Fig. 11 is a schematic structural diagram of a speech playing apparatus provided in an embodiment of the present application, and referring to fig. 11, the apparatus includes:
the route acquiring module 1101 is configured to acquire a navigation route, where the navigation route includes an idle road segment, and the idle road segment is a road segment where a navigation voice is not set or a road segment where the set navigation voice does not meet a target condition;
a first playing module 1102, configured to play a non-navigation voice when the current position of the terminal is in an idle road segment;
the navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice.
The voice playing device provided by the embodiment of the application considers that the road sections without the navigation voice or the road sections with the navigation voice not meeting the target condition are idle, so that the non-navigation voice which does not need to indicate the terminal to move is played under the condition that the current position of the terminal is in the idle road sections, the voice playing form in the navigation process is enriched under the condition that the navigation is not influenced, and the information content of the voice playing and the flexibility of the voice playing are improved.
Optionally, referring to fig. 12, the apparatus further comprises:
and an idle road segment determining module 1103, configured to determine, when the priority of the navigation voice set for any road segment in the navigation route is not higher than the target priority, any road segment as an idle road segment in the navigation route.
Optionally, referring to fig. 12, the apparatus further comprises:
the free road section determining module 1103 is configured to determine, when no navigation voice is set for any road section in the navigation route or the set navigation voice does not satisfy the target condition, and the length of any road section is not less than the first length, any road section as a free road section in the navigation route.
Optionally, referring to fig. 12, the apparatus further comprises:
the free road section determining module 1103 is configured to determine, as a free road section in the navigation route, any road section when no navigation voice is set between any road sections in the navigation route or when the set navigation voice does not satisfy the target condition and the time required for passing through any road section is not less than the first time.
Optionally, the apparatus further comprises:
a configuration information obtaining module 1104, configured to obtain voice configuration information, where the voice configuration information includes at least one of user identity information, feature information of the navigation route, current date information, or a type of current equipment, and the user identity information is identity information corresponding to a user identifier of the terminal login;
a non-navigation voice generating module 1105, configured to generate the non-navigation voice with content related to the voice configuration information.
Optionally, referring to fig. 12, the apparatus further comprises:
a voice acquiring module 1106, configured to acquire a plurality of non-navigation voices allocated for the navigation route and corresponding priorities;
a voice distribution module 1107, configured to distribute different non-navigation voices corresponding to the highest priority to at least one idle road segment in the navigation route;
the voice allocating module 1107 is also used to allocate the rest of the non-navigation voice to the rest of the idle road segments.
Optionally, referring to fig. 12, a first playing module 1102 for performing at least one of:
the road sections in the navigation route have corresponding levels, and non-navigation voice is broadcasted under the condition that the current position of the terminal is in an idle road section and the level of the idle road section belongs to a target level;
under the condition that the current position of the terminal is in an idle road section and the current time belongs to a target time period, non-navigation voice is broadcasted;
under the condition that the initial position of the navigation route is in the first target area and the current position of the terminal is in the idle road section, broadcasting non-navigation voice;
under the condition that the ending position of the navigation route is in the second target area and the current position of the terminal is in the idle road section, broadcasting non-navigation voice;
and broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the frequency of the terminal playing the non-navigation voice is not more than the target frequency.
Optionally, referring to fig. 12, the navigation route includes a target road segment including the second target location, and the apparatus further includes:
a second playing module 1108, configured to play a non-navigation voice whose content is related to a second target position when the current position of the terminal is in the target road segment; or,
the second playing module 1108 is further configured to play the non-navigation voice of which the content is related to the second target location when the current location of the terminal is within the geographic area corresponding to the target road segment.
Optionally, referring to fig. 12, the apparatus further comprises:
a position determining module 1109 for determining a second target position among a plurality of positions in the navigation route;
and a target road segment determining module 1110, configured to determine, as a target road segment, a route in the geographic area where the second target location belongs in the navigation route.
Alternatively, referring to fig. 12, non-navigation voices that have not been played are stored in the voice list and arranged in the order of playing; the device still includes:
a third playing module 1111, configured to play the first target voice in response to a playing request for the first target voice;
a voice deleting module 1112, configured to delete 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 the first target voice.
Optionally, referring to fig. 12, the apparatus further comprises:
and the operation execution module 1113 is configured to monitor the voice of the person in response to the non-navigation voice being an interactive voice, and execute a control operation based on the voice of the person.
Alternatively, referring to fig. 12, the operation performing module 1113 includes:
the voice playing unit 11131 is configured to play the next non-navigation voice in response to the voice instruction, but receive a play request for the second target voice, and play the next non-navigation voice after playing the second target voice.
Alternatively, referring to fig. 12, the operation performing module 1113 includes:
a route determining unit 11132 for instructing by human voice to move to a first target location located outside the navigation route, adding a link moving from the current location of the terminal to the first target location in the navigation route, or changing the navigation route to a route moving from the current location of the terminal to the first target location.
Optionally, referring to fig. 12, the apparatus further comprises:
and a free road segment determining module 1103, configured to determine a free road segment in the navigation route if the length of the navigation route is greater than the second length.
Optionally, referring to fig. 12, the apparatus further comprises:
a congested road segment determining module 1114 for determining a congested road segment in the navigation route;
a fourth playing module 1115, configured to broadcast a non-navigation voice when the current location of the terminal is in a congested road segment, and the length of the congested road segment is greater than a third length; or,
and a fourth playing module 1115, configured to broadcast the non-navigation voice when the current location of the terminal is in the congested road segment, and a time required for the terminal to pass through the congested road segment is longer than a second time.
It should be noted that: in the voice playing apparatus provided in the foregoing embodiment, when playing voice, only the division of the functional modules is exemplified, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the voice playing device and the voice playing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The embodiment of the present application further provides a terminal, where the terminal includes a processor and a memory, where the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor, so as to implement the operations executed in the voice playing method of the foregoing embodiment.
Fig. 13 shows a schematic structural diagram of a terminal 1300 according to an exemplary embodiment of the present application.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Processor 1301, memory 1302, and peripheral interface 1303 may be connected by a bus or signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Optionally, the peripheral device comprises: at least one of a radio frequency circuit 1304, a display screen 1305, a camera assembly 1306, an audio circuit 1307, and a positioning assembly 1308.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a 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 subscriber identity module card, and so forth. The radio frequency circuitry 1304 may communicate with other devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1305 is a touch display screen, the display screen 1305 also has the ability to capture touch signals on or over the surface of the display screen 1305. The touch signal may be input to the processor 1301 as a control signal for processing. At this point, the display 1305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1305 may be one, disposed on the front panel of terminal 1300; in other embodiments, display 1305 may be at least two, either on different surfaces of terminal 1300 or in a folded design; in other embodiments, display 1305 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1300. Even further, the display 1305 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. The front camera is disposed on the front panel of the terminal 1300, and the rear camera is disposed on the rear surface of the terminal 1300. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1300. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used for positioning the current geographic position of the terminal 1300 for implementing navigation or LBS (Location Based Service). The Positioning component 1308 can be a Positioning component based on the GPS (Global Positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
In some embodiments, terminal 1300 also includes one or more sensors 1309. The one or more sensors 1309 include, but are not limited to: an acceleration sensor 1310 and a gyro sensor 1311.
Acceleration sensor 1310 may detect acceleration in three coordinate axes of the coordinate system established with terminal 1300. For example, the acceleration sensor 1310 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 1301 may control the display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1310. The acceleration sensor 1310 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1311 may detect a body direction and a rotation angle of the terminal 1300, and the gyro sensor 1311 may cooperate with the acceleration sensor 1310 to acquire a 3D motion of the user on the terminal 1300. The processor 1301 may implement the following functions according to the data collected by the gyro sensor 1311: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The embodiment of the present application further provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations executed in the voice playing method of the foregoing embodiment.
The embodiments of the present application also provide a computer program product or a computer program, where the computer program product or the computer program includes computer program codes, the computer program codes are stored in a computer-readable storage medium, and a processor of the terminal reads the computer program codes from the computer-readable storage medium, and executes the computer program codes, so that the terminal implements the operations performed in the voice playing method according to the above embodiments. In some embodiments, the computer program according to the embodiments of the present application may be deployed to be executed on one terminal or on a plurality of terminals located at one site, or on a plurality of terminals distributed at a plurality of sites and interconnected by a communication network, and the plurality of terminals distributed at the plurality of sites and interconnected by the communication network may constitute a block chain system.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an alternative embodiment of the present application and should not be construed as limiting the present application, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (18)
1. A method for playing speech, the method comprising:
acquiring a navigation route, wherein the navigation route comprises an idle road section, and the idle road section is a road section without navigation voice or a road section with the navigation voice not meeting target conditions;
under the condition that the current position of the terminal is in the idle road section, playing non-navigation voice;
the navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice.
2. The method of claim 1, wherein the navigation voice corresponds to a priority, and before playing the non-navigation voice in the case that the current location of the terminal is on the idle road segment, the method further comprises:
and determining any road segment as the idle road segment in the navigation route under the condition that the priority of the navigation voice set by the any road segment in the navigation route is not higher than the target priority.
3. The method according to claim 1, wherein before playing the non-navigation voice in the case that the current position of the terminal is on the free road segment, the method further comprises:
and determining any road segment as the idle road segment in the navigation route under the condition that the navigation voice is not set for any road segment in the navigation route or the set navigation voice does not meet the target condition and the length of the any road segment is not less than a first length.
4. The method according to claim 1, wherein before playing the non-navigation voice in the case that the current position of the terminal is on the free road segment, the method further comprises:
and under the condition that the navigation voice is not set between any road sections in the navigation route or the set navigation voice does not meet the target condition and the time required for passing through any road section is not less than a first time, determining any road section as the idle road section in the navigation route.
5. The method according to claim 1, wherein before playing the non-navigation voice in the case that the current position of the terminal is on the free road segment, the method further comprises:
acquiring voice configuration information, wherein the voice configuration information comprises at least one item of user identity information, feature information of the navigation route, current date information or the type of current equipment, and the user identity information is identity information corresponding to a user identifier of the terminal login;
generating the non-navigation voice with the content related to the voice configuration information.
6. The method according to claim 1, wherein before playing the non-navigation voice in the case that the current position of the terminal is on the free road segment, the method further comprises:
acquiring a plurality of non-navigation voices distributed for the navigation route and corresponding priorities;
assigning a different non-navigational voice corresponding to a highest priority to at least one of the free segments in the navigational route;
and distributing the rest of the non-navigation voice to the rest of the idle road sections.
7. The method according to claim 1, wherein the broadcasting of the non-navigation voice in the case that the current position of the terminal is in the idle section comprises at least one of:
the road sections in the navigation route have corresponding levels, and the non-navigation voice is broadcasted under the condition that 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;
broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the current time belongs to a target time period;
broadcasting the non-navigation voice under the condition that the initial position of the navigation route is in a first target area and the current position of the terminal is in the idle road section;
broadcasting the non-navigation voice under the condition that the ending position of the navigation route is in a second target area and the current position of the terminal is in the idle road section;
and broadcasting the non-navigation voice under the condition that the current position of the terminal is in the idle road section and the number of times of playing the non-navigation voice by the terminal is not more than the target number of times.
8. The method of claim 1, wherein the navigation route includes a target segment including a second target location, the method further comprising:
under the condition that the current position of the terminal is in the target road section, playing the non-navigation voice with the content related to the second target position; or,
and under the condition that the current position of the terminal is in the geographic area corresponding to the target road section, playing the non-navigation voice of which the content is related to the second target position.
9. The method of claim 8, wherein prior to the playing the non-navigational speech associated with the content and the second target location, the method further comprises:
determining the second target location among a plurality of locations in the navigation route;
and determining a route in the geographic area to which the second target position belongs in the navigation route as the target road section.
10. The method of claim 1, wherein the non-navigation voices that have not been played are stored in a voice list and arranged in the order of play; the method further comprises the following steps:
responding to a playing request of a first target voice, and playing the first target voice;
and deleting the first non-navigation voice from the voice list under the condition that the priority of the first non-navigation voice in the voice list is lower than the first target voice.
11. The method according to claim 1, wherein after the non-navigation voice is announced in a case where the current location of the terminal is on the free road segment, the method further comprises:
and responding to the fact that the non-navigation voice is interactive voice, monitoring voice of a person, and executing control operation based on the voice of the person.
12. The method of claim 11, wherein performing a control operation based on the vocal speech comprises:
responding to the voice instruction of the human voice to play the next non-navigation voice, but receiving a play request of a second target voice, and playing the next non-navigation voice after playing the second target voice.
13. The method of claim 11, wherein performing a control operation based on the vocal speech comprises:
and the voice indication of the person moves to a first target position outside the navigation route, adds a road segment moving from the current position of the terminal to the first target position in the navigation route, or changes the navigation route into a route moving from the current position to the first target position.
14. The method according to claim 1, wherein before playing the non-navigation voice in the case that the current position of the terminal is on the free road segment, the method further comprises:
determining the free segment in the navigation route if the length of the navigation route is greater than a second length.
15. The method of claim 1, further comprising:
determining a congested road segment in the navigation route;
under the condition that the current position of the terminal is in the congested road section and the length of the congested road section is greater than a third length, broadcasting the non-navigation voice; or,
and under the condition that the current position of the terminal is in the congested road section and the time required for the terminal to pass through the congested road section is longer than a second time, broadcasting the non-navigation voice.
16. A voice playback apparatus, characterized in that the apparatus comprises:
the route acquisition module is used for acquiring a navigation route, wherein the navigation route comprises an idle road section, and the idle road section is a road section without navigation voice or a road section with the navigation voice not meeting the target condition;
the first playing module is used for playing non-navigation voice under the condition that the current position of the terminal is in the idle road section;
the navigation voice is voice for indicating the terminal to move, and the non-navigation voice is voice except the navigation voice.
17. A terminal, characterized in that the terminal comprises 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 executed in the voice playing method according to any one of claims 1 to 15.
18. A computer-readable storage medium, in which at least one computer program is stored, the at least one computer program being loaded and executed by a processor to implement the operations performed in the voice playing method according to any one of claims 1 to 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110785699.7A CN113514075A (en) | 2021-07-12 | 2021-07-12 | Voice playing method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110785699.7A CN113514075A (en) | 2021-07-12 | 2021-07-12 | Voice playing method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113514075A true CN113514075A (en) | 2021-10-19 |
Family
ID=78067445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110785699.7A Pending CN113514075A (en) | 2021-07-12 | 2021-07-12 | Voice playing method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113514075A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114838730A (en) * | 2022-04-28 | 2022-08-02 | 北京百度网讯科技有限公司 | Navigation processing method and device and electronic equipment |
-
2021
- 2021-07-12 CN CN202110785699.7A patent/CN113514075A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114838730A (en) * | 2022-04-28 | 2022-08-02 | 北京百度网讯科技有限公司 | Navigation processing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105745515B (en) | Generating routes for optimizing traffic flow | |
KR101502013B1 (en) | Mobile terminal and method for providing location based service thereof | |
US9836486B2 (en) | Point of interest database maintenance system | |
KR101786737B1 (en) | System and method for partial updating of map data based on use's moving path, terminal device and recording medium thereof | |
EP2995908A1 (en) | Apparatus, system and method for clustering points of interest in a navigation system | |
US20120303266A1 (en) | First waypoint distance | |
US20080132249A1 (en) | Local caching of map data based on carrier coverage data | |
CN109120653B (en) | Multimedia data recommendation method and device | |
CN110274611B (en) | Information display method, device, terminal and storage medium | |
TW201017111A (en) | Navigation apparatus, server apparatus and method of providing point of interest data | |
CN102457570A (en) | Intelligent vehicle-mounted communication informatization system and communication method based on 3-generation (3G) technology and cloud system | |
CN109446348A (en) | A kind of operating method, device, terminal and storage medium polymerizeing point of interest | |
CN113701743B (en) | Map data processing method and device, computer equipment and storage medium | |
CN109144239B (en) | Augmented reality method, server and terminal | |
CN112165688A (en) | Chat room construction method, system and computer readable storage medium | |
CN109446456A (en) | The dissemination method of point of interest and device, terminal, storage medium in media information | |
US9341498B2 (en) | Navigation system with route guidance mechanism and method of operation thereof | |
CN103063221A (en) | Navigation system with non-native dynamic navigator mechanism and method of operation thereof | |
CN108540815A (en) | Multimedia content playback method, apparatus and system | |
CN111966769B (en) | Method, device, equipment and medium for recommending information based on life circle | |
CN105917329B (en) | Information display device and information display program | |
CN115357311A (en) | Travel information sharing method and device, computer equipment and storage medium | |
CN109708657A (en) | A kind of based reminding method and mobile terminal | |
CN113190613A (en) | Vehicle route information display method and device, electronic equipment and readable medium | |
WO2024152660A1 (en) | Route-based weather condition display method and apparatus, and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40053588 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |