While not a perfect match, Neal Stephenson's The Diamond Age has some similitudes.
In fact there are two books, one is created for the daughter of a rich man in a Victorian-like social group, while the other is stolen by a poor guy who gives it to his sister.
Some tips about the society that may help to recognize if it is the same book:
It is a futuristic society, nations are no longer relevant but people organize themselves in "afine" groups around the world. Matter is not important, thanks to nanotechnology anyone can build anything; what is important are the designs to produce the goods. Even the poor people have a nano-producing machine at home, but they have a limited supply of nanites with which build things.
And for the plot
The poor girl that receives the book runs out of home with his brother, the girl is "adopted" by the Victorian group but his brother is not allowed due to his criminal history; the actress voicing the book (who learns about her situation due to the text she is told to speak) tries to locate the girl, and joins some weird technocult who can decrypt communications, and they all get caught in a Chinese nationalist surge (as usual with Mr. Stephenson's books, the end is quite confusing and sort of a deus ex machina)