# US 10,311,133 B2 · Character curve generating method and device thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,311,133 B2
- Document ID: US10311133B2
- Status: Granted
- Kind: B2
- Application number: 15/576,876
- Filed: 2016-05-30
- Published: 2018-06-14
- Granted: 2019-06-04
- Earliest claimed: 2015-05-28
- Assignees: Cienet Technologies (Beijing) Co., Ltd.
- Applicants: Cienet Technologies (Beijing) Co., Ltd.
- Inventors: Xibin Liu; Liang Zheng
- Web page: https://patentgrep.com/patent/US10311133B2

## CPC

- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 3/041: Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F 3/16: Sound input; Sound output (speech processing G10L)
- G06F 3/167: {Audio in a user interface, e.g. using voice commands for navigating, audio feedback}
- G06F 16/685: {using automatically derived transcript of audio data, e.g. lyrics (speech recognition G10L15/00)}
- G06T 7/00: Image analysis
- G06T 11/20: Drawing from basic elements
- H04L 51/04: Real-time or near real-time messaging, e.g. instant messaging [IM]
- G06T 2207/30241: Trajectory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Disclosed in the present invention is a character curve generating method and device thereof. The method comprises the following steps: (1) inputting text information, and the text information comprises m characters; (2) performing voice input to generate an audio file; (3) dividing the audio file into m equal time periods and calculating a corresponding sound volume of each time period; (4) calculating dimension information corresponding to each character in the text information according to the sound volumes of different time periods in the audio file; and (5) changing display sizes of the m characters in the text information according to the dimension information acquired in step (4) to form a character curve. The text curve formed by multiple characters in different font sizes generates a more interesting image and provides more information compared to text information in a single font size in the existing instant communication system.

## Claims

### Claim 1

A character curve generating method, the character curve referring to a text formed by characters of different sizes, wherein the method comprises the following steps:
(1) inputting text information, wherein the text information comprises m characters, and m is a positive integer;
(2) performing voice input to generate an audio file;
(3) dividing the audio file into m equal time periods and each character corresponds to multiple sample values, all the sample values are converted into PCM (Pulse Code Modulation) codes, absolute values of this set of PCM codes are compared, to find a maximum PCM value, and the maximum PCM value is stored as a sound volume of the time period;
(4) calculating dimension information corresponding to each character in the text information according to sound volumes of different time periods in the audio file; wherein the calculating dimension information comprises the following steps:
(41) reading q font sizes forming the character curve, wherein q is a positive integer;
(42) setting a minimum PCM value to Pmin and the maximum PCM value to Pmax; and
(43) calculating PCM values Pn respectively corresponding to the q font sizes:
Pn=Pmin+(n−1)*d, wherein
d=(Pmax−Pmin)(q−1), and n=1, . . . , and q; and
(44) calculating a font size according to a PCM value corresponding to each character, wherein
when the corresponding PCM value is between Pn and Pn-1, if the PCM value≥(Pn−Pn-1)/2, a font size corresponding to Pn is used for the character; or if the PCM value<(Pn−Pn-1)/2, a font size corresponding to Pn-1 is used for the character; and
(5) changing display sizes of the m characters in the text information according to the dimension information acquired in step (4) to form the character curve.

### Claim 2 (depends on 1)

The character curve generating method according to claim 1, wherein:
step (41) comprises steps of setting the minimum font size of the character curve and setting a font size difference between two adjacent sizes.

### Claim 3 (depends on 1)

The character curve generating method according to claim 1, wherein:
in step (2), a user records, by touching a record button icon, a brief voice recoding to generate an audio file, wherein content in the voice recording corresponds to content in the text information.

### Claim 4 (depends on 1)

The character curve generating method according to claim 1, wherein:
in step (2), a user records, by touching a record button icon, a brief voice recoding to generate an audio file, wherein a storage type of the audio file is an AMR format file or a G.711 format file.

### Claim 5 (depends on 1)

An instant messaging device, comprising:
a processor; and
a memory, configured to store an executable instruction of the processor, wherein
the processor is configured to perform the character curve generating method according to claim 1.

### Claim 6

A character curve generating method, the character curve referring to a text formed by characters of different sizes, wherein the method comprises the following steps:
(1) inputting text information, wherein the text information comprises m characters, and m is a positive integer,
(2) performing curve input by means of drawing by touching and sliding a touch screen, and recording a pixel (x, y) trajectory of the entire curve;
(3) dividing the curve into m equal intervals, calculating an average value of y-coordinate (y) values of all pixels in each interval, and using the average value of y as a height value of the interval;
(4) calculating dimension information corresponding to each character in the text information according to height values of different intervals; wherein the calculating dimension information comprises the following steps:
(41) reading q font sizes forming the character curve, wherein q is a positive integer;
(42) setting a minimum average value of to Ymin and a maximum average value of y to Ymax;
(43) calculating values Yn of y respectively corresponding to the q font sizes:
Yn=Ymin+(n−1)*d, wherein
d=(Ymax−Ymin)/(q−1), and n=1, . . . and q; and
(44) calculating a font size according to an average value of y corresponding to each character, wherein
when the corresponding average value of y is between Yn and Yn-1, if the average value of y≥(Yn−Yn-1)/2, a font size corresponding to Yn is used for the character; or if the average value of y<(Yn−Yn-1)/2, a font size corresponding to Yn-1 is used for the character; and
(5) changing display sizes of the m characters in the text information according to the dimension information acquired in step (4) to form the character curve.

### Claim 7 (depends on 6)

The character curve generating method according to claim 6, wherein:
step (41) comprises steps of setting the minimum font size of the character curve, and
setting a font size difference between two adjacent sizes.
