Sega has never stated a relationship preference for Sonic, so there is no official answer. Based on how the character has been written across the games, the reasonable assumption most fans make is that he is straight.