This is a computer. It was part of a 4-piece Barbie Dream House bedroom furniture. That set had a vanity with a chair, a closet/armoire and this little computer circa 1977. Hope this helps!
My sister says an 8 track player since it was from the 70's.