Soul stones are either earned by leveling up your character or putting in gems if you don't want to level up. You may use soul stones to buy 5-star equipment instead of using gems since you need both kinds to get spells and skill books.