This application claims the benefit of priority of New Zealand Patent Application Serial No. 722712, filed on Jul. 29, 2016, the benefit of priority of which is claimed hereby, and which is incorporated by reference herein in its entirety.
The invention relates to systems and methods for the automatic creation of synchronised soundtracks for playback to a user while they read an associated text. In particular, although not exclusively, the synchronized soundtracks are for electronic media content, such as but not limited to text only or multimedia content comprising text presented in combination with imagery, videos or animations.
To enhance the reading experience, various systems have been proposed in which audio soundtracks relating to the content of text, such as an e-book, are produced and played to the user while they read the text. Some of these systems aim to synchronise the playback of the soundtrack with the user's reading speed.
One such system is described in the applicant's co-pending international PCT patent application publication WO2013/015694, the contents of which is hereby incorporated by reference in its entirety. In this system, a soundtrack for electronic text, such as an e-book, is produced that comprises audio tracks of different types that are configured to play concurrently and/or sequentially while the user is reading the electronic text. Playback of the soundtrack is synchronised with the reading speed of the user. The soundtrack may comprise a combination of different audio types, including ambient noise, sound effects, and background music that are configured to playback at a specific point or over specific portions of the electronic text in a synchronised manner as the user is reading those portions of the electronic text. The soundtrack in WO2013/015694 comprises multiple audio regions that are designated to playback during designated text portions of the electronic text. Each audio region comprises audio data defining the audio track to playback, the start position in the electronic text at which the audio region is to commence playback, and a stop position in the electronic text at which the audio region is to cease playback. In one embodiment described, the electronic text is indexed based on the number of words and the start and stop positions of the audio regions relate to a start and stop word.
WO2013/015694 describes a soundtrack creation system that enables a user to manually create a synchronised soundtrack for an item of electronic text. The soundtrack creation system utilizes a graphical user interface (GUI) to display the electronic text to the user and allows the user to create each audio region of the soundtrack by highlighting a desired text region and configuring the audio data properties to define the audio track for playback during the text region and any other desired real-time audio playback effects, such as panning or volume envelopes. This form of manual soundtrack creation requires a creator to read and interpret the text to ascertain significant events and the emotions being conveyed to the reader so as to define the locations (e.g. start and end) of suitable audio regions in the soundtrack timeline, and to then select a suitable audio file for playback at that region. This applies across each type of sound layer, whether sound effects, background music, or ambience. For example, for the background music layer the creator must interpret and identify the emotion or dominant emotion being conveyed in the text, define start and end locations of a music audio region of the music layer for a passage of text having that identified emotion, and then select a suitable music track to enhance or correspond with the emotion conveyed of that text region. The creator must continue this process across the entire text to define the audio regions of the music layer for the soundtrack, which is a time consuming process. A similar process is required for the ambience and sound effect layers, in which audio regions for sound effects and ambience are configured to enhance text regions in the text, i.e. by identifying text regions where enhancing ambience or sound effect audio regions can be created for playback in the soundtrack. The creator must create and configure these audio regions across the multiple layers across the entire text, which is a time consuming process. The soundtrack creation process is also subjective, and therefore the soundtrack quality may vary depending on the creator and/or their interpretation of the text.
In this specification where reference has been made to patent specifications, other external documents, or other sources of information, this is generally for the purpose of providing a context for discussing the features of the invention. Unless specifically stated otherwise, reference to such external documents is not to be construed as an admission that such documents, or such sources of information, in any jurisdiction, are prior art, or form part of the common general knowledge in the art.
It is an object of at least some embodiments to provide a system and method for at least partial automatic-creation of synchronised soundtracks for text, or at least provide the public with a useful choice.
It is an object of at least some embodiments to provide a method of delivering a synchronised soundtrack for playback with an associated book, or to at least provide the public with a useful choice.
In a first aspect, the invention broadly consists in a method of automatically generating a digital soundtrack intended for synchronised playback with the reading of an associated text, the soundtrack comprising one or more audio regions configured for playback during corresponding text regions of the text, the method executed by a processing device or devices having associated memory, the method comprising:
In one embodiment, the text is from electronic media content, and the raw text data is extracted from a data file or files representing the electronic media content. In another embodiment, the text is printed text, and the step of receiving or retrieving raw text data representing the text into memory comprises converting the printed text into electronic text contained in a data file or files from which the raw text data can be received or retrieved.
In an embodiment, applying natural language processing to the raw text data comprises processing the raw text data into a series of distinct or individual tokens. In one embodiment, the token data comprises tokens representing each word or word concepts from the raw text data, with the tokens arranged or ordered into their respective sentences. In another embodiment, the token data comprises tokens representing each word or word concept or punctuation from the raw text data, with the tokens arranged or ordered into their respective sentences. In another embodiment, the parameters defining the tokenization, i.e. what constitutes a distinct token, may be configured based on tokenization control parameters.
In an embodiment, applying natural language processing to the raw text data further comprises applying syntactic or part of speech (POS) tagging to the raw text data to identify syntactic components in each sentence and the processed text data further comprises syntactic data indicative of the identified syntactic components. In one configuration, each token of the token data is tagged with its identified or associated syntactic component. By way of example, the tokens may be tagged with syntactic data identifying whether they are a verb, noun, adjective, preposition or other syntactic component, or may be tagged with a default ‘unknown’ tag if the token does not have an identified syntactical component.
In an embodiment, the method further comprises identifying or segmenting the processed text data into the series of text segments prior to or during the semantic analysis.
In an embodiment, segmenting the processed text data into a series of text segments comprises segmenting the text data into text segments representing the individual sentences within the text. In another embodiment, segmenting the processed text data into a series of text segments comprises segmenting the text data into text segments representing a predetermined number of adjacent words or adjacent sentences. In another embodiment, segmenting the processed text data into a series of text segments comprises segmenting the text data into text segments based on text reference points, such as paragraph or page or chapter boundaries or other text reference boundaries. In one example, the text segments may represent individual paragraphs or chapters of the text. It will be appreciated that the length of each text segment (e.g. defined by the number of tokens in the segment) may vary from segment to segment, such that the text segments may be non-uniform in length.
In an embodiment, the continuous emotion model is further defined by lexicon data representing a set of lexicons for the emotional category identifiers. In an embodiment, each lexicon comprises data indicative of a list of words and/or word concepts that are categorised or determined as being associated with the emotional category identifier associated with the lexicon. In one form, the lexicon data may be fixed or static such that the lists of words and/or word concepts in each lexicon are fixed. In an alternative configuration, the lexicon data is dynamic such that it may be modified or updated to thereby selectively modify or adjust their list of words and/or word concepts in each lexicon. In one form, the words and/or word concepts in each lexicon are mutually exclusive such that they do not appear in any other lexicon. In an alternative form, the words and/or word concepts of each lexicon are not mutually exclusive in that they appear in more than one lexicon.
In an embodiment, each word or word concept in each lexicon has one or more associated lexicon attribute values or identifiers. In one configuration, each word or word concept has a weighting value representing how strongly the word or word concept represents the emotional category identifier of the lexicon, and a syntactic value or identifier representing the part of speech or type of word or word concept, such as noun, verb, adjective, adverb, idiom or the like.
In an embodiment, applying semantic analysis to the processed text data comprises generating segment emotional data profiles that represent for each emotional category identifier the absolute count or frequency of tokens in the text segment corresponding to the associated lexicon. In one form, the segment emotional data profile is generated in the form of a multi-dimensional data set or data array comprising a plurality of count or frequency values, one for each emotional category identifier, and wherein the count or frequency values are based on the number of tokens in the text segment corresponding to or matching to their lexicon associated with an emotional category identifier.
In one example embodiment, the continuous emotional model is defined by eight emotional category identifiers, and in this embodiment the sentence emotional data profile is an eight value data set or data array comprising eight count or frequency values, each count or frequency value corresponding to a respective emotional category identifier.
In an embodiment, the multi-dimensional data arrays of the segment emotional data profiles are multi-dimensional representations of the emotional profile of the text segments, each emotional category identifier representing a distinct dimension within the continuous emotion model.
In an embodiment, the generated segment emotional data profiles comprise a multi-dimensional data set comprising absolute count values or frequency values for each emotional category identifier. In one form, the frequency values are segment frequency values representing the absolute count value divided by the total number of tokens in the text segment, and which is expressed as either a percentage or fractional value.
In an embodiment, the absolute count values or frequency values of the multi-dimensional data set represent or are indicative of the absolute intensity of the text segment for each emotional category identifier.
In an embodiment, the method further comprises generating baseline statistical values for each emotional category identifier across the entire text, and normalising or scaling the segment emotional data profiles based on or as a function of the generated baseline statistical values to generate relative segment emotional data profiles.
In an embodiment, the relative segment emotional data profiles comprise a multi-dimensional data set of relative count values or frequency values that are generated by normalising of scaling the absolute count values or frequency values based on the baseline statistical values. In this embodiment, the relative count values or frequency values of the multi-dimensional data set represent or are indicative of the relative intensity of the text segment for each emotional category identifier based on the baseline statistical values for the entire text.
In one example, the method comprises calculating baseline statistical values for the entire text that represent the mean absolute count value per text segment per emotional category identifier and an associated count value standard deviation value per emotional category identifier, and generating relative segment emotional data profiles based on the calculated mean absolute counter values and/or associated standard deviation values per emotional category identifier. In one form, the relative segment emotional data profile comprises a multi-dimensional data set comprising relative count values that represent the absolute count value as a function of the number of standard deviations it is from the mean.
In another example, the method comprises calculating baseline statistical values for the entire text that represent the global frequency values per emotional category identifier and associated segment frequency value standard deviation per emotional category identifier calculated based on the global frequency values, or calculating mean segment frequency values per emotional category identifier and associated segment frequency standard deviation values per emotional category identifier calculated based on the mean segment frequency values; and generating relative segment emotional data profiles based on the calculated global frequency values and/or associated standard deviation values per emotional category identifier, or based on the mean segment frequency values and/or associated segment frequency standard deviation values per emotional category identifier. In one form, the relative segment emotional data profile comprises a multi-dimensional data set comprising relative frequency values that represent the absolute frequency value as a function of the number of standard deviations it is from the global frequency value or mean segment frequency value.
In an embodiment, the continuous emotion model comprises a 2-dimensional circular reference frame defined by a circular perimeter or boundary extending about a central origin, with each emotional category identifier represented by a segment or spoke of the circular reference frame to create a continuum of emotions. In one configuration, the segments are equal in size or the reference spokes are equi-spaced about the circular reference frame.
In an embodiment, the 2-dimensional circular reference frame comprises a set of orthogonal reference axes extending from the origin, one axis representing ‘arousal’ from activated or high arousal at one extreme at one point on the circular perimeter of the model to deactivated or low arousal at the other extreme on a diametrically opposed point on the circular perimeter of the model, and the other axis representing ‘pleasantness’ from pleasant at one extreme at one point on the circular perimeter of the model to unpleasant at the other extreme on a diametrically opposed point on the circular perimeter of the model.
In one configuration, the arousal axis is configured to divide the circular model into two ‘arousal’ halves, one representing emotions of activation and the other representing emotions of deactivation, and the pleasantness axis is configured to divide the circular model into two ‘pleasantness’ halves, one representing pleasant emotions and the other representing unpleasant emotions, the pleasantness halves being at an orthogonal orientation with respect to the arousal halves.
In an embodiment, the segments or spokes of emotional category identifiers are arranged about the circular reference frame according to their position or association with the arousal and pleasantness axes.
In one embodiment, the continuous emotion model comprises eight emotional category identifiers, each representing a spoke or an octant of the 2-dimensional circular reference frame.
In one embodiment, the method comprises mapping or casting the absolute or relative sentence emotional data profiles into the 2-dimensional circular reference frame.
In an embodiment, the method further comprises calculating or determining a sentiment value for each of the text segments. In one configuration, the sentiment value is a value representing or indicative of whether the text segment represents a positive or negative sentiment. In one configuration, the sentiment value represents whether the text segment is positive or negative, and/or the intensity of that sentiment relative to a scale. In one example, the sentiment value is a numerical value on a scale from a first threshold (e.g. −1.0) representing a very negative sentiment to a second threshold (e.g. +1.0) representing very positive sentiment. The sentiment value may be generated by any suitable sentiment analysis tool or engine. Examples of such sentiment analysis tools or engines include, but are not limited to, VADER (Valence Aware Dictionary and sEntiment Reasoner), Apache UIMA (part of OpenNLP), Weka, and Python NLTK (NLP toolkit).
In one configuration, the segment emotional data profiles are multi-dimensional data sets comprising absolute or relative intensity values for each emotional category identifier, and the method comprises mapping each data set as multiple two-dimensional vectors into the circular reference frame, a vector representing the intensity value of each emotional category identifier of a text segment. In one example, the method comprises mapping each intensity value of a segment emotional data profile as a distinct vector extending from the origin of the circular reference frame, the angular position of the vector aligning to the segment or spoke of its corresponding emotional category identifier and the length of the vector or distance from the origin relative to the circular perimeter of the model being a function of its intensity value.
In another configuration, the segment emotional data profiles are multi-dimensional data sets comprising absolute or relative intensity values for each emotional category identifier, and the method comprises mapping each data set as a single representative or resultant two-dimensional vector into the circular reference frame, the vector representing the overall emotional profile and intensity of the text segment. In one example, the method comprises calculating a resultant vector from the summation of the multiple two-dimensional vectors representing a segment emotional data profile or calculating a resultant vector for the segment emotional data profile based on the absolute or relative intensity values for each emotional category identifier and data indicative of the associated angular position of each segment or spoke in the circular reference frame representing the emotional category identifiers. In an embodiment, calculating a resultant vector for a text segment from its multi-dimensional data set is further based on a sentiment value generated or determined for the text segment.
In one embodiment, identifying text regions comprises identifying reference text segments that represent emotional transitions in text based on predefined emotional-change threshold or thresholds, and defining the text regions relative to those reference text segments.
In another embodiment, identifying text regions comprises defining all text segments as an initial set of text regions, and iteratively grouping adjacent text segments into a set of larger final text regions based on analysis of the segment emotional data profiles and/or other predefined rules.
In an embodiment, the predefined rules include configurable minimum and/or maximum threshold values defining the minimum and/or maximum length of the final text regions. In an embodiment, the minimum and/or maximum threshold values may be in the form of token or word counts. In another embodiment, the minimum and/or maximum threshold values may be token or word count values derived from or which are a function of the minimum and/or maximum playback time periods defined for the audio regions and a reading speed variable indicative of the average or nominal reading speed of an end user or a customised reading speed variable indicative of the reading speed of a particular end user. In such embodiments, the minimum and/or maximum threshold values are configurable to control the general frequency of audio regions and the associated frequency of the change in audio or music over the duration of the soundtrack.
In another embodiment, identifying text regions comprises:
In an embodiment, a neutral segment emotional data profile is determined based on a neutral segment threshold that is indicative of minimal or neutral emotion being present in the text segment. In one example, a text segment may be considered to have a neutral text segment emotional data profile if its absolute or relative intensity values across all emotional category identifiers are below respective absolute or relative intensity thresholds, such as zero.
In an embodiment, the size threshold may be a token count threshold or value representing a minimum number of tokens required to be a text region candidate. In another embodiment, the size threshold may be a word count threshold or value representing a minimum number of words required to be a text region candidate.
In an embodiment, the interim text region emotional data profiles are in the same format as the segment emotional data profiles. For example, the interim text region emotional data profiles may be in the form of multi-dimensional data sets comprising absolute or relative intensity values for each emotional category identifier.
In one configuration, generating or determining an interim text region emotional data profile for each of the text regions in the second set comprises electing the segment emotion data profile of the single text segment as the interim text region emotional data profile if the text region only contains a single text segment.
In another configuration, generating or determining an interim text region emotional data profile for each of the text regions in the second set comprises generating an interim text region emotional data profile that is based on averaging the segment emotional data profiles of all text segments in the text region.
In another configuration, generating or determining an interim text region emotional data profile for each of the text regions in the second set comprises selecting the prevailing or dominant segment emotional data profile of the text segments within the text region to represent the interim text region emotional data profile.
In another configuration, generating or determining an interim text region emotional data profile for each of the text regions in the second set comprises generating a representative interim text region emotional data profile based on statistical processing of the segment emotional data profiles of the text segments within the text region.
In another configuration, generating or determining an interim text region emotional data profile for each of the text regions in the second set comprises combining or summing all the segment emotional data profiles of all the text segments in a text region to generate a single interim text region emotional data profile. In one example, the interim text region emotional data profile may be in the form of a multi-dimensional data set comprising absolute or relative intensity values for each emotional category identifier that are calculated from summing the respective intensity values of each emotional category identifier from all of the multi-dimensional segment emotional data profiles in the text region.
In an embodiment, the interim text region emotional data profile is further processed by applying a masking or weighting function to generate a masked interim text region emotional data profile for the text region. By way of example, the masking or weighting function may be configured to determine the highest aggregated sub-set of adjacent intensity values in the multi-dimensional data set to represent the masked interim text region emotional data profile. The sub-set may be determined from a pre-configured number of emotional category identifiers. In one example, for an 8-dimensional data set, the highest aggregated 2 or 3 adjacent intensity values are selected to represent the masked data profile, with the remaining intensity values in the interim data profile being zeroed. In another example, the highest intensity value may be selected to represent the masked date profile, with the remaining intensity values in the interim data profile being zeroed.
In an embodiment, analysing the interim text region emotional data profiles of the second set of text regions and further grouping adjacent text regions having an emotional association based on an emotional-transition threshold to generate a final set of text regions comprises:
In an embodiment, the emotional transition thresholds are based on vector movement or distance thresholds. In one configuration, the emotional-transition threshold is based on the change in emotional intensity between adjacent two-dimensional vectors represented by the distance of the vectors from the origin. In another configuration, the emotional-transition threshold is based on the change in emotion between adjacent two-dimensional vectors represented by the change in angle or direction of the vectors within the circular reference frame. In another configuration, the emotional-transition threshold is based on a function of the change in emotional intensity and/or change in emotion in accordance with the change in distance and/or angle or direction of the vectors from adjacent interim text regions. In one form, the function may dictate a higher weighting on distance change relative to direction change, or vice versa.
In an embodiment, the analysis of interim text region emotional data profiles commences progressively from the start of the text onwards and iteratively accumulates interim text regions having an emotional association until an emotional transition is identified, and the preceding interim text regions before the emotional transition are grouped as a final text region for the set of final text regions, and then analysis then repeats through the remaining interim text regions to determine all final text regions.
In one embodiment, generating or determining a text region emotional data profile for each of the text regions in the final set comprises any one or more of the following:
In an embodiment, identifying text regions further comprises adjusting the start and/or end of one or more of the text regions in the final set to align with predetermined reference points within the text and according to predetermined alignment rules. In one example, the predetermined reference points may comprise data indicative of paragraph or chapter boundaries, and the start and/or end of one or more of the text regions may be adjusted to align with the closest paragraph or chapter boundary based on predetermined alignment rules. In one configuration, the re-alignment of the start and/or end of the text regions may comprise re-allocating one or more sentences of the text region to an adjacent text region or obtaining one or more sentences into the text region from an adjacent text region.
In one embodiment, the step of processing an accessible audio database or databases comprising audio data files and associated audio profile information to select an audio data file for playback in each audio region comprises translating the region emotional profiles of the text regions into a format or data set that is comparable to the audio profile information of the audio data files in the audio database or databases. In another embodiment, the method comprises translating the audio profile information of the audio data files is into a format or data set that is comparable to the region emotional profiles. In another embodiment, the method comprises translating both the region emotional profiles and audio profile information into a common format or data set so they can be compared for a match. In another embodiment, the method comprises processing an accessible audio database comprising audio data files having associated audio profile information that is in the same format or is at least partly directly comparable to the format of the region emotional profiles. In one such embodiment, the audio data files of the audio database comprise audio profile information that comprises an emotional data profile determined and/or defined according to or based on the continuous emotional model.
In an embodiment, the method further comprises selecting an audio data file from the database for an audio region based on one or more configurable music-selection filters. By way of example, the music-selection filters may comprise any one or more of the following:
In an embodiment, the audio database comprises audio data files having associated emotional data profiles that are generated based on a profiling tool that is configured to receive one or more profile dots selected in a graphical user interface displaying a graphical representation of the continuous emotion model by a listener of the audio file.
In an embodiment, the method further comprises applying semantic analysis to the processed text and/or identified text regions based on one or more thematic category identifiers to generate segment thematic profiles for the text segments and/or region thematic profiles for the identified text regions. In this embodiment, the semantic processing may be based on thematic lexicons representing each of the thematic category identifiers.
In an embodiment, the method comprises generating, for each text segment, a segment emotional and thematic data profile based on the continuous emotion model and the one or more thematic category identifiers.
In an embodiment, the method comprises identifying a series of text regions each comprising a text segment or plurality of text segments having an emotional association and/or thematic association based on processing the segment emotional and thematic data profiles with respect to predefined rules.
In an embodiment, the method comprises generating, for each identified text region, a region emotional and thematic data profile based on the emotional and thematic profiles of the text segments within the text region.
In an embodiment, the method further comprises processing the identified text regions to generate a thematic data profile for each region based on one or more thematic category identifiers, and generating a region emotional and thematic data profile for each text region and its associated audio region.
In an embodiment, the method comprises processing the accessible audio database or databases to select an audio data file for playback in each audio region based at least partly on the audio profile information of an audio data file corresponding or matching closely to the region emotional and thematic profile of the audio region.
In an embodiment, the method comprises generating further audio data for each audio region defining any one or more of the following additional audio playback effects or settings:
In an embodiment, the start and stop positions are indicative of a word in the text at which the audio region is to commence and cease playback respectively. For example, each audio region may be defined by a start text position indicative of the word in the text at which the audio region is to commence playback, and a stop text position indicative of the word in the text at which the audio region is to cease playback.
In one embodiment, the soundtrack comprises a soundtrack timeline along which the one or more audio regions are configured for synchronised playback with corresponding text regions in the text as it is being read, each audio region having a position along the soundtrack timeline that is dynamically adjustable to maintain synchronization of the audio regions of the soundtrack with their respective text regions in the text as they are being read based on a reading speed variable indicative of the reader's reading speed and/or a reading position variable indicative of the reader's reading position in the text.
In one embodiment, the start and stop positions defining each audio region correspond to start and stop text positions comprising data indicative of a position or location in the text such as, but not limited to, an index value, word count value, character count value, page number, chapter number, paragraph number, positional reference scheme identifier (e.g. CFI), or the like.
In another embodiment, the start and stop positions defining each audio region correspond to start and stop playback time values that correspond to the estimated time at which a user will read the corresponding start and stop positions in the text (e.g. start and stop words defining the start and end of an audio region). The timeline for the time values may be based on a nominal or average reading speed, and then the time values may be adjusted based on the end user's specific reading speed.
In an embodiment, the method comprises generating a soundtrack data file or files comprising the data indicative of the generated audio regions comprising the start text position and stop text position, and audio data representing the audio file or files selected for playback in each audio region and any associated configured audio playback effect data for the audio region. In an embodiment, the soundtrack data file further comprises data representing the region emotional profile generated for each audio region.
In an embodiment, the audio data may comprise the audio files or links or file path information to the audio files.
In an embodiment, the audio regions of the soundtrack are music regions intended to play background music. In one embodiment, the soundtrack comprises a single layer or type of music audio regions configured for continuous playback such that each audio region plays sequentially, and optionally comprises transitional playback effects between adjacent audio regions such as cross-fades and/or fade-in/out effects. In another embodiment, the soundtrack comprises a plurality of layers of different types of audio regions, at least one of which is a music layer of music audio regions and the method is applied to generate the music audio regions.
In one embodiment, the method may be applied to the entire text to generate a soundtrack of a series of music regions for the entire text. In another embodiment, the method may be applied to a portion or portions of an entire text, to create soundtrack or music regions specifically for one or more desired portions of the text.
In one embodiment, the soundtrack may be continuous or substantially continuous with no or minimal playback gap between adjacent audio music regions. In alternative embodiments, the soundtrack may be configured with muted portions or gaps between adjacent audio music regions, for example based on predetermined rules.
In an embodiment, the soundtrack comprises a single layer of music audio regions configured for continuous playback such that each audio region transitions to the next audio region taking into account musical key or tonality changes that are harmonically compatible among each other.
In an embodiment, the method may be configured to generate pre-rendered soundtracks ready for playback. In another embodiment, the method may be configured to operate on demand to generate soundtracks for text in real-time.
In an embodiment, the method may be operable to generate a soundtrack for text of any nature, whether books, publications, articles, professional documents, marketing materials, internet literature or websites, or the like.
In a second aspect, the invention broadly consists in a method of automatically generating a digital soundtrack intended for synchronised playback with the reading of an associated text, the method executed by a processing device or devices having associated memory, the method comprising:
In a third aspect, the invention broadly consists in a method of automatically generating a digital soundtrack intended for synchronised playback with the reading of an associated text, the method executed by a processing device or devices having associated memory, the method comprising:
In a fourth aspect, the invention broadly consists in a method of automatically generating a digital soundtrack intended for synchronised playback with the reading of an associated text, the method executed by a processing device or devices having associated memory, the method comprising:
In a fifth aspect, the present invention broadly consists in a method of automatically generating a text emotional profile map for text, the method executed by a processing device or devices having associated memory, the method comprising:
In an embodiment, the method further comprises identifying or segmenting the processed text data into the series of text segments prior to or during the semantic analysis.
In one embodiment, the method further comprises processing the emotional data profiles of the text segments to identify emotion-transition points in the text and generating representative data for the text emotional profile map.
In one embodiment, the method further comprises identifying a series of text regions comprising a text segment or multiple adjacent text segments having an emotional association by processing the segment emotional data profiles of the text segments with respect to predefined rules, and generating representative data for the text emotional profile map.
In a sixth aspect, the invention broadly consists in a method of generating a digital soundtrack intended for synchronised playback with the reading of an associated text, the soundtrack comprising one or more audio regions configured for playback during corresponding text regions of the text, the method executed by a processing device or devices having associated memory, the method comprising:
The second-sixth aspects of the invention may comprises any one or more of the features mentioned in respect of the first aspect of the invention.
In a seventh aspect, the invention broadly consists in a method of delivering a synchronised soundtrack for playback with an associated book, the method comprising:
In an embodiment, the method is implemented by a processing device or devices having associated memory.
In one configuration, the input data indicative of or identifying the book the user is reading is received via a user operable graphical user interface. In another configuration, the input data indicative of or identifying the book the user is reading is received via voice commands processed by a device such as an AI assistant or device. In another configuration, the input data indicative of or identifying the book is in the form of a scanned machine-readable code (e.g. barcode or QR code) associated with or printed on the book. In another configuration, the input data indicative of or identifying the book is a digital image (e.g. photo) captured of the cover or other portion of the book, and wherein the digital image is image processed to identify the book.
In one embodiment, the book may be a printed book. In another embodiment, the book may be an electronic book, e.g. an e-book.
In an embodiment, the method comprises retrieving a pre-rendered soundtrack for the book from a database. In one configuration, the pre-rendered soundtrack is automatically generated or created by any of the previous aspects of the invention above.
In an embodiment, the method comprises automatically generating a soundtrack for the book in real-time using any of the previous aspects of the invention above. In some configurations, the method comprises retrieving previously prepared text emotional profile map data and/or audio definition data generated for the book.
In an embodiment, the method comprises retrieving electronic text from one or more text sources that corresponds to the book the user is reading based on the input data, and automatically generating a soundtrack for the book in real-time using any of the previous aspects of the invention above.
In an embodiment, the method further comprises receiving arbitrary or periodic reading position input data relating to the reading position of the user in their book. In one configuration, the reading position data is provided via an operable graphical user interface (e.g. user inputting data indicative of the page or chapter they are reading). In another configuration, the reading position data is received via voice commands processed by a device such as an AI assistant or device.
In an embodiment, the method comprises controlling the playback position of the soundtrack based on the reading position data.
In an embodiment, the method comprises controlling the playback of the soundtrack based on audio playback control input received via user operation of the operable graphical user interface or voice commands.
In an embodiment, the playback of the soundtrack is synchronised to the user's reading position in the book based on the reading position data and/or a reading speed variable indicative of the reading speed of the user. The reading speed variable may be manually selected or entered or determined from a reading speed test, or may be automatically calculated based on the elapsed time between arbitrary or periodic reading position input data updates.
In one configuration, the method is implemented by a system comprising: a first electronic user device or a first application program configured to receiving input data indicative of or identifying a book a user is reading;
In an embodiment, the first and second electronic user devices or first and second application programs are in data communication with the remote server and optionally also with each other. In some embodiments, the data communication between the user devices or applications programs and the remote server is over the internet or other data network.
The seventh aspect may have any one or more features mentioned in respect of the first-sixth aspects of the invention.
In an eighth aspect, the invention broadly consists in a system comprising a processor or processors configured to implement any one or more of the methods of the aspects of the invention above.
In a ninth aspect, the invention broadly consists in a non-transitory computer-readable medium having stored thereon computer readable instructions that, when executed on a processing device or devices, cause the processing device to perform any one or more of the methods of the aspects of the invention above.
In a tenth aspect, the invention broadly consists in a soundtrack or soundtrack data generated by the method of any one or more of the previous aspects of the invention.
The eighth-tenth aspects of the invention may have any one or more of the features mentioned in respect of the first-seventh aspects of the invention.
The term “token” as used in this specification and claims is intended to mean, unless the context suggests otherwise, a configurable or definable single text element concept or set of text element concepts such as, but not limited to, a word, a word concept represented typically by two or three adjacent words (e.g. ‘car park’ is a two word concept representing a token), and/or punctuation.
The term “soundtrack” as used in this specification and claims is intended to mean, unless the context suggests otherwise, a soundtrack configured or intended for synchronised playback while reading text, including by way of example only, but not limited to, the type described in WO2013/015694 which comprises multiple audio regions that are configured for playback at predetermined reading positions or regions within the electronic media content, and where the playback timing of the soundtrack is synchronized with the user based on estimated or data indicative of their reading position and/or reading speed.
The phrases “hardware system” or “electronic user device” as used in this specification and claims is intended to mean, unless the context suggests otherwise, any form of computing, processing or programmable electronic device, platform or system typically including a processor and memory and including, but not limited to, portable or non-portable consumer electronic devices such as smart phones, cell phones, tablets, smart watches, e-Reader or e-book devices, laptops, and notebooks, gaming machines or consoles, server, smart televisions, Artificial Intelligence (AI) assistant devices or AI computers, general purpose computers such as desktop computers, specific purpose computers, wearable computers or computing devices such as head-mounted displays or eyewear or contact lens or the like, and is intended to include one or more linked or communicating hardware or processing devices or systems which work together.
The phrases “text position” or “reading position identifier” as used in this specification and claims, unless the context suggests otherwise, is intended to refer to a position or location within the text such as typically a line or word or character of the electronic text or any other arbitrary selected position with the electronic text, and the position may be referenced or identified in any suitable manner appropriate to the text (whether printed or electronic), whether indirectly or directly, including but not limited to: an index value, numeric or otherwise, corresponding to the index position of a word or character in the text for text that has been indexed, including a word number, or character number for example; or any other positional reference scheme for identifying locations within electronic text such as text position coordinates, Canonical Fragment Identifier (CFI) values in the context of ePub or other electronic documents or content, or any other text positional reference scheme.
The term “network” as used in this specification and claims is intended to mean, unless the context suggests otherwise, any data network or data communication channel or combination of networks or channels over which a user device may send and/or receive data to another device, whether a remote server or servers or other user devices, including, but not limited to, the internet, an intranet or extranet, a Local Area Network (LAN), and/or a Wireless Local Area Network (WLAN), whether accessed over a wired or wireless medium or a combination of these.
The phrase “electronic media content” as used in this specification and claims is intended to mean, unless the context suggests otherwise, any electronic media content comprising electronic text, whether alone or in combination with static or animated imagery or graphics, the electronic media content being in any format or file-type capable of being rendered on an electronic display, and including, but not limited to, an electronic book or e-book, a webpage, digital video, or slide show presentation.
The term “comprising” as used in this specification and claims means “consisting at least in part of”. When interpreting each statement in this specification and claims that includes the term “comprising”, features other than that or those prefaced by the term may also be present. Related terms such as “comprise” and “comprises” are to be interpreted in the same manner.
As used herein the term “and/or” means “and” or “or”, or both.
As used herein “(s)” following a noun means the plural and/or singular forms of the noun.
The invention consists in the foregoing and also envisages constructions of which the following gives examples only.
In the following description, specific details are given to provide a thorough understanding of the embodiments. However, it will be understood by one of ordinary skill in the art that the embodiments may be practiced without these specific details. For example, software modules, functions, circuits, etc., may be shown in block diagrams in order not to obscure the embodiments in unnecessary detail. In other instances, well-known modules, structures and techniques may not be shown in detail in order not to obscure the embodiments.
Also, it is noted that the embodiments may be described as a process that is depicted as a flowchart, a flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be rearranged. A process is terminated when its operations are completed. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc., in a computer program. When a process corresponds to a function, its termination corresponds to a return of the function to the calling function or a main function.
Embodiments of the invention will be described by way of example only and with reference to the drawings, in which:
The automatic creation systems and methods of this invention may be utilised to create or at least partially create a soundtrack for a user to play and listen to while reading an associated text, whether electronic text displayed on a display device or printed text, such as a paperback book. The soundtrack may be a single layer of music audio or files configured to playback while the user reads the text, or a multi-layered soundtrack of different types of sound layers such as, but not limited to, a music layer, ambience layer, sound effects layer, voice or narration layer or the like. In a multi-layered soundtrack, the sound layers playback concurrently. The playback of the audio files defined by the soundtrack is triggered to synchronise with events and/or emotions being conveyed in the text to enhance the reading experience. The automatic creation systems and methods is primarily configured to create a soundtrack of music audio regions or the music layer of a multi-layered soundtrack.
By way of example only, the automatic creation systems and methods of this invention may be applied to a multi-layered soundtrack of the type described in WO2013/015694 referred to above. The following paragraphs describe the configuration and playback of such multi-layered soundtracks to provide context for the description of the automatic creation systems and methods. It will be appreciated that the automatic creation system and methods are not limited in their application to such soundtracks, and could be applied to other soundtracks, whether single or multi-layered, and regardless of how the playback of the soundtrack is triggered or synchronised with the user's reading of the text, whether electronic text or printed text.
The multi-layered soundtracks of WO2013/015694 may be applied to electronic text in any format or file-type, including but not limited to those associated with the following file extensions: aeh, djvu, epub, fb2, html, xhtml, azw, lit, prc, mobi, exe, pdb, txt, pdb, pdf, ps, rgo, pdb, tr2, tr3, wol, rtf, doc, docx, asc, lit, wri, odt, text, pwi, rtx, sdw, strings, utf8, utf16, wp*, wpw, wri, wtx, asc, csv, lwp, dtp, indd, pmd, ppp, pub, fm, and any type of mark-up language types, including but not limited to SGML, HTML, XHTML, HTMLS, XML, and LaTex. The electronic text may be in the form of any electronic media content whether comprising text only or text in combination with imagery or graphics, whether static or moving (e.g. video or other animations). By way of example, but not limited to, the electronic media content may be in the form of an e-book, a webpage, comic or any other electronic media content format.
The soundtrack is customised to the electronic media content and in particular customized to the content of the electronic text to enhance the reading experience for a reader of the electronic text. The soundtrack may comprise audio tracks of different types and may be configured to play concurrently, sequentially, or both while the user is reading the electronic text. Playback of the soundtrack is synchronized with the reading speed (e.g. words per minute or scrolling speed or some other metric) of the user. In one example, the electronic text may be a fiction or non-fiction book, and the soundtrack may comprise a combination of different audio types, including ambient noise, sound effects, and background music that may be configured to play back at a specific point or over specific portions of the electronic text in a synchronized manner as the user is reading those portions of the electronic text.
The soundtrack comprises multiple audio regions that are designated to playback during designated text portions of the electronic text. Each audio region comprises audio data defining the audio track to playback and audio properties defining the desired nature of the playback. The audio data specifies a start text position in the electronic text at which the audio region is to commence playback and a stop text position at which the audio region is to cease playback. In one embodiment, the electronic text is designated a numerical text index based on the number or words or characters in the electronic text, and the start and stop text positions are defined by corresponding start and stop index values respectively. In one example, the indexing of the text is based on the number of words in the electronic text such that each word has a unique index value representing its position in the electronic text. The index values for each word may correspond to their word number or word count in the electronic text. In this example, the audio regions playback between start and stop index values representing the selected start and stop words in the electronic text for that audio region.
When the user is reading the electronic text, a reading position counter or identifier is maintained which corresponds to text position in the electronic text at which the user is estimated as currently reading. The reading position counter increments or changes at a rate at least partially based on the user's reading speed. This reading position counter allows the playback of the audio regions of the soundtrack to be synchronized with the user's reading speed such that playback of an audio region is triggered when the reading position counter matches the start index value of the start word for the audio region, and likewise ceases when the reading position counter matches the stop index value of the stop word of the audio region.
In alternative embodiments, other reading position referencing scheme may be employed in contrast to word or character based indexing. In other embodiments, the start and stop positions of each audio region may be defined by any other document or text position referencing scheme or system. One such example is the ePub canonical fragment identifier (CFI). In such an example, the start and stop positions in the audio region will be defined by the CFI parameter or ranges, and a reading position variable would be maintained in the CFI format which changes or increment based on the user's reading speed to trigger the playback of the audio regions of the soundtrack when their CFI value match the reading position variable.
In this example, the soundtrack comprises multiple audio regions and playback of two or more regions may partially or entirely overlap such that two or more audio regions can playback concurrently if desired. The soundtrack is provided with multiple channels for playback and overlapping audio regions are designated different channels in the set of available channels to allow for concurrent playback. This enables different audio tracks, such as sound effects, ambient noise, or background music to be concurrently played and mixed together to provide an overall soundtrack that enhances the user's reading experience for that particular electronic text. Typically, the audio data for each audio region includes an audio type, such as “music”, “ambience”, or “effect”. The selected audio type is intended to define the nature of the audio region. For example, if an audio region is for background music, then the audio type selected will be “music”. If the audio region is a sound effect, then the “effect” audio type is selected. If the audio region is intended to be an ambient sound or noise, then the “ambience” audio type is selected.
By way of example,
Referring to
As noted above, the automatic creation system and methods will be described by way of example only in the context of a soundtrack of the type described in WO2013/015694 which may comprise a single or multiple layers of audio regions of different types. In this embodiment, the automatic creation system and method is configured to automatically create at least the music layer or music audio regions of the soundtrack. The ultimate soundtrack may either simply comprise the single layer of music audio regions or may be combined with one or more additional different layers of audio regions such as, but not limited to, ambience layers or sound effect layers or narration layers.
Referring to
Referring to
In this embodiment, the system 24 comprises one or more natural language processing (NLP) engines or modules 30 that are configured to process the incoming raw text data representing the text 26 to generate processed text data 31 ready for semantic analysis. The processed text data 31 may for example identify the individual sentences and tokens within those sentences in the raw text data. As will be explained, the tokenization parameters may be customised or controlled to determine what constitutes a distinct token, but typically the tokens at least represent the distinct individual words and/or word concepts in the text, and optionally also punctuation.
The processed text data 31 is received and processed by one or more semantic analysis modules or engines 32 that are configured to generate segment emotional data profiles 33 for individual text segments of the text. In this embodiment to be described by way of example only, the text is segmented into text segments representing the individual sentences of the text or a series of text segments is otherwise identified. As such, the segment emotional data profiles correspond to sentence emotional data profiles in this embodiment. However, it will be appreciated that the automatic creation system and method may also be applied based on alternative segmenting schemes such that the granularity or resolution of the segmenting can be altered. For example, alternative embodiments include, but are not limited to, segmenting into text segments according to a predetermined number of words or sentences, or segmenting based on paragraphs or chapter boundaries such that text segments represent respective paragraphs or chapters of text. In the embodiment described below, the segmenting and processing is at a sentence level and as such the segment emotional data profiles are referred to as sentence emotional data profiles, but the same principles apply should a different segmenting scheme be used in alternative embodiments. For example, if segmenting into text segments representing chapters, then the segment emotional data profile would represent or correspond the chapter emotional data profile. For clarity of explanation, the embodiment below is described in the context of sentence segmenting and processing, but it will be appreciated that the phrase ‘sentence emotional data profile’ is an example of a segment emotional data profile in the context of an embodiment in which the text segments are represented by individual sentences.
The sentence emotional data profiles 33 (example of segment emotional data profiles) are received and analysed by the audio region definition engine 34 to identify text region candidates for associated audio regions of the soundtrack. In this embodiment, the audio region definition engine 34 is configured to identify text regions of multiple adjacent sentences (example of text segments) having an emotional association by processing the sentence emotional data profiles 33 with respect to predefined rules. The audio region definition engine 34 is then configured to generate audio region data 35 defining the audio regions corresponding to the identified text regions. The audio region data 35 comprises data indicative of a start text position indicative of the word in the text at which the audio region is to commence playback, a stop text position indicative of the word in the text at which the audio region is to cease playback, and a generated region emotional profile based on the sentence emotional data profiles of the sentences within its associated text region.
A music selection or matching engine or engines 36 are then provided that receive the audio region data 35 from the audio region definition engine. The music selection or matching engine processes the audio region data and audio profile information of audio files from one or more audio databases to either select or identify audio file candidates that correspond or are suitable for playback in the audio regions. The matching or selection is based on identifying a correspondence or match between the emotional profile of the audio region and the emotional profile of the audio files, such that the audio enhances or amplifies the emotion felt by the reader when reading the text during synchronised playback of the soundtrack with the reading of the text.
A soundtrack generation engine 38 is provided that receives the audio region data and selected or candidate audio data for each audio region, and generates a soundtrack data file or files representing the automatically created soundtrack 28 for playback. In one configuration, the soundtrack data file or files are provided as separate files for playback by a soundtrack playback engine or device. In another configuration, the soundtrack data file or files are packaged or integrated with electronic text representing the associated text 26 as a multi-media content file for display (text) and playback (soundtrack audio) on a suitable electronic user device or playback system. The audio files may be integrated with the soundtrack data file or files, or alternatively the soundtrack data file or files may contain links or file path information or source information to at least some or all of the audio files for later retrieval (download or streaming) from an audio file source, library or service for playback.
An embodiment of each of the main modules of the automatic creation system 24 will now be explained in further detail by way of example only in the context of this sentence-level segmenting embodiment, but which also apply and could be adapted to alternative segmenting schemes as noted above.
Referring to
In one configuration, the NLP engine is configured to apply a series of natural language processing libraries to the raw text such as, but not limited to, those provided by the Apache Software Foundation (ASF). In this embodiment, the NLP engine is configured to use two sets of functionality from such libraries. Firstly, the NLP libraries are used to determine where individual sentences begin and end using Sentence Boundary disambiguation. The NLP engine is then configured to tokenize the text into individual tokens within each sentence based on tokenization control parameters as noted above. Secondly, the NLP libraries are used to apply Part of Speech (POS) tagging to the text. This POS tagging is configured to identify and tag syntactic components for the tokens in a sentence such as, but not limited to, verbs, nouns, adjectives, and prepositions.
The output of the NLP engine is processed text data representing the text that identifies the individual sentences in the text, including their start and end words, and identifies the tokens representing individual words within each sentence. The tokens may also be tagged with their associated POS tag data identifying their syntactic characteristic. In this embodiment, if a token has multiple or no syntactic characteristic, a default POS tag representing ‘unknown’, although this is not essential.
By way of example only,
The semantic engine or engines 32 of the automatic creation system 24 receive and process the processed text data 31 from the NLP engine 30 to generate sentence emotional data profiles for each individual sentence in the text. The sentences are analysed and profiled based on a continuous emotion model that is defined by a predetermined number of emotional category identifiers, as will be explained further below.
Referring to
In this embodiment, the continuous emotion model 50 comprises a 2-dimensional circular reference frame defined by a circular perimeter or boundary 52 extending about a central origin 54, with each emotional category identifier E1-E8 represented by a segment or spoke of the circular reference frame to create a continuum of emotions. In this embodiment, the segments are equal in size or the reference spokes are equi-spaced about the circular reference frame.
In this embodiment, the 2-dimensional circular reference frame of the model 50 comprises a set of two main orthogonal reference axes 56,58 extending from the origin 54 that represent arousal (y-axis 56) and pleasantness (x-axis 58) dimensions. The y-axis 56 represents the ‘arousal’ dimension and traverses from activated or high arousal/energy at or toward one extreme or end of the y-axis (e.g. at one point on the circular perimeter 52 of the model) to deactivated or low arousal/energy at or toward the other extreme or end of the y-axis (e.g. a diametrically opposed point on the circular perimeter of the model). The x-axis 58 represents the ‘pleasantness’ dimension and traverses from pleasant or happy at or toward one extreme or end of the x-axis (e.g. at one point on the circular perimeter 52 of the model) to unpleasant or unhappy at the other extreme or end of the x-axis (e.g. a diametrically opposed point on the circular perimeter of the model 50). The arousal axis 56 is configured to divide the circular model 50 into two ‘arousal’ halves, one representing emotions of activation (positive/+y) and the other representing emotions of deactivation (negative/−y), and the pleasantness axis 58 is configured to divide the circular model into two ‘pleasantness’ halves, one representing pleasant emotions (positive/+x) and the other representing unpleasant emotions (negative/−x), the pleasantness halves being at an orthogonal orientation with respect to the arousal halves.
The segments or spokes associated with the emotional category identifiers E1-E8 are arranged about the circular reference frame according to their position or association with the arousal and pleasantness axes 56,58. In this embodiment, each of the eight emotional category identifiers E1-E8 are represented by a spoke or octant of the 2-dimensional circular reference frame.
In this embodiment, emotional category identifiers E1, E3, E5, E7 are aligned with the main arousal and pleasantness axes, and emotional category identifiers E2, E4, E6, E8 are situated respectively at 45° between the main x and y-axes, and represent a combination of the emotions from the main axes as demonstrated in the following table:
In this embodiment the continuous emotion model 50 is defined by eight emotional category identifiers, but it will be appreciated that the number of emotional category identifiers may be altered if desired. By way of example only, a reduced number such as four emotional category identifiers may be used (e.g. those corresponding to the main arousal and pleasantness axes), or a higher number such as 16 emotional category identifiers may be used should the model be segmented to a higher resolution, or some other suitable number.
The continuous emotion model 50 creates a continuum between the emotions. Any angular position about the circle represents an emotional state that is a function or combination the emotions represented by the one or more emotional category identifiers (spokes) associated with that angular position. The distance from the origin to the outside radius of the circle is taken to indicate an intensity of the emotion. Points mapped into the model that are closer to the origin of this circle represent a low value or intensity of the indicated emotion. Points closer to the radius or perimeter of the circle represent higher or a more intense value of the emotion. In summary, if emotional points or vectors are mapped into the model or reference frame, their angular position relative to the axes represents their emotional state in the continuum defined by the emotional category identifiers, and their distance from the origin or the magnitude of the vector represents the intensity of that emotion.
In this embodiment, the continuous emotion model used by the semantic analysis engine 32 is further defined by or has associated lexicon data representing a set of lexicons or indexes for the emotional category identifiers. For example, a lexicon or index is defined for each emotional category identifier E1-E8. Each lexicon comprises data indicative of a list of words and/or word concepts that are categorised or determined as being associated with the emotional category identifier associated with the lexicon. These lexicons are lists of words and/or word concepts that have been determined as belonging to one or more emotional category E1-E8. By way of example, these lists are typically between 100 to 500 words and word concepts each. The lists of words and word concepts include verb conjugations, plurals/singulars, adjectives and adverbs where appropriate.
In one configuration, the lexicon data may be fixed or static such that the lists in each lexicon are fixed. In an alternative configuration, the lexicon data is dynamic such that it may be modified or updated to thereby selectively modify or adjust the list in each lexicon. In one form, the words and/or word concepts in each lexicon are mutually exclusive such that they only appear in one lexicon. In an alternative form, the words and/or word concepts of each lexicon are not mutually exclusive in that they may appear in more than one lexicon. In this embodiment, at least some words and/or word concepts may be shared between two or more lexicons.
Referring to
In one embodiment, each lexicon may comprise a list of words or word concepts associated with the emotional category identifier to which the lexicon defines. In another configuration, each lexicon may comprise a list of words or word concepts, and each word or word concept in the lexicon may configured with one or more lexicon attribute values or identifiers. In an embodiment, each word or word concept may have a lexicon attribute value representing a weighting value or factor that represents how strongly the word or word concept reflects the emotion that the lexicon represents. By way of example, the weighting factor may be set between a value of 0 and 1, but it will be appreciated that any scale may be used. In such embodiments, the weighting value associated with the word or word concept may then optionally be used during the semantic analysis to determine the emotional profile of the text, as will be discussed further below. Additionally, each word or word concept may have a lexicon attribute value representing a syntactic characteristic or identifier associated with the word or word concept. For example, the syntactic identifier may represent the part of speech associated with the word, such as whether it is a noun, verb, adjective, adverb, or other parts of speech, or in the case of a word concept whether it is an idiom or short phrase for example. The syntactic characteristic identifier allows the lexicons to distinguish between the use of words or word concepts being used in different syntactically ways in the speech. In some cases only some syntactic uses of a word may be included in the lexicon, and others included, or if two or more syntactic uses of the same word are included in the lexicon, each is distinct any may have its own distinct weighting factor or value applied. For example, noun-usage of a word might be given a higher weighting than its verb-usage, or vice versa, or they may be given the same weighting, depending on how the lexicon is configured.
Referring to
In this embodiment, the semantic analysis engine 32 is configured to parse each sentence in the text and generate a respective absolute sentence emotional data profile that represents for each emotional category identifier the absolute count or frequency of words in the sentence corresponding to the associated lexicon. For example, when processing a sentence, the semantic engine is configured to provide a counter for each emotional category identifier. The semantic engine 32 then scans through each token or just tokens representing words or word concepts in the sentence. If a scanned token belongs to one or more emotional categories E1-E8 (i.e. the token represents a word or word concept that matches or corresponds to one or more of the associated lexicons), then the associated counters for those emotional categories are incremented in the sentence emotional data profile. There may be a default counter value increment (e.g. 1) if a token matches a lexicon word or word concept, or if the lexicons are provided with a weighting value for each word or word concept, then the weighting value may determine the counter increment value (e.g. if the word has a weighting value of 0.5 on a scale of 0 to 1, then the counter will be incremented by 0.5 for example or the default counter value may be modified by some multiplier or function based on the weighting value.
Once a sentence has been processed, the sentence emotional data profile for the sentence is generated in the form of a multi-dimensional data set or data array comprising a plurality of count values, one for each emotional category identifier. Each count value corresponding to the number of words or word concepts in the sentence matching to the lexicon associated with an emotional category identifier. In this embodiment, the semantic engine 32 is configured to count the total number of tokens scanned in the sentence and can generate a sentence emotional data profile comprising a data array of a plurality of frequency values, one for each emotional category identifier. In this embodiment the frequency values are sentence frequency values calculated based on dividing the absolute count values for the sentence by the total number of tokens in the sentence. The frequency values may be expressed as percentages or fractional values. This process is repeated for each sentence to generate a sentence emotional profile for each sentence. As will be appreciated, the count values or frequency values represent a score value for each emotional category identifier in the emotional profile.
In this embodiment, the continuous emotional model 50 is defined by eight emotional category identifiers E1-E8. As such, each sentence emotional data profile is an eight value data set or data array comprising eight count or frequency values, and each count or frequency value corresponds to a respective emotional category identifier. These multi-dimensional data arrays of the sentence emotional data profiles are multi-dimensional representations of the emotional profile of the sentences, with each emotional category identifier E1-E8 representing a distinct dimension within the continuous emotion model 50. The absolute count values or frequency values of the multi-dimensional data set represent or are indicative of the absolute intensity of the sentence for each emotional category identifier.
In this embodiment, the semantic engine 32 is configured to analyse the entire text to generate baseline statistical values relating to each emotional category identifier E1-E8. The nature of the baseline statistical values calculated may be selected based on the type of absolute sentence emotional data profiles that are generated, for example whether they are generated with count values or frequency values. The baseline statistical values generated are intended to provide a measure of the global or average intensity of each of the emotional categories E1-E8 of the continuous emotion model 50 across the entire text. The purpose of calculating or determining baseline or global data relating to the text is to enable the absolute sentence emotional data profiles to be normalised or scaled based on or as a function of the baseline statistical values to generate relative sentence emotional data profiles. In some embodiments and/or applications, the relative sentence emotional data profiles may be more reflective of the intensities of the emotions expressed in a sentence in the context of the global emotional intensities of the entire text. In some embodiments and/or applications, relative emotional data profiles lend themselves more readily to being able to identify and map true emotional transitions in the text as each sentence is compared to a ‘global’ or ‘overarching’ set represented by the text as a whole being the statistical background. In some applications, relative emotional data profiles enable analysis to be conducted in respect of emotional changes relative to a mean, which can take into account the style of the author in the context of text representing a book for example. Various example configurations are explained below for generating relative sentence emotional data profiles.
In this embodiment, the baseline statistical values are calculated for the entire text, and those global values are then used to convert the absolute sentence emotional data profiles into relative ones based on the global values. It will be appreciated that in alternative configurations the baseline statistical values may be calculated at a higher resolution, such as per paragraph or per chapter (in the context of a text in a book), and the relative sentence emotional data profiles can be calculated based on their associated paragraph or chapter baseline statistical values for example.
In a first example configuration, the semantic engine 32 is configured to calculate baseline statistical values for the entire text that represent the mean absolute count value per sentence per emotional category identifier and an associated count value standard deviation value per emotional category identifier. The mean absolute count value for an emotional category is calculated based on summing all the absolute count values for the category from the sentence emotional data profiles, and dividing the total by the number of sentences.
Once the baseline values are calculated, the semantic engine 32 is then configured to convert the absolute sentence emotional data profiles comprising the absolute count values into relative sentence emotional data profiles based on a function of the mean absolute counter values and/or associated standard deviation values per emotional category identifier from the baseline statistical values. In one form, the semantic engine 32 is configured to generate relative sentence emotional data profiles in the form of multi-dimensional data sets comprising relative count values for each emotional category identifier that represent the absolute count value as a function of the number of standard deviations it is from the mean. By way of example, the relative count value for emotional category E1 in a sentence is calculated based on the absolute value of the difference between the absolute count value and the mean absolute count value for E1, divided by the standard deviation for E1. These calculations are applied similarly to all count values across all emotional categories in the sentence emotional data profile, and this process is applied to each sentence emotional data profile.
In a second example configuration, the semantic engine 32 is configured to calculate baseline statistical values for the entire text that represent either:
The semantic engine 32 is configured to calculate the baseline statistical values for (a) by scanning the entire text and for each emotional category identifier E1-E8 and incrementing a respective global counter value for an emotional category identifier if a token corresponds with its associated lexicon data set. The result of this scanning process is eight global count values, one for each emotional category identifier, that represent the total number of tokens in the text corresponding to the lexicon of each emotional category identifier. The global count values are then converted to global frequency values by dividing each by the total number of tokens scanned in the text. The semantic engine 32 is also configured to generate an associated sentence frequency standard deviation value per emotional category identifier based on the global frequency values.
The semantic engine 32 is configured to calculate the baseline statistical values for (b) based on the frequency values from the sentence emotional data profiles. The mean sentence frequency value for an emotional category is calculated based on summing all the absolute frequency values for the category from the sentence emotional data profiles, and dividing the total by the number of sentences in the text. The semantic engine 32 is also configured to generate an associated sentence frequency standard deviation value per emotional category identifier based on the individual absolute frequency values from the sentence emotional data profiles and the calculated mean sentence frequency value.
Once either of the baseline value sets (a) or (b) are calculated, the semantic engine 32 is then configured to convert the absolute sentence emotional data profiles comprising the absolute frequency values into relative sentence emotional data profiles based on or as a function of the calculated global frequency values and/or associated standard deviation values per emotional category identifier, or based on the mean sentence frequency values and/or associated sentence frequency standard deviation values per emotional category identifier. In one form, the semantic engine 32 is configured to generate relative sentence emotional data profiles in the form of multi-dimensional data sets comprising relative frequency values for each emotional category identifier that represent the absolute frequency value as a function of the number of standard deviations it is from the global frequency value or mean sentence frequency value. By way of example, in one embodiment the relative frequency value for emotional category E1 in a sentence is calculated based on the absolute value of the difference between the absolute frequency value and the global frequency value or mean sentence frequency value for E1, divided by the respective associated standard deviation for E1. These calculations are applied similarly to all frequency values across all emotional categories in the sentence emotional data profile, and this process is applied to each sentence emotional data profile.
The output of the semantic engine 32 is a set of sentence emotional data profiles that can be further analysed by the audio region definition engine 34 to configure the audio regions of the soundtrack. As discussed, the sentence emotional data profiles are multi-dimensional data sets, each set having a counter value or frequency value per emotional category identifier. As discussed, the counter values or frequency values may be absolute or converted to relative values based on the calculated baseline or global statistics relating to the entire text. In either case, the values in the multi-dimensional data sets of the sentence emotional data profiles represent absolute or relative intensity values for each emotional category identifier. In some embodiments, the semantic engine 32 may be configured to only calculate and output the absolute sentence emotional data profiles for further processing in the automatic creation process, such as by the audio region definition and music selection engines. In other embodiments, the semantic engine 32 may be configured to calculate baseline statistics as previously discussed for converting the absolute emotional data profiles into relative emotional data profiles, and in such embodiments the further processing may be based on the relative emotional data profiles and/or the absolute data profiles.
As will be further explained, the multi-dimensional data sets of the sentence emotional data profiles (whether absolute or relative) may be cast or mapped or transformed into the 2-dimensional circular reference frame of the continuous emotion model 50 (see
By way of example,
In one configuration, the 8-dimensional vector representing the sentence emotional data profile of a sentence can be cast as a 2-dimensional vector or a point in Cartesian co-ordinates (x, y) in the unit circle representing the model 50 using a sine/cosine cast. Given the degrees above of the unit circle for the emotional categories, a loop is applies to each of the eight intensity values as follows to generate the resultant (x, y) co-ordinates of the resultant vector as follows:
unit_circle_x=unit_circle_x+cosine(degree_for_emotion)*(emotion_vector·length*0.3+abs(sentiment_value)*0.7)
unit_circle_y=unit_circle_y+sine(degree_for_emotion)*(emotion_vector·length*0.3+abs(sentiment_value)*0.7)
Therefore, each sentence has the ability to project a resultant vector or be represented by a point in the circular model 50, based on how many tokens it contains corresponding to the lexicons of the eight emotional categories, and optionally relative to the mean and standard deviation values of the baseline statistical values if relative emotional data profiles are used.
In the above example, the ‘emotion_vector·length’ represents the raw intensity values for the respective emotional category identifier extracted from the 8-dimensional vector after normalization. In this embodiment, the overall intensity value attributed to the emotional category identifier for the purpose of determining the resultant vector or position is a combination or function of the ‘emotion_vector·length’ and a sentiment value (‘sentiment_value) calculated or determined for the text segment (in this case a sentence) associated with the 8-dimensional vector being processed. In this embodiment, the sentiment value is a value representing or indicative of whether the text segment represents a positive or negative sentiment. In one configuration, the sentiment value represents whether the text segment is positive or negative, and also an intensity of that sentiment relative to a scale. In one example, the sentiment value is a numerical value on a scale from a first threshold (e.g. −1.0) representing a very negative sentiment to a second threshold (e.g. +1.0) representing very positive sentiment. The sentiment value may be generated by any suitable sentiment analysis tool or engine, such as, but not limited to, any of the following sentiment analysis tools or engines: VADER (Valence Aware Dictionary and sEntiment Reasoner), Apache UIMA (part of OpenNLP), Weka, and Python NLTK (NLP toolkit). The sentiment value generated by the sentiment tool represents the emotional value of the sentence (the sentiment judgement). Typically the sentiment value is calculated using an emotional analysis library in the semantic engine 32 that generates or determines a sentiment value for each sentence between −1 and 1 (very negative to very positive). The absolute value of the sentiment value is used in the resultant vector calculation. It will be appreciated that any other suitable form of sentiment value generated by other suitable sentiment analysis tools or engines could be used, some examples of which are provided above.
As shown above, the weighting or scaling of contribution of the raw intensity value and sentiment value to the overall intensity value for the resultant or mapping calculation may be adjusted or configured as desired. In this example, 30% weighting or contribution is applied to the ‘emotion_vector·length’ value and 70% weighting or contribution is applied to the ‘sentiment_value’, but these weightings could be reversed or modified as desired. For example, each could have equal weighting, such as 50:50. In further alternative embodiments, the sentiment value may be omitted, such that the resultant vector or co-ordinates are calculated based solely on the ‘emotion_vector·length’ values (raw intensity values) from the 8-dimensional vector.
Referring to
The audio region definition engine 34 is configured to analyse the received text analysis data 33 by processing the sentence emotional data profiles to identify text regions of multiple adjacent sentences having an emotional association with respect to predefined rules. The identified text regions define the audio regions of the soundtrack. For example, each identified text region generates a corresponding audio region of the soundtrack. The audio regions are configured to playback when their respective corresponding text region is being read. Based on the identified text regions, the audio region definition engine 34 generates audio region data 35 identifying the audio regions 70 for the soundtrack corresponding to the identified text regions 75. Each audio region data for an audio region has a start text position 71 indicative of the word (or token) in the text at which the audio region is to commence playback, a stop text position 72 indicative of the word (or token) in the text at which the audio region is to cease playback, and a generated region emotional profile 73 based on the sentence emotional profiles of the sentences within its associated text region. The generated region emotional profile 73 for each audio region is intended to define the emotional profile conveyed in that associated region or passage of text to enable appropriate matching music or audio to be selected.
An example of an audio region definition algorithm for segmenting or dividing that text into text regions representing groups of multiple adjacent sentences will be explained next. It will be appreciated however that one or more of the steps may be varied or substituted or omitted, in alternative embodiments of the algorithm. The algorithms can divide the text into text regions of adjacent sentences based on identifying reference sentences or regions representing emotional transitions based on thresholds, or grouping adjacent sentences having an emotional association based on predetermined rules or thresholds, or a combination of these techniques.
Referring to
The algorithm flow and sub-algorithms are shown in
The algorithm 80 commences with all sentences representing an initial set 81 of text region candidates S1-S1000. A first sub-algorithm 82 is then applied to those sentences to find any region of interest. In this embodiment, this is defined as any sentence of the text that has resultant coordinates in the continuous emotion model (as defined by its respective sentence emotional data profile) that is away from the origin by some predefined threshold, such as 0.001, or one permille of the unit vector length away from the origin). In particular, the first sub-algorithm 82 is configured to group sentences with neutral sentence emotional profiles with adjacent non-neutral sentence emotional profiles. In another configuration, a neutral sentence emotional data profile is determined based on a neutral sentence threshold that is indicative of minimal or neutral emotion being present in the sentence. In one example, a sentence may be considered to have a neutral sentence emotional data profile if its absolute or relative intensity values across all emotional category identifiers are below respective absolute or relative intensity thresholds, such as zero. The result of sub-algorithm 82 is that one or more of the sentences may be grouped together, or more particularly neutral sentences may be grouped with an adjacent non-neutral sentence. This defines a first set 83 R1-R11 of text regions. This sub-algorithm 82 tends to significantly reduce the number of regions relative to the initial set of all sentences being regions, particularly in the context of a text representing a book in which the number of regions can half for example.
The first set of regions 83 is then applied to a second sub-algorithm 84 that is configured to reduce the first set of text regions into a smaller second set of text regions based on grouping at least some adjacent text regions from the first set into larger text regions until all the text regions in the second set reach a predetermined size threshold. In this embodiment, the size threshold may be a token count or word count threshold value representing a minimum number of words required to be a text region candidate. The size threshold may be configurable based on the type or nature of the soundtrack required, such as the frequency of music changes desired. For example, the automatic creation system may be operable to configure a minimum text region size to add a control to how many audio regions are created and therefore how many music tracks are played back in the soundtrack. By way of example, the minimum length of a text region may be set at say 300 words. This dictates that the listener of the soundtrack will on average hear no more than one new music track for every 300 words read. This minimum threshold can also translate into or be configured as a minimum playback time threshold. In this example, if a nominal or average reader has a reading speed of about 150 words per minute (wpm), then the threshold will dictate that they will on average hear no more than one new music track for every 2 minutes of reading, and a reader having a reading speed of 300 wpm will on average hear no more than one new music track for every 1 minute of reading. Therefore minimum time thresholds may be set, and converted back into minimum word or token thresholds based on nominal or average reading speed variables or customised reading speed variables particular to an end user of the soundtrack. In
In one form the sub-algorithm 84 is configured to scan through the regions in the first set 83 from the start and increment a token or word counter. As the counter goes over the predefined size threshold, a new text region for the second set 86 is defined as the previous one or more regions in the window prior to that scan point, including the current region that forced the counter over the threshold. Although in an alternative configuration, the current region at that scan point may be excluded from the first new region and be considered as the start of the next scan. Once the first new region of the second set is determined, the algorithm commences a new scan at the next adjacent region of the first set and resets the counter and repeats the process to generate the second new region of the second set, and so on.
Once the sub-algorithm 84 generates or defines all the text regions 86 of the second set, an interim text region emotional data profile is determined for each of the text regions 86. As shown in
The output of sub-algorithm 84 is the second set of text regions 86 and their associated respective interim text region emotional data profiles determined or calculated from the individual emotional profiles of the groups of adjacent sentences within the text regions.
In this embodiment, the region determination algorithm 80 is then configured to apply sub-algorithm 88 to further refine the number of text regions in the second set 86 to generate a final set of text regions 90. This sub-algorithm 88 is configured to analyse the interim text region emotional data profiles of the second set of text regions 86 and further group adjacent text regions having an emotional association based on an emotional-transition threshold or thresholds to generate the final set of text regions 90. As will be explained further below, in this embodiment the sub-algorithm is configured to cast or map or transform the multi-dimensional data set of emotional intensities (or a masked or modified version of the data set) representing the interim text region emotional data profiles into a resultant 2-dimensional vector or coordinate point into the circular reference frame of continuous emotion model 50. The sub-algorithm then compares adjacent resultant vectors or resultant coordinate points of adjacent text regions to determine if an emotional association exists based on an emotional-transition threshold or thresholds. In this embodiment, the sub-algorithm 88 compares adjacent vectors based on change in distance from the origin and/or angular movement between the vectors to determine an emotional association. For example, if the change in distance from the origin and/or angular movement between the vectors is under predetermined thresholds, an emotional association is deemed to exist and the associated text regions combined into a larger text region. If the distance change and/or angular movement between the vectors exceeds the thresholds then an emotional transition is identified, and the adjacent regions are not grouped.
In this embodiment, the sub-algorithm 88 commences progressively from the start of the text onwards and iteratively accumulates interim text portions having an emotional association until an emotional transition is identified, and preceding interim text regions before the transition are grouped as a final text region for the final set. The analysis then repeats through the remaining interim text regions to determine all final text regions. Referring to
Optionally, sub-algorithm 88 may also be configured to apply maximum threshold values for the length of the final text regions, to ensure a sufficient frequency of change in audio regions in the soundtrack. The maximum threshold values for the text region lengths may be determined based on word or token counts, or time thresholds, in a similar manner to the minimum length thresholds applied in sub-algorithm 84 above. If sub-algorithm 88 accumulates or groups interim regions together to the extent that the maximum length threshold is breached but no emotional transition is yet identified, the algorithm automatically sets the current group as a final text region, and begins processing the next interim text regions in the same manner to determine the next final text region. Therefore, the maximum threshold provides a control on the size of the final text regions generated, which in turn controls the rate or frequency at which audio region transitions will occur, to prevent the same audio region playing for too long in the soundtrack.
A more detailed example of one particular implementation of the sub-algorithm 88 will be described in the following by way of further explanation.
The sub-algorithm 88 in the third step involves applying a circle movement/distance measurement with a predefined threshold to vectors or points in the emotional model representing the interim emotional profiles of each of the text regions in the second set. If either a change in intensity (the distance from the origin) and/or a change in emotion (the direction of the vector in the unit circle) change beyond a certain threshold between adjacent text regions, those are identified as relevant emotional transitions for defining a new region. Regions that do not meet this threshold are combined together using the combinational steps similar to those applied by sub-algorithm 84 in step 2 of the algorithm 80.
For example, two points in a unit circle, say p1(x,y) and p2(x,y) have a Euclidian distance, defined as distance(p1, p2)=Square root of ((p1·x−p2·x)2+(p1·y−p2·y)2). If this distance exceeds a threshold, a text region change is applied, i.e. an emotional transition is identified as existing between the regions represented by the points. Likewise a dot product calculation or similar can be used to determine the angular movement or angular change about or relative to the origin between two resultant vectors or points. If the angular change exceeds a threshold, a text region change is also applied.
The sub-algorithm 88 in this implementation is configured to analyse the change (distance or angle) between adjacent vectors or points in the emotion model 50 based on the following. These definitions apply:
Following from the above definitions the sub-algorithm 88 is configured to carry out the following steps:
Optionally, the audio region determination algorithm 80 comprises a re-alignment sub-algorithm 92 that is operable to adjust the start and/or end of one or more of the text regions of the final set 90 to align with predetermined reference points within the text according to predetermined alignment rules. In one example, the predetermined reference points may comprise data indicative of paragraph or chapter boundaries, and the start and/or end of one or more of the text regions may be adjusted to align with the closest paragraph or chapter boundary based on predetermined alignment rules. In one configuration, the re-alignment of the start and/or end of the text regions may comprise re-allocating one or more sentences of the text region to an adjacent text region or obtaining one or more sentences into the text region from an adjacent text region.
The purpose of this re-alignment algorithm is to prevent audio regions from crossing at least chapter boundaries in the text, and also paragraph boundaries if possible. Audio regions crossing chapter and paragraph boundaries is undesirable as such boundaries provide a natural end point for a reader. The sub-algorithm 92 is configured to retrieve chapter and paragraph boundary data (i.e. the text positions of such boundaries) and adjusts the start and/or end of the text regions in the final set to start and end on chapter and/or paragraph boundaries. For example,
The audio region definition algorithm 80 is configured to determine or generate a respective region emotional data profile for each of the text regions in the final set. The algorithm 80 is configured to generate a region emotional data profile for a text region based on or as a function of the sentence emotional data profiles of the individual sentences within the region. As discussed with regard to sub-algorithm 84 in step 2, the representative emotional data profile can be generated according to various predetermined configurations or rules, depending on requirements. The region emotional data profile is also a multi-dimensional data set of intensity values, e.g. in this embodiment an 8-dimensional vector of intensity values, one for each emotional category. The values in the 8-dimensional vector may be determined based on any of the techniques previously described with respect to sub-algorithm 84 such as averaging the values for the sentence profiles, summing the values form the sentence profiles, selecting a dominant or prevailing sentence profile to represent the region emotional profile, selecting the most intense emotion in the sentence profiles to represent the region emotional profile, or any other suitable technique for extracting a representative region emotional profile from the individual sentence emotional profiles.
In some embodiments, the algorithm 80 may be configured to apply a masking function to the 8-dimensional vector of the emotional data profile of any of the types or configurations described in sub-algorithm 88. For example, the highest sub-set of a predetermined number of adjacent intensity values may be selected to represent the emotional data profile, with the remaining values masked to zero. Alternatively, the highest value or values of the subset may be selected to represent the emotional data profile with the remaining values masked to zero. The number of adjacent values may be three for example as in sub-algorithm 88, although it will be appreciated the number may be varied higher or lower. In further alternative configurations, the masking function may be configured to select the highest intensity value to represent the 8-dimensional vector, with the remaining values masked to zero.
It will be appreciated that the 8-dimensional vector representing the region emotional data profile can be cast as a resultant vector or point into the circular reference frame of the emotion model 50 using the techniques previously described. Therefore, the emotion for the region can be represented by a single resultant vector or point in the continuum of emotions defined by the 2-dimensional emotion model 50 (see
Referring to
In this embodiment, the automatic creation system has one or more accessible audio libraries or databases 22 that the matching engine 36 can select audio files from. The audio database or databases may be integrated with the creation system and/or the system may access the databases over data network, such as the internet or similar. The audio databases may be private to the creation system and/or 3rd party audio databases or libraries or cloud-based audio streaming services. The audio files are music files in this example. The music files in the database(s) each comprise meta-data or audio file profile information or data representing characteristics of the music, which either directly or indirectly represent the emotion conveyed by the music.
Translation or Transformation of Music Meta-Data into Continuous Emotion Model Representation
In one configuration, matching engine 36 is provided with one or more mapping or translation engines that are configured to map or transform the information in the music file metadata into a format comparable or compatible with the continuous emotion model 50. For example, the mapping or translation engines may map or translate the music metadata into an 8-dimensional emotional data profile, or resultant vector or point in the 2-dimensional circular reference frame of the continuous emotion model. In this configuration, each music file in the database can be mapped into the emotion model 50, and a music file or files for an audio region may be selected based on which mapped music file profiles most closely match to the vector or position represented by the region emotional profile of the audio region. For example, a selection may be based on a predefined angular and/or distance thresholds or proximity threshold between the music file position in the emotion model and the audio region position in the emotion model.
For example,
In an alternative configuration, the music meta-data, once mapped into an 8-dimensional data set profile, may be compared directly to the 8-dimensional data set profile representing the region emotional profile of the region. In this configuration, the raw multi-dimensional data sets representing the emotional profile of the music file and the region emotional profile of the audio region can be compared for the closest match, without needing to generate and compare singular resultant points or vectors generated from the multi-dimensional data sets. For example, the individual intensity values (absolute or relative) of the multi-dimensional data sets of the audio region and music files may be compared to find the closest match. In some configurations the closest match may be determined based on finding the closest matching one or more dominant intensity values in the data set i.e. matching based on one or more of the most dominant emotional categories in the data set. In other configurations, the data sets may be compared based on the closest overall match of intensity values across all emotional category identifiers represented in the data set.
Translation of Region Emotion Profiles into Music File Metadata Format
In another configuration, the matching engine 36 is provided with one or more mapping or translation engines that are configured to map or transform the region emotional data profiles of the audio regions (e.g. the 8-dimensional data sets) into a format or form corresponding to the meta-data categories or emotional profiling categories or characteristics used by the audio library or database for their collection of music files. Each translated region emotional data profile can then be matched to the closest music file or files for selection that have corresponding meta-data.
By way of example only,
In another configuration, the matching engine 36 may be operable to select audio files from an audio database without any translation engines. In this configuration, the matching engine 36 is configured to access or communicate with an audio database or databases that comprise audio files having associated metadata or audio profile information that comprises data indicative of an audio emotional data profile in the format that is represented by the continuous emotion model 50. For example, each audio file may be represented by an audio emotional data profile comprising one or more resultant vectors in the continuous emotion model or alternatively a multi-dimensional emotional data profile (i.e. a data set comprising an intensity value for each emotional category identifier) that can be optionally mapped or transformed into the continuous emotion model using techniques previously described. As will be described below, in some configurations the raw multi-dimensional data sets representing the emotional profiles of the audio region and audio files are directly compared for the closest match, and in other configurations the data-sets are cast or transformed into a resultant vector or point in the 2-D emotional model for subsequent comparison for the closest match.
In one configuration, the multi-dimensional emotional data profiles of the audio regions and audio files are compared directly to find the closes match. For example, the individual intensity values (absolute or relative) of the multi-dimensional data sets of the audio region and music files may be compared to find the closest match. In some configurations the closest match may be determined based on finding the closest matching one or more dominant intensity values in the data set i.e. matching based on one or more of the most dominant emotional categories in the data set. In other configurations, the data sets may be compared based on the closest overall match of intensity values across all emotional category identifiers represented in the data set.
In another configuration, the multi-dimensional data sets representing the emotional profile of the audio region and music files are matched based on their singular resultant vector or point as mapped into the 2-D emotional model. In this configuration, each music or audio file in the audio database is represented in the emotion model 50 and a music file or files for an audio region may be selected based on which music file emotion profiles most closely match to the resultant vector or position represented by the region emotional profile of the audio region. For example, a selection may be based on a predefined angular and/or distance thresholds or proximity threshold between the music file position in the emotion model and the audio region position in the emotion model as was described above in regard to
This configuration relies on an audio database in which all the audio files have been profiled in a format corresponding to the continuous emotion model 50. In one embodiment, such a database is created by an electronic profiling system. An embodiment of an electronic profiling system will be described with reference to
Referring to
Referring to
The primary profiling interface in the profiling GUI 130 is the emotional profiling tool or GUI 136. In this embodiment, the emotional profiling GUI 136 presents a graphical representation of the continuous emotion model 50 of the type previously described with reference to
The emotional profiling GUI 136 may be configured to control the number of profile dots the user can apply to each track. In one configuration, the user may only be allowed to apply a single dot, but in other configurations the user may be able to register or apply a plurality or multiple dots as shown in
Once the user has emotionally profiled the audio track with one or more profile dots, the emotional profile data 126 represented by the one or more profile dots is stored in the audio database 122 or elsewhere against that audio track as previously described for subsequent use by the matching engine in the creation system.
In one embodiment, the emotional profiling of the audio tracks of an audio database using the profiling system 110 described may be carried out by multiple users (profilers). The result is that the audio tracks in the audio database have multiple emotional profiles generated for them, from a range of different listeners. Rather than relying on a single listener to profile the audio tracks according to their perceptions, the multiple emotional profiles generated by multiple or a ‘crowd’ of listeners can be generated and retrieved for the audio track. In this scenario, the system can be configured to average or otherwise statistically generate an overall emotional profile for the audio track based on the crowd-sourced data from multiple profiling listeners. This provides the ability to remove outliers or extreme profiles and generate a more representative emotional profile for the audio track.
The matching engine 36 is configured to primarily select an audio track (e.g. music file) for an audio region based on the closest matching emotional profiles of the audio track and audio region using one or more of the techniques or configurations such as those described above. In addition to the primary emotion matching, the matching engine may be configured to apply one or more music-selection filters to the music selection based on various factors, depending on the meta-data and profile information available for the music files and/or additional profile or information about the text. Various examples of the additional music-selection filters are described below. Any combination of one or more of these music-filters described below could be implemented by the matching engine with the emotional profile matching to select the audio track for each audio region.
In one configuration, the matching engine is provided with one or more configurable global music-selection filters. The filters may include, but are not limited to, genre music-selection filters and style music-selection filters. For example, the matching engine may be configured manually or automatically to filter the music files for selection based on particular ‘genre’ and/or ‘style’ settings or parameters. Referring to the example of
It will be appreciated that number of matching or music-selection filters applied may vary depending on requirements and the extent to which the music files or tracks have been classified or profiled. Some of the filters may be manually pre-configured and others may be dynamically configured based on the particular text for which the soundtrack is being created. For example, the system may be configured with a music-selection filter that only selects music files having no lyrics.
The system may be configured to determine or extract additional profile information relating to the text via additional text analysis or external sources to determine additional characteristics of the text. In the context of text that is a book, this may include information such as, but not limited to, genre, setting (place and time), author, writing style and the like. Based on this information, the system may dynamically configure additional text-based music-selection filters to correspond to the additional global profile information relating to the text. For example, the music-selection filters may be configured to only select music files or songs relevant to the setting being conveyed in text so as to avoid a ‘rap’ song being selected for a romance novel set in the 1900s. Such text-based music-selection filters rely on the audio tracks also being profiled with similar information.
In some configurations, the user-based music-selection filters may also be applied based on the end user or type of user that may be using the automatically created soundtrack. The user-based music-selection filters may be based on user preferences or settings, such as no ‘rock’ music, or the user prefers ‘classical’ music to play when reading, or user profile or demographic profile information relating to the user such as, but not limited to, age, gender, nationality and the like. The user profile information may also include previous historical settings relating to the user's ratings of other soundtracks created for similar texts for example.
In some configurations, the matching engine is provided with configurable or self-configuring musical characteristic music-selection filters. The musical characteristic filters may define filters relating to one or more of the spectral or other musical characteristics of the music to be selected for an audio region. By way of example, these filters may define thresholds or filters relating to desired tempo or beats per minute (BPM) characteristics, key change frequencies or other spectral characteristics of the music relating to the audio track's suitability for selection.
In some configurations, the matching engine is provided with configurable playlist music-selection filters. In such configurations, the matching engine accesses a playlist database comprising a collection of one or more playlists of audio tracks that have been pre-selected for the text. For example, in the context of the text representing a fiction book, the author and/or one or more readers of the book may generate playlists of audio tracks (music or songs) which they enjoy listening too while reading the book. This playlist data from multiple sources is stored in a playlist database. In some embodiments, the matching engine may be configured with a playlist music-selection filter that dictates that only audio tracks listed in the crowd-sourced playlist data may be selected for an audio region, i.e. the primary emotional matching performed by the matching engine for an audio region is based on a filtered list of audio tracks from the audio database that correspond to the playlist data for the text. Various types of playlist music-selection filters may be applied. In one form, the playlist filters may specific one or more particular playlists, e.g. the author's playlist only, or the end-users playlist only, or a combination of any one or more playlists, or all playlists associated with the text.
In some configurations, the matching engine is provided with configurable rating or machine learning music-selection filters. In such configurations, the creation system is configured to receive or retrieve rating data from listeners of the synchronised soundtracks. By way of example, the listeners may be provided with a ratings input interface in their soundtrack playback system that enables them to provide rating feedback on the suitability or their rating of an audio track that is playing in the soundtrack for the text they are reading. By way of example only, the rating interface may be a ‘thumbs up’ or ‘thumbs down’ GUI interface or any other suitable ratings interface enabling a user to provide ratings feedback as to whether they like or dislike the audio track playing in the soundtrack. The user may for example believe an audio track really enhanced their reading experience for a particular passage in the e-book they are reading and give it a ‘thumbs up’ rating, or alternatively if give it a ‘thumbs down’ rating if they thought it was distracting or otherwise not suitable to enhancing their reading experience. The matching engine is configured to receive or retrieve this ratings data from a crowd of listeners and may then be configured to generate dynamic ratings profile data for audio tracks in the database which is either generic or specific to a particular text, or both. The matching-engine is operable to apply one or more ratings music-selection filters based on the ratings data received. By way of example, the ratings filters may dictate that no audio track is to be selected if it has negative ratings data over a predetermined threshold of all ratings received for the audio track, or alternatively the engine may only select audio tracks that have an associated positive rating corresponding to a predetermined threshold. The ratings filters may also be configured to operate on sub-sets of ratings data. For example, the filters may be set to be global (i.e. all ratings for the audio track during its use in a synchronised soundtrack regardless of which text is being read) or they may be set to be text-specific (i.e. only ratings for the audio track when played for the same text being processed are considered). It will also be appreciated that the ratings filters may operate on a subset of the ratings data that are filtered based on user profile or demographic information, such that the filters are only applied based on ratings from a particular group of users. For example, the ratings filters may be set to operate on only ratings data from users in one country, or a particular age group, or only ratings data received from one particular user, such as the end user for which the soundtrack is being created for example. As the ratings data will constantly change as more ratings are received, the ratings filters are dynamic and provide a machine learning function to the matching engine.
The above various music-selection filters may be applied on a global text basis, or may be applied one a more granular or higher resolution basis, such as on a chapter basis. For example, each chapter may have its own global chapter profile filters for the music selection, which overlay the individual audio region emotional profile matching of the individual audio regions within the chapter.
In an embodiment, the automatic creation system comprises user setting or control interface that enables a user to tune the created soundtrack to the type of emotions they would like to amplify or dampen. Suppose a user wasn't interested in hearing “sad” music. A user could define a multiplier (through the control interface, e.g. a displayed graphical user interface) for each of the eight dimensions (e.g. sadness=0.2, happiness=1.0, etc). These control parameters for emotion would dampen down any “sadness” events to 20% of their original strength and leave happiness at 100%, for example. Effectively the system would generates a deformed unit circle of the emotion model 50 according to the user's preferences or control setting, where certain spokes of the octants were retracted more than others, thus deforming the shape of circular reference frame. This shape is a user's unique preference defined by an eight dimensional vector with values between 0.0 and 1.0 inclusive, for example.
2.6 Optional Thematic Profiling of Text for Audio Region Definition and/or Music Selection
In the embodiments above, the automatic creation system and algorithms are primarily configured to semantically process the text for the audio region definition (regionalisation of the text, i.e. dividing the text into text regions) and the subsequent audio or music selection based on emotional profiling of the text and audio files. In particular, the audio region definition algorithm defines or identifies text regions within the text based on identifying emotional transitions in the text or emotional associations between adjacent text segments (e.g. sentences). The system then calculates or determines an overall emotional profile for each text region as a function of the emotional profiles of the text segments (e.g. sentences) with the text region, and the overall text region emotional profile is used in the music selection algorithm that selects an audio file for playback alongside the reading of that text region at least partly based on matching of the text region emotional profile to a corresponding audio or music file having a similar emotional profile.
In some embodiments, the automatic creation system may optionally further process the text for thematic profiling in addition to emotional profiling. The thematic profiling may be implemented for the audio region definition stage, music selection or matching stage, or both. Examples of the thematic profiling will be explained below.
In a first alternative configuration, the semantic analysis engine 32 may be configured to process each text segment (e.g. sentence) for emotional profiling and thematic profiling. As previously explained, the emotional profiling is based on a continuous emotion model and based on parsing the text relative to a set of emotional lexicons 60, and generating a segment emotional data profile in the form of a multi-dimensional data array representing the emotional profile of the segment (e.g. sentence) relative to each emotional category identifier (each of which has a respective ‘emotional’ lexicon). In this first alternative configuration, the semantic analysis engine 32 is further configured to process or profile the text segments (e.g. sentences) relative to a set of one or more thematic values or judgements or characteristics defined by respective ‘thematic’ lexicons. The thematic characteristics may represent any desired thematic judgements including by way of example only, but not limited to:
Each one or more thematic judgements or thematic category identifiers defining the thematic profiling has an associated thematic lexicon of words or word concepts that are associated with the thematic category identifiers, similar to the emotional lexicons 60 associated with the emotional category identifiers previously described. Like the emotional lexicons, each thematic lexicon may simply comprise a list of words or word concepts, or a list of words or word concepts in which each word has one or more additional lexicon attribute values, such as a weighting value and syntactic characteristic identifier (in a similar format to the emotional lexicons). By way of example only, a portion of the Romance thematic lexicon list may contain words or words concepts like the following:
And the by way of example, a portion of Nature thematic lexicon list may contain words or word concepts like the following:
In the above examples, each word or word concept comprises a weighting value (in this example a value between 0 and 1) which reflects how strongly it reflects the thematic category of the lexicon, and a syntactic identifier representing the part of speech or whether it is an idiom for example. In this example, n=noun, v=verb, j=adjective, idiom=idiom etc.
In this configuration, the semantic engine is configured to process or parse the text based on both the emotional lexicons for emotional profiling and the thematic lexicons for thematic profiling of the text segments. The thematic profiling based on the thematic lexicons may be undertaken in the same manner as previously described with respect to the emotional lexicons. The output of the semantic engine is that each text segment (e.g. sentence) is provided with an emotional and thematic data profile, which may be in the form of a multi-dimensional data set or array of values or scores, each value or score in the data set representing or corresponding to a respective emotional category identifier or thematic category identifier. By way of example, if there are 8 emotional category identifiers (and therefore 8 emotional lexicons), and 10 thematic category identifiers (and therefore 10 thematic lexicons), then each text segment will have an 18-value emotional and thematic data profile.
In this first alternative configuration, the audio region definition engine is configured to receive the text analysis data from the semantic engine for processing to identify and define the text regions for the audio regions of the soundtrack. In this configuration, the text analysis data comprises the emotional and thematic data profiles of each of the text segments (e.g. sentences) in the text. The audio region definition engine is then configured to process those text segments and associated emotional and thematic data profiles to identify text regions of multiple adjacent text segments (e.g. sentences) that have an emotional and/or thematic association or otherwise segment the text into text regions based on identifying emotional and/or thematic transitions. It will be appreciated that the audio region definition engine may operate in a similar manner to that previously described with respect to emotional profile data when processing the additional thematic profile data for thematic association or transitions. In one configuration, the emotional profile data may be processed separately to the thematic profile data, and then text regions may be defined based on a function of the emotional association or transition data and thematic association or transition data. In some embodiments, the emotional data may be configured to have a higher weighting or take precedence over the thematic data when defining the text region boundaries, or vice versa, or each may have equal weighting. In other configurations, the emotional and thematic profile data of each text segment may be processed in aggregate form without distinction between emotion and theme, i.e. each text segment may be compared to adjacent text segment based on the overall emotional and thematic association or for overall emotional and thematic transitions. It will be appreciated by a skilled person that the thematic profile data may be processed in a similar manner as the emotional data profiles using similar algorithms.
In this first alternative configuration, the output of the audio region definition engine is a set of defined text regions for which audio regions will be created, and each text region not only having text region emotional profile but a text region emotional and thematic data profile. In this configuration, the emotional and thematic data profile of each text region is defined as a function of the emotional and thematic data profiles of the individual text segments (e.g. sentences) within each text region, using similar techniques as described previously with respect to the emotional profiling.
In this first alternative configuration, the music matching or selection engine is modified to take into account the additional thematic profiling of the audio regions when selecting a music track or audio file for each audio region. The same selection/matching processes may be utilised as described previously. For example, the emotional and thematic profile of each audio region may be translated/transformed into a format comparable to the emotional and/or thematic profiling of audio files in the audio database, or the audio profile data of the audio files in the database may be converted into a format comparable to the audio region emotional and thematic profiles, so that a comparison can be made to provide music or audio file candidates for selection for each region based on closest matching profiles, as previously described. In yet other configurations the audio or music in the audio database may be profiled in a format corresponding to the audio region emotional and thematic profiles and therefore no translation/transformation into different formats may be required in such configurations. It will be appreciated that the rules defining which audio files have a profile that matches most closely to the audio region profiles may dictate that matching may be weighted in favour of emotion over thematic, or vice versa, or no distinction such that the overall closest match is sufficient.
In summary, the first alternative configuration implements additional semantic profiling of the text for thematic judgements based on thematic category identifiers and associated thematic lexicons for the audio region definition engine, and also utilised the additional thematic profiling for music selection for the defined audio regions.
In a second alternative configuration, the thematic profiling of the text may simply be applied after the audio region definition algorithms have completed, such that the thematic profiling is utilised in the music or audio matching or selection phase of the automatic creation only. In this second alternative configuration, the semantic engine and audio region definition engines execute as previously described based on the emotional profiling only. However, the output of the audio region definition engine is the defined text and audio regions and their associated emotional profile data. At this point, each of the text regions may be subjected to thematic profiling based on the thematic lexicons previously described in the first alternative configuration, and therefore each text region emotional profile is augmented with additional thematic profile data before entering the music selection or matching phase of the system. For example, each text region is parsed with respect to one or more thematic judgment categories and associated thematic lexicons and additional thematic scores or profile values are added to the text region and audio region profile to generate an emotional and thematic data profile for each text region. For example, if the text in the text region is parsed relative to 10 additional thematic categories, then the multi-dimensional emotional data profile of 8 emotional data values or scores, is expanded with 10 additional thematic values or scores. The resulting audio regions and their associated emotional and thematic data profiles are then input to the music selection and matching engine for processing and selection of a suitable music of audio track for each audio region in a manner described with respect to the first alternative configuration of the system.
In summary, the thematic profiling described above in the first and second alternative configurations may be optionally applied at both the semantic analysis and audio region definition stages/processing and the music selection or matching stage/processing as in the first alternative configuration, or just at the music selection or matching stage as in the second alternative configuration.
Reverting to
The soundtrack generation engine 38 is configured to process the received data into a soundtrack data file format suitable for playback by a soundtrack playback system or engine. The soundtrack data file may define the audio regions and audio file for playback in each audio region, along with any additional playback effect data that may have been configured.
The soundtrack data file or files may comprise the actual audio files or links to audio file sources containing the audio files for retrieval and playback (whether by download or streaming) By way of example only, the soundtrack generation engine may generate a soundtrack data file of the type described in WO2013/015694. In one configuration, the soundtrack may be configured to comprise only audio regions of music files, although the soundtrack may also comprise other layers such as an ambience layer or sound effect layer that comprise ambience or sound effect audio regions that are either automatically configured or manually configured.
In one configuration, the automatic creation system is operable to process the desired text and generate a ‘pre-rendered’ soundtrack data file for storage. This pre-rendered soundtrack can later be delivered to end-users for playback on a suitable soundtrack playback system while they are reading the associated text, as will be described later.
In another configuration, the automatic creation system is operable to generate and deliver soundtracks on-demand or in real-time for an end user for a particular text upon request. In one embodiment, the automatic creation system is configured to process the text or at least a portion of the text in real-time and progressively generates the corresponding soundtrack for delivery (e.g. streaming) to the end user. In another embodiment, the automatic creation system may be configured to retrieve the text emotional profile map or audio region definition data for the text associated with the soundtrack request from a database, and then operates the remaining modules of the creation system to generate the required soundtrack for delivery to the end user. In this embodiment, the system takes advantage of pre-processing of the text that may have already been carried out by the text analysis and/or audio region definition engines. For example, the text of a catalogue of books may be analysed by text analysis and/or audio region definition engines and associated text emotional profile and/or audio region definition data may be pre-generated and stored, ready for subsequent retrieval and input into on-demand/real-time operating music-selection and matching engines for the delivery of an on-demand soundtrack. A benefit of this approach is that the on-demand soundtrack created can utilise the latest up-to-date database audio tracks and/or particular user preferences (e.g. user-based music-selection filters), but doesn't need to carry out the text analysis.
2.8 Any Text, any where
The automatic soundtrack creation system can create a soundtrack for playback for any type of text. The embodiments above are described in the context of generating a soundtrack for books, such as an e-book, but the creation system can be applied to text extracted from any source, whether fiction books, non-fictions books, publications, articles, professional documents, marketing materials, internet literature or text, or the like.
In one embodiment, the automatic soundtrack creation system may be in the form of a browser plug-in or webpage widget that is configured to generate a soundtrack for the text presented on a webpage, by processing the webpage text as described above. In another embodiment, the automatic soundtrack creation system may be implemented as a plug-in or Application Programming Interface (API) for 3rd party software such as word processing or presentation (e.g. slide-show) software programs, and the API may be configured to enable the text in the word processing or presentation documents to be processed and a suitable soundtrack generated. In yet another embodiment, the automatic soundtrack creation system may be configured to generate a soundtrack for retail stores, by processing text describing the retail store and generating a suitable soundtrack for playback in store.
The soundtracks may be delivered to an end user using any suitable method. The soundtracks and their associated audio track files may be entirely downloaded in advance of playback, or streamed from a server or the cloud progressively, and this applies to both pre-rendered soundtrack and those generated on-demand/real-time.
The automatically created soundtrack may be played via any suitable system that is configured to synchronise the playback of the configured audio regions with a user's reading of the text, such that the audio regions are played back when the user is reading their corresponding text regions in the text. Typically, the playback systems can detect the user's reading speed and/or monitor their reading position in the text and synchronise playback of the audio regions accordingly.
The playback systems are also configured to process any additional audio playback effect data associated with the audio regions of the soundtrack and control playback based on that data, such as transitional playback effects, looping settings, and offset start and/or stop settings as described above. As previously described, in some embodiments the offset start and/or stop settings may be configured to be selectively ignored or enforced by the playback device. In some embodiments, the selection to ignore or enforce the offset start and/or stop settings may be automatically determined based on one or more factors such as, but not limited to, the type of playback device, particular music track being played, the particular source of the audio or music (e.g. streaming music service), profile or subscription status of end user, and/or or territory in which the soundtrack is played. In other embodiments, the soundtrack playback device may be configured with pre-configured or pre-determined offset start and/or stop settings that it applies to the soundtrack audio files as they are downloaded or streamed to the device for playback. For example, the playback device may be configured to apply an offset start and/or stop playback settings to one or more of the audio or music files of the audio regions such that the music or audio track commences playback and/or ceases playback at an offset start and/or stop times relative to its natural start and stop times that define is actual natural playback duration. The settings may be applied to all audio regions or a selected number of regions based on one or more factors, such as those described above.
By way of example only, any one or a combination of the soundtrack playback or delivery systems and/or modules described in patent publications WO2010/002275, WO2013/015694, or US2015/0025663, which are incorporated by reference, may be utilised for the soundtrack playback, depending on the nature of the soundtrack generated for playback. By way of further explanation only, some examples of particular playback systems are provided below.
By way of example only, a playback system will be described below in the context of a soundtrack configured for playback with an electronic text (such as an e-book or similar).
Various soundtrack playback systems may be used for displaying the electronic text and controlling playback of the associated soundtrack, or for simply controlling playback of the soundtrack with the text being read via another application program or device. The soundtrack playback system may be implemented on various user hardware devices, including portable consumer electronic devices such as smartphones, tablets, AI Assistants/devices and dedicated e-reader devices or personal computers, whether desktop or laptop. In some configurations, the soundtrack data file or files, including all the audio tracks, may be entirely downloaded in advance and stored locally on the user device before playback can commence. In some embodiments, the soundtrack and audio track files are combined with the electronic text file as a single multimedia data file for download and playback. In other configurations, the soundtrack data file may be downloaded on the user device and the audio track files may be streamed individually or in batches from a remote database (e.g. the ‘Cloud’) during playback, such as described in patent publication US2015/0025663, which is incorporated by reference.
In some configurations, the user playback system processes the soundtrack data file and co-ordinates playback of the locally stored and downloaded audio track files or the incoming streamed audio track files in accordance with a reading position counter or variable that estimates the user's current reading text position in the electronic text (e.g. word they are currently reading) or otherwise synchronises the playback timing based on the user's reading speed. The accuracy of the user reading speed variable impacts on the accuracy of the synchronization of the soundtrack playback. In some forms, the reading speed variable is adjusted manually by the user, and in other forms the reading speed variable may be calculated and adjusted automatically from each page turn based on the number of words in the page and the time required to read the page.
By way of further explanation, the soundtrack playback system is configured to maintain a user reading position variable indicative of the user's expected reading position within the electronic text and trigger playback of the audio regions defined in the soundtrack data file based on this user reading position variable, and may operate in a similar manner to the soundtrack playback module described in WO2013/015694 or US2015/0025663. By way of example, if the audio regions of the soundtrack are defined by start and stop positions relating to a word index or count as described above, the user reading position variable may be a counter corresponding to the estimated word in the electronic text that the user is reading. The counter may then increment at a rate at least partly based on a configurable reading speed variable representing the user's reading speed. The counter may also be arbitrarily or periodically updated to the user's actual reading position by various user interaction or user input, including page turns, scrolling, arbitrary reading position update inputs such as the user clicking a mouse cursor on the current word they are reading or tapping (in the case of a touch screen display) on the current word they are reading, or other such means for updating the user reading position variable.
By way of another example, soundtrack playback systems for text in the form of a printed text (e.g. paper book) will be described. As described above, the automatic soundtrack creation system can create soundtracks for text from any source, including printed text. In another embodiment, a soundtrack playback system may be provided in the form of an application program or website interface accessible by an end user on a suitable electronic device. The soundtrack playback system comprises an interactive GUI for browsing a database or catalogue of book and/or soundtrack titles for which the text has been pre-processed by the automatic soundtrack creation system to generate a pre-rendered soundtrack or alternatively the text emotional profile map and/or audio region definition map data from which a soundtrack may be created on demand or in real-time.
The user may be reading a particular paper book, and want to listen to the associated automatically created soundtrack, so accesses the soundtrack application program, browses or searches for the book title in the catalogue via the GUI, and then selects the soundtrack associated with the book for playback. For some book titles, the database will comprise a pre-rendered soundtrack or alternatively text emotional profile map and/or audio region definition data from which a soundtrack can be created on demand by the soundtrack creation system, and which can be customised to user preferences based on user-based music-selection filters or other filters. For other book titles, no soundtrack data may be present in the database, and in such situations the system may be configured to retrieve the associated electronic text for the book title from one or more text sources over a data network or data communication link (e.g. electronic book or text libraries or databases or subscription services) and automatically create a soundtrack using the method previously described for the book, and deliver the generated soundtrack to the user for playback.
The application program GUI is provided with audio playback controls (play, pause, volume etc) the soundtrack playback may be synchronised with the user's reading position in their book by the user selecting the current chapter or page they are reading or otherwise providing reading positional information to the soundtrack playback application via a user interface in the GUI.
The soundtrack playback application program for ‘detached’ soundtracks is also applicable to electronic texts such as e-books. Again, the user may be reading their e-book on an electronic user device or e-Reader device and want to play an associated soundtrack, so accesses the separate soundtrack playback application program (either on the same or a separate electronic device), and selects the soundtrack associated with the e-book title for playback as described above for the printed books scenario, or alternatively inputs identification data for the e-book such that the system can retrieve the associated electronic text of the e-book and automatically generate a soundtrack as described above. In this configuration, the reading position of the user may be extracted from the e-book reader program by the soundtrack application program via an API or similar to enable the playback position of the soundtrack to be synchronised to the user's reading position.
In alternative embodiments, it will be appreciated that the soundtrack application program need not necessarily have an interactive GUI for the user to interface with. In alternative embodiments, the soundtrack application program may be executed or implemented by an Artificial Intelligence (AI) assistant or device based on voice commands for example. In such configurations, the AI assistant may receive or detect input in the form of voice commands from a user instructing the AI assistant to retrieve and playback a soundtrack for a book they are reading (whether printed or e-book). The AI assistant processes these instructions, and searches the soundtrack catalogue as before and requests the soundtrack for playback for the book the user is reading. The AI assistant may playback the soundtrack over its own audio output speakers or channel the soundtrack for playback over another device having audio playback capability. The AI assistant may also receive voice commands from the user indicative of their reading position in the book or may automatically retrieve their reading position in the case of an e-book to synchronise playback and/or may also receive voice commands for audio playback controls (e.g. play, pause, volume etc).
In any of the above embodiments, the soundtrack application program may be configured to receive any suitable form of input data indicative or identifying the book or e-book the user is reading, to enable subsequent retrieval and/or generation and delivery of the associated soundtrack. For example, as alternatives to an operable book title selection GUI or voice commands, the user may operate their electronic device to scan a machine-readable code (e.g. barcode or QR code or the like) associated with or printed on the book or e-book and which contains identification or bibliographical information relating to the book (e.g. data indicative of the title and author or publication reference number or code for example), or alternatively may capture a digital photo or image of the cover or other portion of the book which is then processed to identify the book. This input data is processed to identify the book, which then enables the associated soundtrack to be retrieved or generated as above, and delivered to the user for playback.
Embodiments of the invention may be implemented by hardware, software, firmware, middleware, microcode, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine-readable medium such as a storage medium or other storage(s). A processor may perform the necessary tasks. A code segment may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and/or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.
In the foregoing, a storage medium may represent one or more devices for storing data, including read-only memory (ROM), random access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices and/or other machine readable mediums for storing information. The terms “machine readable medium” and “computer readable medium” include, but are not limited to portable or fixed storage devices, optical storage devices, and/or various other mediums capable of storing, containing or carrying instruction(s) and/or data.
The various illustrative logical blocks, modules, circuits, elements, and/or components described in connection with the examples disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic component, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, circuit, and/or state machine. A processor may also be implemented as a combination of computing components, e.g., a combination of a DSP and a microprocessor, a number of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The methods or algorithms described in connection with the examples disclosed herein may be embodied directly in hardware, in a software module executable by a processor, or in a combination of both, in the form of processing unit, programming instructions, or other directions, and may be contained in a single device or distributed across multiple devices. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor.
One or more of the components and functions illustrated the figures may be rearranged and/or combined into a single component or embodied in several components without departing from the invention. Additional elements or components may also be added without departing from the invention. Additionally, the features described herein may be implemented in software, hardware, or combination thereof.
In its various aspects, the invention can be embodied in a computer-implemented process, a machine (such as an electronic device, or a general purpose computer or other device that provides a platform on which computer programs can be executed), processes performed by these machines, or an article of manufacture. Such articles can include a computer program product or digital information product in which a computer readable storage medium containing computer program instructions or computer readable data stored thereon, and processes and machines that create and use these articles of manufacture.
The foregoing description of the invention includes preferred forms thereof. Modifications may be made thereto without departing from the scope of the invention as defined by the accompany claims.
Number | Date | Country | Kind |
---|---|---|---|
722712 | Jul 2016 | NZ | national |